/* ===== ZODIAC AGE CALCULATOR - COMPLETE STYLESHEET ===== */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
    color: #1a1a1a;
}

/* ===== ACCESSIBILITY ===== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #667eea;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== HEADER ===== */
.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.site-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.tagline {
    font-size: 1.1em;
    opacity: 0.95;
    margin-bottom: 5px;
}

.subtagline {
    font-size: 0.9em;
    opacity: 0.9;
}

/* ===== MAIN CONTENT ===== */
main {
    padding: 40px 30px;
}

/* ===== FORM SECTIONS ===== */
.form-section {
    margin-bottom: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #667eea;
}

.section-title {
    font-size: 1.5em;
    color: #667eea;
    margin-bottom: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-emoji {
    font-size: 1.8em;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 1.05em;
}

.label-text {
    display: block;
}

.label-hint {
    font-size: 0.8em;
    color: #666;
    font-weight: 400;
}

.form-help {
    color: #666;
    margin-top: 5px;
    display: block;
    font-size: 0.9em;
}

input[type="date"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
    color: #1a1a1a;
}

input[type="date"]:hover,
input[type="number"]:hover,
select:hover {
    border-color: #667eea;
}

input[type="date"]:focus,
input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

input[type="date"]:focus-visible,
input[type="number"]:focus-visible,
select:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* ===== OUTPUT SECTIONS ===== */
.output-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    border: 2px solid #e0e0e0;
}

.output-label {
    font-weight: 600;
    color: #666;
    font-size: 0.95em;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.output-value {
    font-size: 1.8em;
    color: #667eea;
    font-weight: 700;
    word-break: break-word;
    line-height: 1.4;
}

.output-secondary {
    font-size: 1.2em;
    color: #444;
    margin-top: 8px;
    font-weight: 500;
}

/* ===== DAY OF BIRTH DISPLAY ===== */
.day-of-birth-display {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: 500;
    text-align: center;
    line-height: 1.8;
}

/* ===== MOTIVATIONAL MESSAGE ===== */
.motivational-message {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: 500;
    text-align: center;
    line-height: 1.8;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== ZODIAC DETAILS ===== */
.zodiac-details {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
    display: none;
    border: 2px solid #764ba2;
}

.zodiac-details[aria-hidden="false"] {
    display: block;
    animation: slideIn 0.3s ease-out;
}

.zodiac-detail-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.zodiac-detail-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-label {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.detail-value {
    color: #1a1a1a;
    font-size: 1.05em;
}

/* ===== TOGGLE BUTTON ===== */
.toggle-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

.toggle-btn:hover {
    background: #764ba2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.toggle-btn:active {
    transform: translateY(0);
}

.toggle-btn:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    background: #f8f9fa;
    padding: 30px;
    margin-top: 40px;
    border-radius: 15px;
}

.content-section h2 {
    color: #667eea;
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 600;
}

.content-section h3 {
    color: #1a1a1a;
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.content-section p {
    color: #444;
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-section ul,
.content-section ol {
    margin-left: 25px;
    margin-bottom: 15px;
}

.content-section li {
    margin-bottom: 10px;
    color: #444;
    line-height: 1.8;
}

/* ===== LINKS IN CONTENT SECTIONS - FIXED CONTRAST ===== */
.content-section a {
    color: #0047ab;
    text-decoration: none;
    border-bottom: 1px solid #0047ab;
    transition: all 0.3s ease;
}

.content-section a:hover {
    color: #003d85;
    border-bottom-color: #003d85;
    text-decoration: underline;
}

.content-section a:focus-visible {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

.content-section a:visited {
    color: #003d85;
}

/* ===== FORMULA BOX ===== */
.formula-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #764ba2;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    color: #1a1a1a;
    overflow-x: auto;
}

.formula-title {
    font-weight: 600;
    color: #764ba2;
    margin-bottom: 10px;
    font-size: 1.05em;
}

.formula-box code {
    display: block;
    line-height: 1.6;
    white-space: pre-wrap;
}

/* ===== PRIVACY SECTION ===== */
.privacy-section {
    border-top: 2px solid #667eea;
    margin-top: 60px;
}

.privacy-section p {
    font-size: 1.05em;
    line-height: 1.9;
    color: #444;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
    color: #555;
    border-top: 1px solid #e0e0e0;
}

.site-footer p {
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #555;
}

.site-footer p:last-child {
    font-size: 0.9em;
    color: #555;
    margin-top: 15px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .site-header {
        padding: 30px 15px;
    }
    
    .site-header h1 {
        font-size: 2em;
    }
    
    main {
        padding: 25px 15px;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 1.3em;
    }
    
    .output-value {
        font-size: 1.5em;
    }
    
    .content-section {
        padding: 20px 15px;
    }
    
    .content-section h2 {
        font-size: 1.5em;
    }
    
    input[type="date"],
    input[type="number"],
    select {
        font-size: 16px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 10px;
    }
    
    .site-header {
        padding: 20px 10px;
    }
    
    .site-header h1 {
        font-size: 1.5em;
    }
    
    .tagline {
        font-size: 0.95em;
    }
    
    main {
        padding: 15px 10px;
    }
    
    .form-section {
        padding: 15px 10px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 1.2em;
    }
    
    .output-value {
        font-size: 1.3em;
    }
    
    .content-section {
        padding: 15px 10px;
        margin-top: 20px;
    }
    
    .content-section h2 {
        font-size: 1.3em;
    }
    
    .content-section h3 {
        font-size: 1.1em;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 