/* Birth Chart Calculator 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: 1200px;
    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;
}

/* Input Section */
.input-section {
    background: rgba(51, 51, 51, 0.8);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 2px solid var(--input-border-color, darkred);
}

.input-section h2 {
    text-align: center;
    margin: 0 0 30px 0;
    color: var(--button-bg-color, darkred);
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--primary-text-color, white);
}

.input-group input {
    padding: 12px;
    border: 2px solid var(--input-border-color, darkred);
    border-radius: 8px;
    font-size: 1em;
    background: var(--input-bg-color, #1a1a1a);
    color: var(--input-text-color, white);
}

.input-group input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: var(--button-bg-color, darkred);
    color: var(--button-text-color, white);
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.calculate-btn:hover {
    background: var(--button-hover-bg-color, red);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.disclaimer {
    text-align: center;
    font-size: 0.9em;
    color: var(--secondary-text-color, #999);
    line-height: 1.6;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

/* Results Section */
.results-section {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chart-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    background: rgba(51, 51, 51, 0.8);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid var(--input-border-color, darkred);
}

.zodiac-wheel-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#zodiac-wheel {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.3));
}

.chart-summary h2 {
    text-align: center;
    margin: 0 0 30px 0;
    color: var(--button-bg-color, darkred);
}

.big-three {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.placement {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border-left: 4px solid var(--button-bg-color, darkred);
}

.sun-placement { border-left-color: #ffa500; }
.moon-placement { border-left-color: #c0c0c0; }
.rising-placement { border-left-color: #87ceeb; }

.placement-icon {
    font-size: 2.5em;
}

.placement-label {
    font-size: 0.9em;
    color: var(--secondary-text-color, #999);
}

.placement-value {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-text-color, white);
}

/* Interpretations */
.interpretations {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.interpretation-card {
    background: rgba(51, 51, 51, 0.8);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid var(--input-border-color, darkred);
}

.interpretation-card h3 {
    margin: 0 0 15px 0;
    color: var(--button-bg-color, darkred);
}

.interpretation-card span {
    color: var(--primary-text-color, white);
}

.interpretation-card p {
    font-size: 1.1em;
    line-height: 1.8;
    margin: 0;
}

/* Action Section */
.action-section {
    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: 1024px) {
    .chart-display {
        grid-template-columns: 1fr;
    }

    #zodiac-wheel {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .input-grid {
        grid-template-columns: 1fr;
    }

    .input-section,
    .chart-display {
        padding: 30px 20px;
    }

    #zodiac-wheel {
        max-width: 300px;
    }

    .placement {
        grid-template-columns: auto 1fr;
    }

    .placement-value {
        grid-column: 2;
        text-align: right;
    }
}

@media (max-width: 580px) {
    .action-section {
        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"] .input-section,
[data-theme="light"] .chart-display,
[data-theme="light"] .interpretation-card {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-color: #0056b3;
}

[data-theme="light"] .input-section h2,
[data-theme="light"] .chart-summary h2,
[data-theme="light"] .interpretation-card h3 {
    color: #0056b3;
}

[data-theme="light"] .input-group input {
    background: white;
    color: #333;
    border-color: #0056b3;
}

[data-theme="light"] .placement {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .placement-value {
    color: #333;
}

[data-theme="light"] .disclaimer {
    background: rgba(0, 0, 0, 0.05);
}
