/* MODERN SIDE-BY-SIDE DESIGN - UPDATED STYLE.CSS */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Arial, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

/* Main container - side by side on desktop */
.container {
    max-width: 1200px; /* Reduced from 1400px */
    margin: 0 auto;
    padding: 30px 20px; /* Reduced from 40px */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; /* Reduced from 60px */
    width: 100%;
    align-items: start;
}

/* Left side - Calculator Input */
.calculator-section {
    position: sticky;
    top: 30px; /* Reduced from 40px */
}

.header-section {
    margin-bottom: 24px; /* Reduced from 32px */
}

.emoji-header {
    font-size: 48px; /* Reduced from 64px */
    display: block;
    margin-bottom: 12px; /* Reduced from 16px */
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

h1 {
    font-size: 42px; /* Reduced from 56px */
    font-weight: 800;
    margin-bottom: 10px; /* Reduced from 12px */
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 50%, #c44569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.tagline {
    font-size: 16px; /* Reduced from 18px */
    color: #888;
    font-weight: 400;
    line-height: 1.5;
}

/* Calculator card */
.calculator {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px; /* Reduced from 24px */
    padding: 30px; /* Reduced from 40px */
    backdrop-filter: blur(10px);
}

/* Input groups */
.input-group {
    margin-bottom: 20px; /* Reduced from 28px */
}

.input-label-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.input-emoji {
    font-size: 20px; /* Reduced from 24px */
}

label {
    font-size: 14px; /* Reduced from 15px */
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.2px;
}

/* Range slider styling */
input[type="range"] {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    cursor: pointer;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
}

input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 2px 12px rgba(255, 107, 107, 0.6);
}

#age-display {
    color: #ff6b6b;
    font-weight: 700;
}

input[type="number"] {
    width: 100%;
    padding: 14px 16px; /* Reduced from 16px 18px */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 16px; /* Reduced from 18px */
    color: #fff;
    transition: all 0.2s;
    font-weight: 500;
}

input[type="number"]:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.08);
}

input[type="number"]::placeholder {
    color: #555;
}

/* Return options */
.return-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.return-options label {
    flex: 1;
    min-width: fit-content;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 14px;
}

.return-options label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.return-options input[type="radio"] {
    width: auto;
    padding: 0;
    margin: 0;
}

.return-options input[type="radio"]:checked + span {
    font-weight: 700;
}

/* Calculate button */
button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.4);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Right side - Results */
.results-section {
    min-height: 500px; /* Reduced from 600px */
}

.results {
    opacity: 1;
    transition: opacity 0.3s;
}

.results.hidden {
    opacity: 0;
    pointer-events: none;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px; /* Reduced from 500px */
    color: #444;
    text-align: center;
}

.empty-state-emoji {
    font-size: 64px; /* Reduced from 80px */
    margin-bottom: 16px; /* Reduced from 20px */
    opacity: 0.3;
}

.empty-state-text {
    font-size: 16px; /* Reduced from 18px */
    font-weight: 500;
}

/* Result card */
.result-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px; /* Reduced from 24px */
    padding: 30px; /* Reduced from 40px */
    backdrop-filter: blur(10px);
}

.result-headline {
    color: #ff6b6b;
    font-size: 26px; /* Reduced from 32px */
    font-weight: 800;
    margin-bottom: 6px; /* Reduced from 8px */
    line-height: 1.2;
}

.result-subhead {
    color: #888;
    font-size: 14px; /* Reduced from 16px */
    margin-bottom: 24px; /* Reduced from 32px */
    font-weight: 400;
}

/* Big number */
.big-number {
    font-size: 56px; /* Reduced from 72px */
    font-weight: 900;
    color: #ff6b6b;
    margin: 20px 0; /* Reduced from 24px */
    letter-spacing: -2px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.explanation {
    font-size: 16px; /* Reduced from 18px */
    color: #aaa;
    margin-bottom: 28px; /* Reduced from 40px */
    line-height: 1.6;
}

/* Comparisons */
.comparisons {
    margin: 28px 0; /* Reduced from 40px */
}

.comparisons h3 {
    font-size: 18px; /* Reduced from 20px */
    margin-bottom: 16px; /* Reduced from 20px */
    color: #fff;
    font-weight: 700;
}

.comparison-item {
    display: flex;
    align-items: center;
    gap: 14px; /* Reduced from 16px */
    padding: 14px; /* Reduced from 18px */
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px; /* Reduced from 16px */
    margin-bottom: 10px; /* Reduced from 12px */
    transition: all 0.2s;
}

.comparison-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(4px);
}

.comparison-emoji {
    font-size: 30px; /* Reduced from 36px */
    min-width: 45px; /* Reduced from 50px */
    text-align: center;
}

.comparison-text {
    flex: 1;
    font-size: 14px; /* Reduced from 16px */
    color: #ccc;
    line-height: 1.4;
}

.comparison-value {
    font-weight: 700;
    color: #ff6b6b;
}

.comparison-hint {
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 8px;
    font-size: 13px;
    color: #aaa;
    text-align: center;
}

/* Share button */
#share {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-top: 24px; /* Reduced from 32px */
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

#share:hover {
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

/* Footer */
.footer {
    margin-top: 60px;
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-disclaimer {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

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

.footer-separator {
    color: #444;
    font-size: 12px;
}

/* Mobile responsive */
@media screen and (max-width: 1024px) {
    .app-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .calculator-section {
        position: static;
    }
    
    .results-section {
        min-height: auto;
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .emoji-header {
        font-size: 48px;
    }
    
    h1 {
        font-size: 40px;
    }
    
    .tagline {
        font-size: 16px;
    }
    
    .calculator {
        padding: 28px;
    }
    
    .result-card {
        padding: 28px;
    }
    
    .big-number {
        font-size: 56px;
    }
    
    .result-headline {
        font-size: 26px;
    }
    
    /* Stack return options vertically on mobile */
    .return-options {
        flex-direction: column;
    }
    
    .return-options label {
        width: 100%;
    }
    
    /* Bigger touch targets */
    button {
        padding: 20px;
    }
    
    input[type="number"] {
        font-size: 16px; /* Prevents iOS zoom */
    }
    
    .comparison-emoji {
        font-size: 32px;
        min-width: 40px;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 32px;
    }
    
    .calculator {
        padding: 24px;
    }
    
    .result-card {
        padding: 24px;
    }
    
    .big-number {
        font-size: 48px;
    }
}