:root {
    --primary-color: #D4AF37;
    /* Pale Gold */
    --secondary-color: #C5A059;
    /* Muted Gold */
    --bg-color: #051008;
    /* Very Dark Green */
    --card-bg: rgba(10, 31, 18, 0.6);
    /* Semi-transparent Dark Green */
    --text-color: #F5F5DC;
    /* Parchment / Off-white */
    --accent-color: #FFD700;
    /* Bright Gold */
}

body {
    font-family: 'Outfit', sans-serif;
    background: linear-gradient(135deg, #051008, #0F2A1D, #0A1F12);
    color: var(--text-color);
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 90%;
    max-width: 800px;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

textarea {
    width: 100%;
    height: 200px;
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--card-bg);
    color: white;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.3);
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #051008;
    /* Dark text on gold button */
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.4);
}

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

#loading {
    text-align: center;
    margin-top: 2rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.result-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    margin-top: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.5s ease-out;
}

.holistic-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.parallel-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent-color);
}

.parallel-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.wiki-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.wiki-link:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Model Selector Styles */
.model-selector {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.model-option {
    position: relative;
    cursor: pointer;
}

.model-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.model-label {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.model-option input:checked+.model-label {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
    color: #051008;
    /* Dark text on gold selection */
}

.model-option:hover .model-label {
    background: rgba(255, 255, 255, 0.2);
}

/* Stats Styles */
.stats-container {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.7;
    font-weight: 300;
    letter-spacing: 0.5px;
    animation: fadeInDown 1s ease-out 0.2s backwards;
}

.flash-update {
    animation: flash 1.5s ease-out;
}

@keyframes flash {
    0% {
        color: var(--text-color);
        transform: scale(1);
    }

    30% {
        color: var(--accent-color);
        transform: scale(1.1);
    }

    100% {
        color: var(--text-color);
        transform: scale(1);
    }
}

/* Footer Styles */
.footer {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.footer:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}