/* Zodiac Compatibility Styles */
body {
    font-family: Arial, sans-serif;
    background-color: var(--primary-bg-color, black);
    color: var(--primary-text-color, white);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

h1 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
    color: var(--primary-text-color, white);
}

.description {
    text-align: center;
    color: var(--secondary-text-color, #999);
    margin-bottom: 40px;
    font-size: 1.1em;
}

/* Selector Section */
.selector-section {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
    background: rgba(51, 51, 51, 0.8);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid var(--input-border-color, darkred);
}

.sign-selector h3 {
    text-align: center;
    margin: 0 0 20px 0;
    color: var(--button-bg-color, darkred);
}

.sign-dropdown {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    border: 2px solid var(--input-border-color, darkred);
    border-radius: 10px;
    background: var(--input-bg-color, #1a1a1a);
    color: var(--input-text-color, white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.sign-dropdown:hover,
.sign-dropdown:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
    border-color: var(--button-hover-bg-color, red);
}

.heart-divider {
    font-size: 3em;
    text-align: center;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Results Section */
.results-section {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.compatibility-score {
    background: rgba(51, 51, 51, 0.8);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    border: 2px solid var(--input-border-color, darkred);
    text-align: center;
}

.compatibility-score h2 {
    font-size: 2em;
    margin: 0 0 30px 0;
    color: var(--button-bg-color, darkred);
}

/* Score Meter */
.score-meter {
    position: relative;
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    overflow: hidden;
    margin: 30px 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.score-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff4444 0%, #ffaa00 50%, #44ff44 100%);
    border-radius: 30px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.score-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.compatibility-rating {
    font-size: 1.5em;
    font-weight: bold;
    margin: 20px 0;
}

.rating-excellent { color: #44ff44; }
.rating-very-good { color: #88ff44; }
.rating-good { color: #ffaa00; }
.rating-challenging { color: #ff8844; }
.rating-difficult { color: #ff4444; }

/* Hearts Display */
.hearts-display {
    font-size: 2.5em;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.heart {
    display: inline-block;
    transition: all 0.3s ease;
}

.heart.filled {
    animation: heartPop 0.5s ease-out;
}

@keyframes heartPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Analysis Grid */
.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.analysis-card {
    background: rgba(51, 51, 51, 0.8);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid var(--input-border-color, darkred);
}

.analysis-card h3 {
    margin: 0 0 20px 0;
    font-size: 1.5em;
    text-align: center;
}

.strengths-card h3 {
    color: #44ff44;
}

.challenges-card h3 {
    color: #ffaa00;
}

.analysis-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analysis-card li {
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 4px solid var(--button-bg-color, darkred);
}

.strengths-card li {
    border-left-color: #44ff44;
}

.challenges-card li {
    border-left-color: #ffaa00;
}

/* Element Compatibility */
.element-compatibility {
    background: rgba(51, 51, 51, 0.8);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid var(--input-border-color, darkred);
}

.element-compatibility h3 {
    margin: 0 0 20px 0;
    text-align: center;
    color: var(--button-bg-color, darkred);
}

.element-content {
    text-align: center;
    font-size: 1.1em;
    line-height: 1.8;
}

.element-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    margin: 5px;
    font-weight: bold;
}

.element-fire { background: linear-gradient(135deg, #ff4500, #ff6347); }
.element-earth { background: linear-gradient(135deg, #228b22, #90ee90); }
.element-air { background: linear-gradient(135deg, #4169e1, #87ceeb); }
.element-water { background: linear-gradient(135deg, #4682b4, #00ced1); }

/* Advice Section */
.advice-section {
    background: rgba(51, 51, 51, 0.8);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid var(--input-border-color, darkred);
}

.advice-section h3 {
    margin: 0 0 20px 0;
    text-align: center;
    color: var(--button-bg-color, darkred);
}

.advice-section p {
    font-size: 1.1em;
    line-height: 1.8;
    text-align: justify;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-action {
    padding: 15px 30px;
    background: var(--button-bg-color, darkred);
    color: var(--button-text-color, white);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s;
    font-weight: 500;
}

.btn-action:hover {
    background: var(--button-hover-bg-color, red);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .selector-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 20px;
    }

    .heart-divider {
        order: -1;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .score-meter {
        height: 50px;
    }

    .score-text {
        font-size: 1.5em;
    }

    .hearts-display {
        font-size: 2em;
    }
}

@media (max-width: 580px) {
    .action-buttons {
        flex-direction: column;
    }

    .btn-action {
        width: 100%;
    }
}

/* Light Mode Support */
[data-theme="light"] body {
    background: #f0f2f5;
    color: #333;
}

[data-theme="light"] h1 {
    color: #1a1a1a;
}

[data-theme="light"] .selector-section,
[data-theme="light"] .compatibility-score,
[data-theme="light"] .analysis-card,
[data-theme="light"] .element-compatibility,
[data-theme="light"] .advice-section {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-color: #0056b3;
}

[data-theme="light"] .sign-selector h3,
[data-theme="light"] .compatibility-score h2,
[data-theme="light"] .element-compatibility h3,
[data-theme="light"] .advice-section h3 {
    color: #0056b3;
}

[data-theme="light"] .sign-dropdown {
    background: white;
    color: #333;
    border-color: #0056b3;
}

[data-theme="light"] .score-meter {
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .analysis-card li {
    background: rgba(0, 0, 0, 0.05);
}
