/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* GDPR Notice */
.gdpr-notice {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #333;
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    max-width: 300px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gdpr-notice button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.gdpr-notice.hidden {
    display: none;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ff6b6b;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #ff6b6b;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Pages */
.page {
    display: none;
    min-height: calc(100vh - 80px);
}

.page.active {
    display: block;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.lead {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

/* Calculator */
.calculator {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 2.5rem;
    border-radius: 15px;
    margin-top: 2rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.calculator h2 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 600;
    text-align: center;
}

.calc-input {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.calc-input label {
    font-weight: 600;
    color: #34495e;
    font-size: 1.1rem;
}

.calc-input input {
    padding: 0.8rem 1rem;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1.1rem;
    width: 120px;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.calc-input input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.calc-input button {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calc-input button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.calc-result {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
}

.date-calculator {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 2px solid rgba(52, 152, 219, 0.3);
}

.date-calculator h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #2c3e50;
    text-align: center;
    font-weight: 600;
}

.date-calculator label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #34495e;
    font-size: 1.1rem;
    text-align: center;
}

.date-calculator input {
    padding: 0.8rem 1rem;
    border: 2px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1.1rem;
    width: 250px;
    display: block;
    margin: 0 auto;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.date-calculator input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

#date-result {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

/* Article Content */
.article-content {
    padding: 3rem 0;
}

.article-content article {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.article-content h2 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.article-content h3 {
    color: #333;
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
}

.article-content h4 {
    color: #555;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.2rem;
}

.article-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

.article-content ul, .article-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
}

.article-content a:hover {
    text-decoration: underline;
}

/* Blockquotes */
blockquote {
    background: #f8f9fa;
    border-left: 4px solid #ff6b6b;
    padding: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
}

blockquote cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* Tables */
.info-table, .conversion-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-table th, .conversion-table th {
    background: #ff6b6b;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.info-table td, .conversion-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #eee;
}

.info-table tr:nth-child(even) td, .conversion-table tr:nth-child(even) td {
    background: #f8f9fa;
}

.conversion-table tr.highlight td {
    background: #ffe6e6;
    font-weight: bold;
}

/* Highlight Boxes */
.highlight-box {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.highlight-box h3, .highlight-box h4 {
    color: #2e7d32;
    margin-bottom: 1rem;
}

.highlight-box ul {
    margin-bottom: 0;
}

/* Sources */
.sources {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.sources h4 {
    margin-bottom: 1rem;
    color: #333;
}

.sources ul {
    list-style: none;
    padding: 0;
}

.sources li {
    margin-bottom: 0.5rem;
}

.sources a {
    color: #0066cc;
    text-decoration: none;
}

.sources a:hover {
    text-decoration: underline;
}

/* Related Articles */
.related-articles {
    background: #fff3e0;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.related-articles h4 {
    margin-bottom: 1rem;
    color: #e65100;
}

.related-articles ul {
    list-style: none;
    padding: 0;
}

.related-articles li {
    margin-bottom: 0.5rem;
}

.related-articles a {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 500;
}

.related-articles a:hover {
    text-decoration: underline;
}

/* Articles Page */
.articles-section {
    padding: 2rem 0;
}

.articles-section h1 {
    text-align: center;
    color: #ff6b6b;
    margin-bottom: 2rem;
    font-size: 2.5rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.article-card h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.article-card p {
    color: #666;
    line-height: 1.6;
}

/* Article Pages */
.article-page {
    padding: 2rem 0;
}

.article-page article {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-page h1 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

/* About, Contact, Privacy Pages */
.about-content, .contact-content, .privacy-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
}

.about-content h1, .contact-content h1, .privacy-content h1 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    text-align: center;
}

.about-content h2, .contact-content h2, .privacy-content h2 {
    color: #333;
    margin: 2rem 0 1rem 0;
}

.about-content ul, .privacy-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.about-content li, .privacy-content li {
    margin-bottom: 0.5rem;
}

/* Contact Form */
.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.2);
}

.contact-form button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #ff5252;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: none;
    z-index: 1000;
    transition: background 0.3s ease;
}

#back-to-top:hover {
    background: #ff5252;
}

#back-to-top.visible {
    display: block;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 2rem 0 1rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #ff6b6b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #ff6b6b;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #999;
}

.footer-bottom a {
    color: #ccc;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #ff6b6b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        gap: 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .lead {
        font-size: 1.2rem;
    }

    .calculator {
        padding: 2rem;
        margin: 1.5rem 0;
    }

    .calc-input {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .calc-input input {
        width: 100%;
        margin-bottom: 0;
    }

    .calc-input button {
        width: 100%;
    }

    .date-calculator input {
        width: 100%;
        max-width: 300px;
    }

    .article-content article {
        padding: 1.5rem;
    }

    .article-content h2 {
        font-size: 1.8rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .gdpr-notice {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .info-table, .conversion-table {
        font-size: 0.9rem;
    }

    .info-table th, .conversion-table th,
    .info-table td, .conversion-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .hero h1 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .lead {
        font-size: 1.1rem;
    }

    .calculator {
        padding: 1.5rem;
    }

    .calculator h2 {
        font-size: 1.5rem;
    }

    .calc-input label {
        font-size: 1rem;
    }

    .calc-input input {
        font-size: 1rem;
        padding: 0.7rem;
    }

    .calc-input button {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
    }

    .date-calculator h3 {
        font-size: 1.3rem;
    }

    .date-calculator input {
        font-size: 1rem;
        padding: 0.7rem;
    }

    .article-content article {
        padding: 1rem;
    }

    .about-content, .contact-content, .privacy-content {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer {
        padding: 1.5rem 0 1rem 0;
    }
}

/* Performance optimizations */
.page:not(.active) {
    display: none !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Accessibility improvements */
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    #back-to-top,
    .gdpr-notice {
        display: none !important;
    }

    .page {
        display: block !important;
    }

    .article-content article {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
