:root {
    --bg-color: #0a0a0a;
    --card-bg: #171717;
    --text-color: #e5e5e5;
    --gold-color: #d4af37;
    --gold-gradient: linear-gradient(135deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.container {
    width: 100%;
    max-width: 600px;
}

header {
    margin-bottom: 3rem;
}

h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    background-clip: text;
}

.subtitle {
    opacity: 0.6;
    font-size: 1.1rem;
}

/* Input Section */
.input-section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

label {
    text-align: left;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: -0.5rem;
}

input,
select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    color: #3e2c00;
    margin-top: 1rem;
    transition: transform 0.1s;
}

#compare-btn {
    background: var(--gold-gradient);
    border: none;
    padding: 1rem;
    border-radius: 10px;
    width: 100%;
    color: #3e2c00;
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: 1px;
    cursor: pointer;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

#compare-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    filter: brightness(1.1);
}

#compare-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

/* Results */
.hidden {
    display: none;
    opacity: 0;
}

#result-area {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    margin-bottom: 1rem;
}

.result-card.secondary {
    border-color: rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

.intro {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

#time-result,
#years-result {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--gold-color);
    margin-bottom: 0.5rem;
}

.detail-text {
    font-size: 0.9rem;
    opacity: 0.6;
}

.secondary-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn:hover {
    border-color: var(--gold-color);
    color: var(--gold-color);
}

footer {
    margin-top: 3rem;
    font-size: 0.8rem;
    opacity: 0.3;
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }

    #time-result {
        font-size: 2.5rem;
    }
}