/* Custom Styles to fully integrate the calculator with the Forty Theme */

/* 1. Header & Section Color Updates */
#header {
    background-color: #805ad5; 
    transition: background-color 0.3s ease-in-out;
}
#header.alt {
    background-color: transparent;
}
#description-wrapper, #results, #legal, #spiritual-context, #transit-section {
    background-color: #24293e;
}
#form-section {
    position: relative;
    background-color: #202436;
    background-image: url('../images/star-background.jpg');
    background-size: cover;
    background-position: center center;
}

/* Header/Banner Overrides */
#header.alt {
    background: none !important;
    box-shadow: none !important;
}
#banner:before {
    background: rgba(36, 41, 62, 0.25) !important; 
    box-shadow: none !important;
    opacity: 1 !important; 
}
#banner {
    background-image: url('../images/star-background.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* 2. Layout & Sizing */
.two-column-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3em;
    align-items: flex-start;
}
@media screen and (max-width: 980px) {
    .two-column-container {
        grid-template-columns: 1fr;
    }
}
@media screen and (max-width: 736px) {
    #header .logo span {
        display: inline !important;
        font-weight: 400;
    }
}

/* Sizing for chart containers */
#sidereal-wheel-container, #tropical-wheel-container {
    max-width: 100%;
    margin: 0 auto;
}
/* REMOVED: Removed the rule that was making the transit charts smaller */


/* 3. Thematic Font and Color Consistency */
pre {
    background-color: #2a2f43;
    border-radius: 4px;
    border: solid 1px rgba(255, 255, 255, 0.25);
    font-family: "Source Sans Pro", sans-serif;
    padding: 1.5em;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.9em;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.75);
}
#gemini-output {
    font-family: "Source Sans Pro", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: #ffffff;
}
.results-container .major { margin-bottom: 2rem; }

.results-container {
    display: none; 
}
.results-container .result-section h2 {
    text-align: left;
}

/* MODIFIED: Increased the width of ONLY the results section to make user charts larger */
#results .inner, #transit-section .inner {
    max-width: 90em;
}

.report-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    align-items: start;
}

@media screen and (max-width: 980px) {
    .report-columns {
        grid-template-columns: 1fr;
    }
}

.chart-wheels-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    align-items: center;
}
.chart-wheels-wrapper h3 {
    text-align: center;
    margin-bottom: 1em;
}
@media screen and (max-width: 980px) {
    .chart-wheels-wrapper {
        grid-template-columns: 1fr;
    }
}


/* 4. Form Styling */
#form-section .field > label {
    font-size: 1rem;
}
#form-section input[type="text"],
#form-section input[type="email"] {
    border: solid 1px rgba(255, 255, 255, 0.25);
}
.field-note {
    font-size: 0.85rem;
    font-weight: 400;
    font-style: normal;
    opacity: 0.8;
    margin-left: 0.75em;
    text-transform: none;
    letter-spacing: 0.05em;
}
.name-numerology-toggle label, .time-inputs-container label {
    font-size: 0.85rem;
    font-weight: 400;
    font-style: normal;
    opacity: 0.8;
    text-transform: none;
    letter-spacing: 0.05em;
}

#form-section .field:has(#fullName) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
#form-section .field:has(#fullName) > label {
    width: 100%; 
    margin-bottom: 0.5em;
}
#form-section .field:has(#fullName) > input {
    flex: 1; 
    min-width: 200px;
}
.name-numerology-toggle {
    display: flex;
    align-items: center;
    margin-top: 0; 
    margin-left: 2em;
}

.time-checkbox-container {
    display: flex;
    align-items: flex-end;
    padding-bottom: 0.8em;
}
.time-inputs-container {
    padding-top: 0;
    display: flex;
    align-items: center;
}
#form-section input[type="checkbox"] + label::before {
    content: '';
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid #ffffff;
    border-radius: 4px;
}

#form-section input[type="checkbox"]:checked + label::before {
    background-color: #ffffff; 
}

#form-section input[type="checkbox"]:checked + label::after {
    color: #24293e; 
}
/* 5. Chart Wheel SVG styles */
#sidereal-wheel-svg, #tropical-wheel-svg, #sidereal-transit-wheel-svg, #tropical-transit-wheel-svg { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.wheel-circle { stroke: rgba(255, 255, 255, 0.25); stroke-width: 2; fill: none; }
.zodiac-divider { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; }
.house-cusp { stroke: #ffffff; stroke-width: 1.5; }
.house-cusp.major { stroke-width: 3; }
.house-number { fill: #ffffff; font-size: 24px; text-anchor: middle; dominant-baseline: middle; opacity: 0.8;}
.zodiac-glyph { fill: #ffffff; font-size: 30px; text-anchor: middle; dominant-baseline: middle; }
.planet-glyph { fill: #ffffff; font-size: 35px; text-anchor: middle; dominant-baseline: middle; }
.planet-retrograde { 
    fill: #ffffff; 
    font-size: 20px; 
    text-anchor: middle; 
    dominant-baseline: middle;
}
.aspect-line { stroke-width: 1.5; opacity: 0.7; }
.aspect-conjunction { stroke: #38a169; }
.aspect-opposition, .aspect-square { stroke: #e53e3e; }
.aspect-trine, .aspect-sextile { stroke: #3182ce; }
.aspect-quincunx, .aspect-semisextile, .aspect-semisquare, .aspect-sesquiquadrate, .aspect-quintile, .aspect-biquintile { stroke: rgba(255, 255, 255, 0.25); stroke-dasharray: 4 4; }

/* 6. Cleaner styling for Legal & Spiritual Context Sections */
#legal .inner {
    border-top: solid 2px rgba(255, 255, 255, 0.25);
    margin-top: 3rem;
    padding-top: 3rem;
}
#spiritual-context .inner {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}
#legal details, #spiritual-context details {
    background: transparent;
    border: solid 1px rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 1.5em;
    margin-bottom: 1rem;
}
#legal summary, #spiritual-context summary {
    font-weight: 600;
    font-size: 1.2rem;
    cursor: pointer;
    color: #ffffff;
    transition: color 0.2s ease-in-out;
    list-style: none;
}
#legal summary::-webkit-details-marker, #spiritual-context summary::-webkit-details-marker { display: none; }
#legal summary:hover, #spiritual-context summary:hover { color: #805ad5; }
#legal details div, #spiritual-context details div {
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: solid 1px rgba(255, 255, 255, 0.25);
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.75);
}
#legal h4, #spiritual-context h4 {
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem 0;
    color: #ffffff;
}

/* 7. Styles for the dropdown glyph legend */
.glyph-legend-details {
    background: transparent;
    border: solid 1px rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    padding: 1.2em;
    margin-top: 2rem;
    font-size: 0.9em;
}
.glyph-legend-details summary {
    font-weight: 600;
    cursor: pointer;
    color: #ffffff;
    list-style: none;
    transition: color 0.2s ease-in-out;
}
.glyph-legend-details summary:hover {
    color: #805ad5;
}
.glyph-legend-details summary::-webkit-details-marker {
    display: none;
}
.glyph-legend-details pre {
    margin-top: 1rem;
    padding: 1rem;
    border: none;
    background-color: #2a2f43;
    border-radius: 4px;
}
#form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(36, 41, 62, 0.85); 
}
#form-section .inner {
    position: relative;
}
