/* Core Grid Definition */
.site-grid {
    display: grid;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    color: #2D3436;
    grid-template-areas:
        "header header"
        "zone1  zone1"
        "main   sidebar"
        "footer footer";
}

/* Typography from MASTER.md */
h1,
h2,
h3 {
    font-family: 'Cormorant Garamond', serif;
    color: #D4AF37;
    /* Gold Accent */
}

/* Dynamic AdSense Zone Styling */
.ad-zone {
    min-height: 250px;
    background-color: rgba(168, 213, 186, 0.1);
    /* Subtle Sage Tint */
    border: 1px dashed #A8D5BA;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-billboard {
    grid-area: zone1;
    width: 100%;
}

.main-content {
    grid-area: main;
}

.sidebar {
    grid-area: sidebar;
    width: 300px;
}

.footer {
    grid-area: footer;
    border-top: 1px solid #A8D5BA;
    padding-top: 20px;
    font-size: 0.8rem;
}

/* Responsive Mobile Override */
@media (max-width: 768px) {
    .site-grid {
        grid-template-areas:
            "header"
            "zone1"
            "main"
            "sidebar"
            "footer";
    }

    .sidebar {
        width: 100%;
    }
}

/* --- AISEO & GEO Optimization Layer --- */

/* Answer Nugget: High visibility for AI Answer Engine snippets */
.answer-nugget {
    background-color: rgba(168, 213, 186, 0.15);
    /* Sage Green #A8D5BA at 15% opacity */
    border-left: 4px solid #D4AF37;
    /* Gold Accent */
    color: #2D3436;
    /* Charcoal for readability */
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Soft UI shadow */
}

.answer-nugget::before {
    content: "💡 Expert Insight";
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #D4AF37;
    /* Gold */
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

/* Key Takeaways: Summary list for LLM summarization */
.key-takeaways {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #A8D5BA;
    /* Sage Green */
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.key-takeaways h3 {
    color: #2D3436;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.key-takeaways ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-takeaways li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: #4b5563;
}

.key-takeaways li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #A8D5BA;
    /* Sage Green */
    font-weight: bold;
}

/* --- Eco Optimizer Tool Styling --- */
#eco-optimizer-section {
    background-color: #354F52;
    /* Dark Forest */
    color: #F8F9FA;
    padding: 4rem 0;
}

.luxe-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    /* Gold border at 30% */
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.text-gold {
    color: #D4AF37 !important;
}

.optimizer-controls {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.luxe-select {
    background: #2F3E46;
    color: #F8F9FA;
    border: 2px solid #D4AF37;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
}

.optimizer-output {
    margin-top: 2rem;
    opacity: 0;
    /* Managed by JS */
    transition: opacity 0.5s ease;
}

.output-card {
    background: #F8F9FA;
    color: #354F52;
    padding: 2rem;
    border-radius: 12px;
    border-top: 6px solid #D4AF37;
}

.output-card h3 {
    margin-top: 0;
    color: #354F52 !important;
}

.value-highlight {
    background: rgba(168, 213, 186, 0.2);
    padding: 1rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #A8D5BA;
}

.value-highlight .label {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: block;
    color: #354F52;
    margin-bottom: 0.25rem;
}

.luxe-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #D4AF37;
    color: #354F52;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.luxe-button:hover {
    background: #F8F9FA;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}