/* AgeCalc.in.net - Complete CSS Styles */
:root {
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --accent-color: #10b981;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Ad Styles */
.ad-header, .ad-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90px;
    background-color: var(--bg-light);
    border: 1px dashed var(--border-color);
    margin: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.ad-mobile {
    display: none;
    justify-content: center;
    align-items: center;
    min-height: 50px;
    background-color: var(--bg-light);
    border: 1px dashed var(--border-color);
    margin: 0.5rem 0;
    color: var(--text-light);
    font-size: 0.875rem;
}

.sidebar-ad {
    width: 300px;
    min-height: 250px;
    background-color: var(--bg-light);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.875rem;
    float: right;
    margin: 0 0 1rem 1rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.brand-icon {
    font-size: 1.5rem;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

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

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-input {
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    width: 200px;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Main Content */
.main {
    min-height: 70vh;
    padding: 2rem 0;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Categories */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.category-card p {
    color: var(--text-light);
}

/* Featured Calculators */
.featured-calculators {
    margin-top: 3rem;
}

.featured-calculators h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--text-color);
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.calc-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.calc-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.calc-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.calc-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.calc-card p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Calculator Container */
.calculator-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    display: none;
}

.calculator-container.active {
    display: block;
}

.calc-header {
    margin-bottom: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.calc-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.calc-description {
    color: var(--text-light);
}

.calc-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.calc-inputs {
    space-y: 1rem;
}

.calc-results {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

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

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.input-field {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.result-item {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.result-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.result-value {
    font-size: 1.125rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Calculator Display */
.calculator-display {
    background: #000;
    color: #00ff00;
    padding: 1rem;
    font-size: 1.5rem;
    font-family: 'Courier New', monospace;
    text-align: right;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.calc-btn {
    padding: 1rem;
    font-size: 1.125rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.calc-btn:hover {
    background: var(--bg-light);
}

.calc-btn.operator {
    background: var(--primary-color);
    color: white;
}

.calc-btn.equals {
    background: var(--accent-color);
    color: white;
}

.calc-btn.clear {
    background: #ef4444;
    color: white;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.footer-column h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

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

.footer-column a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    text-align: center;
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        margin-top: 1rem;
    }

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

    .search-container {
        width: 100%;
        margin-top: 1rem;
    }

    .search-input {
        flex: 1;
    }

    .sidebar-ad {
        display: none;
    }

    .ad-mobile {
        display: flex;
    }

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

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

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

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

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

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

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

    .calculator-container {
        padding: 1rem;
    }
}