/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #1b7f5a;
    --primary-dark: #155d43;
    --primary-light: #22a06b;
    --accent-yellow: #ffd700;
    --text-dark: #1a1a1a;
    --text-medium: #333333;
    --text-light: #666666;
    --bg-light: #f5f7fa;
    --bg-white: #ffffff;
    --bg-gray: #e8ecef;
    --border-color: #d1d9e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: var(--primary-green);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.brand-icon {
    font-size: 1.5rem;
}

.brand h1 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--bg-white);
    text-align: center;
}

/* Calculator Section */
.calculator-section {
    padding: 2rem 0;
}

.calculator-wrapper {
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 2rem;
}

/* Input Card */
.input-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.input-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.date-input {
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: var(--bg-white);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    cursor: pointer;
    font-weight: 500;
    height: 48px;
    line-height: 1.5;
}

.date-input:hover {
    border-color: #999;
}

.date-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(27, 127, 90, 0.1);
}

.date-input option {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem;
}

.date-input option:first-child {
    color: #999;
}

.calculate-btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bg-white);
    background-color: var(--primary-green);
    border: 2px solid var(--primary-green);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
    height: 48px;
    line-height: 1.5;
}

.calculate-btn:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(27, 127, 90, 0.2);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* Results Section */
.results-section {
    animation: fadeIn 0.5s ease;
}

.results-section.hidden {
    display: none;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Age Result */
.age-result {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    text-align: center;
    border: 2px solid #ddd;
}

.result-label {
    font-size: 1rem;
    color: var(--text-medium);
    margin-bottom: 1rem;
    font-weight: 500;
}

.age-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.age-box {
    background: var(--bg-white);
    padding: 1.5rem 1rem;
    border-radius: 6px;
    border: 2px solid #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s;
}

.age-box:hover {
    border-color: var(--primary-green);
    box-shadow: 0 2px 8px rgba(27, 127, 90, 0.15);
    transform: translateY(-2px);
}

.age-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.age-label {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-top: 0.5rem;
    font-weight: 500;
}

.age-text {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Birth Details */
.birth-details {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border: 2px solid #ddd;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-icon {
    font-size: 1.3rem;
}

.detail-label {
    font-size: 0.95rem;
    color: var(--text-medium);
    flex: 1;
    font-weight: 500;
}

.detail-value {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Calendar Row */
.calendar-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.calendar-box {
    background: var(--bg-light);
    padding: 1.25rem;
    border-radius: 6px;
    border: 2px solid #ddd;
    max-width: 100%;
    margin: 0;
}

.calendar-header {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.calendar-header span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-medium);
    font-weight: 500;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
    background: var(--bg-white);
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    max-width: 100%;
    margin: 0 auto;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    border-radius: 4px;
    min-width: 42px;
}

.calendar-day.header {
    font-weight: 600;
    color: var(--bg-white);
    font-size: 0.8rem;
    background-color: var(--primary-green);
    border-radius: 4px;
    padding: 0.4rem;
}

.calendar-day.date {
    color: var(--text-dark);
    font-weight: 500;
}

.calendar-day.highlight {
    background-color: var(--accent-yellow);
    color: var(--text-dark);
    font-weight: 700;
}

.calendar-day.empty {
    visibility: hidden;
}

/* Stats Section */
.stats-section {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    border: 2px solid #ddd;
}

.stats-title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    background: var(--bg-white);
    padding: 1.25rem;
    border-radius: 6px;
    text-align: center;
    border: 2px solid #ddd;
    transition: all 0.3s;
}

.stat-item:hover {
    border-color: var(--primary-green);
    box-shadow: 0 2px 8px rgba(27, 127, 90, 0.15);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.25rem;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--text-medium);
    font-weight: 500;
}

/* Screenshot Section */
.screenshot-section {
    background: linear-gradient(135deg, #22a06b 0%, #ffd700 100%);
    padding: 3rem 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.screenshot-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
}

.screenshot-content {
    color: var(--bg-white);
}

.screenshot-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.screenshot-features {
    list-style: none;
    font-size: 1.1rem;
    line-height: 2;
}

.screenshot-features li {
    margin-bottom: 0.5rem;
}

/* Info Content */
.info-content {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.info-text {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.info-heading {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 1.5rem 0 1rem;
}

.info-list {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-list li {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--primary-green);
    color: var(--bg-white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--bg-white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Page Styles for About, Contact, Privacy */
.page-section {
    padding: 3rem 0;
    min-height: 60vh;
}

.page-content {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.page-date {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.content-block h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-block h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.content-block p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-block ul,
.content-block ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.content-block li {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.content-block a {
    color: var(--primary-green);
    text-decoration: none;
}

.content-block a:hover {
    text-decoration: underline;
}

/* Contact Page Styles */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #ddd;
}

.contact-item h3 {
    margin-top: 0;
    color: var(--primary-green);
}

.contact-item a {
    color: var(--primary-green);
    font-weight: 600;
}

.contact-note {
    font-size: 0.85rem;
    color: var(--text-medium);
    font-style: italic;
}

.faq-item {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-green);
}

.faq-item h3 {
    margin-top: 0;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.faq-item p {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .brand h1 {
        font-size: 1.1rem;
    }

    .calculator-wrapper {
        padding: 1.5rem;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .age-boxes {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .age-number {
        font-size: 2rem;
    }

    .calendar-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-title {
        font-size: 1.5rem;
    }

    .screenshot-features {
        font-size: 1rem;
    }

    .info-content {
        padding: 1.5rem;
    }

    .footer-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .page-content {
        padding: 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .age-boxes {
        grid-template-columns: 1fr;
    }

    .age-number {
        font-size: 2.5rem;
    }

    .calendar-grid {
        gap: 0.2rem;
        padding: 0.4rem;
        max-width: 100%;
    }

    .calendar-day {
        font-size: 0.7rem;
        min-width: 28px;
    }

    .calendar-day.header {
        font-size: 0.65rem;
        padding: 0.25rem;
    }

    .calendar-box {
        max-width: 100%;
    }
}
