/**
 * Professional Weekly Horoscope Styles
 * Mystical-themed CSS with two-tier methodology structure
 * 
 * Design Philosophy: "Content is sober and methodological; presentation is warm and inviting."
 */

/* ============================================================================
   CSS CUSTOM PROPERTIES (Overridable by users)
   ============================================================================ */
.ez-horoscope-block.ez-horoscope-professional-weekly {
    /* ===== PRIMARY PALETTE ===== */
    --ezhp-color-primary: #5D6B8A;           /* Deep mystical purple-blue */
    --ezhp-color-secondary: #C9A962;          /* Warm gold accent */
    --ezhp-color-tertiary: #9BA4C4;           /* Soft lavender */
    
    /* ===== TEXT COLORS ===== */
    --ezhp-text-heading: #3d4a66;
    --ezhp-text-body: #1a1f2e;
    --ezhp-text-muted: #4a5568;
    
    /* ===== BACKGROUNDS ===== */
    --ezhp-bg-hero: linear-gradient(135deg, rgba(93, 107, 138, 0.08) 0%, rgba(155, 164, 196, 0.06) 50%, rgba(201, 169, 98, 0.04) 100%);
    --ezhp-bg-section: rgba(255, 255, 255, 0.6);
    --ezhp-bg-highlight: rgba(201, 169, 98, 0.08);
    
    /* ===== TYPOGRAPHY ===== */
    --ezhp-font-heading: "Cormorant Garamond", Georgia, serif;
    --ezhp-font-body: inherit;
    --ezhp-font-size-hero-title: 2.25rem;
    --ezhp-font-size-section-heading: 1.5rem;
    --ezhp-font-size-body: 1rem;
    
    /* ===== LAYOUT ===== */
    --ezhp-border-radius: 16px;
    --ezhp-section-padding: 2rem;
    --ezhp-section-margin: 2rem;
    
    /* ===== DECORATIVE SYMBOLS ===== */
    --ezhp-symbol-default: "✦";
    --ezhp-symbol-moon: "☽";
    --ezhp-symbol-star: "☆";
    --ezhp-symbol-diamond: "✧";
    
    /* ===== BORDERS & SHADOWS ===== */
    --ezhp-border-color: rgba(155, 164, 196, 0.3);
    --ezhp-shadow: 0 4px 12px rgba(93, 107, 138, 0.1);
    --ezhp-shadow-glow: 0 0 20px rgba(201, 169, 98, 0.15);
}

/* ============================================================================
   BASE CONTAINER
   ============================================================================ */
.ez-horoscope-block.ez-horoscope-professional-weekly {
    font-family: var(--ezhp-font-body);
    color: var(--ezhp-text-body);
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.ez-horoscope-weekly-professional.ez-hero {
    background: var(--ezhp-bg-hero);
    border-radius: var(--ezhp-border-radius);
    padding: var(--ezhp-section-padding);
    margin-bottom: var(--ezhp-section-margin);
    position: relative;
    overflow: hidden;
}

.ez-horoscope-weekly-professional.ez-hero::before {
    content: "✧ ✦ ✧";
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--ezhp-color-secondary);
    opacity: 0.4;
    font-size: 0.9rem;
    letter-spacing: 0.5rem;
}

.ez-horoscope-weekly-professional .ez-hero-content {
    position: relative;
    z-index: 2;
}

.ez-horoscope-weekly-professional .ez-hero-content h1 {
    font-family: var(--ezhp-font-heading);
    font-size: var(--ezhp-font-size-hero-title);
    font-weight: 500;
    font-style: italic;
    color: var(--ezhp-text-heading);
    margin: 0 0 0.5rem 0;
    letter-spacing: 0.02em;
}

.ez-horoscope-weekly-professional .ez-hero-content h3 {
    font-family: var(--ezhp-font-heading);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--ezhp-color-primary);
    margin: 0 0 1.5rem 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Week Character / Intro */
.ez-horoscope-weekly-professional .ez-week-character {
    background: var(--ezhp-bg-section);
    border-left: 3px solid var(--ezhp-color-secondary);
    padding: 1.25rem 1.5rem;
    border-radius: 0 8px 8px 0;
    margin-top: 1rem;
}

.ez-horoscope-weekly-professional .ez-week-character p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.ez-horoscope-weekly-professional .ez-week-character strong {
    color: var(--ezhp-color-primary);
}

/* ============================================================================
   PROFESSIONAL SECTIONS (Common Styles)
   ============================================================================ */
.ez-professional-section {
    background: var(--ezhp-bg-section);
    border-radius: var(--ezhp-border-radius);
    padding: var(--ezhp-section-padding);
    margin-bottom: var(--ezhp-section-margin);
    box-shadow: var(--ezhp-shadow);
    border: 1px solid var(--ezhp-border-color);
}

.ez-professional-section h2 {
    font-family: var(--ezhp-font-heading);
    font-size: var(--ezhp-font-size-section-heading);
    font-weight: 500;
    font-style: italic;
    color: var(--ezhp-text-heading);
    margin: 0 0 1.25rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ezhp-border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ez-professional-section h2::before {
    content: var(--ezhp-symbol-default);
    color: var(--ezhp-color-secondary);
    font-size: 0.9em;
}

.ez-professional-content p {
    margin: 0 0 1rem 0;
}

.ez-professional-content p:last-child {
    margin-bottom: 0;
}

/* ============================================================================
   TRIGGER SECTION (#weekly-trigger)
   ============================================================================ */
#weekly-trigger {
    background: var(--ezhp-bg-highlight);
    border-left: 4px solid var(--ezhp-color-secondary);
}

#weekly-trigger h2::before {
    content: "⚡";
}

.ez-trigger-header {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ezhp-text-heading);
    background: linear-gradient(135deg, var(--ezhp-color-secondary) 0%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.ez-trigger-type {
    display: inline-block;
    background: rgba(201, 169, 98, 0.2);
    color: var(--ezhp-color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* ============================================================================
   ONGOING CONTEXT SECTION (#ongoing-context)
   ============================================================================ */
#ongoing-context {
    border-left: 4px solid var(--ezhp-color-tertiary);
}

#ongoing-context h2::before {
    content: var(--ezhp-symbol-moon);
}

.ez-background-aspect {
    font-style: italic;
    color: var(--ezhp-color-primary);
}

/* ============================================================================
   LIFE SECTORS SECTION (#life-sectors)
   ============================================================================ */
#life-sectors h2::before {
    content: "◈";
}

.ez-sector-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.ez-sector-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    border-left: 3px solid var(--ezhp-color-tertiary);
    box-shadow: 0 2px 8px rgba(93, 107, 138, 0.08);
}

.ez-sector-card h4 {
    font-family: var(--ezhp-font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--ezhp-text-heading);
    margin: 0 0 0.5rem 0;
}

.ez-sector-card p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--ezhp-text-muted);
}

/* Card color variations */
.ez-sector-card:nth-child(1) {
    border-left-color: var(--ezhp-color-tertiary);
}

.ez-sector-card:nth-child(2) {
    border-left-color: var(--ezhp-color-secondary);
}

.ez-sector-card:nth-child(3) {
    border-left-color: var(--ezhp-color-primary);
}

/* ============================================================================
   TEMPORALITY SECTION (#temporality)
   ============================================================================ */
#temporality h2::before {
    content: "⏳";
}

.ez-favorable-periods,
.ez-sensitive-periods {
    margin-bottom: 1.25rem;
}

.ez-favorable-periods h4,
.ez-sensitive-periods h4 {
    font-family: var(--ezhp-font-heading);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.ez-favorable-periods h4 {
    color: #2d7d46;
}

.ez-sensitive-periods h4 {
    color: #a85d32;
}

.ez-favorable-periods ul,
.ez-sensitive-periods ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ez-favorable-periods li::before {
    content: "✓ ";
    color: #2d7d46;
    font-weight: bold;
}

.ez-sensitive-periods li::before {
    content: "⚠ ";
    color: #a85d32;
}

.ez-favorable-periods li,
.ez-sensitive-periods li {
    padding: 0.25rem 0;
    padding-left: 1.5rem;
    text-indent: -1.5rem;
}

/* ============================================================================
   LIMITATIONS SECTION (#limitations)
   ============================================================================ */
#limitations {
    background: rgba(201, 169, 98, 0.06);
    border-color: rgba(201, 169, 98, 0.4);
}

#limitations h2::before {
    content: "⚖";
}

.ez-disclaimer {
    background: rgba(201, 169, 98, 0.1);
    border: 1px dashed rgba(201, 169, 98, 0.5);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    color: var(--ezhp-text-muted);
    font-style: italic;
    margin-top: 1rem;
}

.ez-disclaimer::before {
    content: "ⓘ ";
    color: var(--ezhp-color-secondary);
}

/* ============================================================================
   ADVICE SECTION (#advice)
   ============================================================================ */
#advice h2::before {
    content: "💡";
}

.ez-advice-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ez-advice-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px solid rgba(155, 164, 196, 0.2);
}

.ez-advice-list li:last-child {
    border-bottom: none;
}

.ez-advice-list li::before {
    content: var(--ezhp-symbol-default);
    position: absolute;
    left: 0;
    top: 0.75rem;
    color: var(--ezhp-color-secondary);
    font-size: 1.1rem;
}

/* ============================================================================
   SYNTHESIS SECTION (#synthesis)
   ============================================================================ */
#synthesis {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.08) 0%, rgba(155, 164, 196, 0.06) 100%);
    border: 2px solid var(--ezhp-color-secondary);
    box-shadow: var(--ezhp-shadow-glow);
    text-align: center;
}

#synthesis h2 {
    justify-content: center;
}

#synthesis h2::before {
    content: "✧";
}

.ez-synthesis {
    font-family: var(--ezhp-font-heading);
    font-size: 1.15rem;
    font-style: italic;
    line-height: 1.9;
    color: var(--ezhp-text-heading);
}

/* ============================================================================
   INLINE IMAGE SUPPORT
   ============================================================================ */
.ez-weekly-inline-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.ez-weekly-inline-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Overlay styles */
.ez-weekly-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    border-radius: 8px;
}

.ez-weekly-overlay.dark {
    background-color: rgba(0, 0, 0, var(--ezhp-overlay-opacity, 0.5));
}

.ez-weekly-overlay.light {
    background-color: rgba(255, 255, 255, var(--ezhp-overlay-opacity, 0.5));
}

/* ============================================================================
   CTA STYLES
   ============================================================================ */
.ez-weekly-cta {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: var(--ezhp-border-radius);
    padding: 2rem;
    margin: var(--ezhp-section-margin) 0;
    text-align: center;
    box-shadow: 0 8px 24px rgba(22, 33, 62, 0.3);
}

.ez-weekly-cta-transparent {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.ez-weekly-cta-headline {
    font-family: var(--ezhp-font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    margin: 0 0 1rem 0;
}

.ez-weekly-cta-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 1.5rem 0;
}

.ez-weekly-cta-image {
    display: block;
    margin: 0 auto 1.5rem auto;
    border-radius: 8px;
}

.ez-weekly-cta-image-link {
    display: block;
    margin: 0 auto 1.5rem auto;
    width: fit-content;
}

.ez-weekly-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #e94560 0%, #c23a51 100%);
    color: #ffffff !important;
    text-decoration: none;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.4);
}

.ez-weekly-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(233, 69, 96, 0.5);
    color: #ffffff !important;
}

/* ============================================================================
   RTL SUPPORT
   ============================================================================ */
.ez-horoscope-rtl .ez-professional-section h2 {
    flex-direction: row-reverse;
}

.ez-horoscope-rtl .ez-week-character {
    border-left: none;
    border-right: 3px solid var(--ezhp-color-secondary);
    border-radius: 8px 0 0 8px;
}

.ez-horoscope-rtl #weekly-trigger,
.ez-horoscope-rtl #ongoing-context {
    border-left: none;
    border-right-width: 4px;
    border-right-style: solid;
}

.ez-horoscope-rtl #weekly-trigger {
    border-right-color: var(--ezhp-color-secondary);
}

.ez-horoscope-rtl #ongoing-context {
    border-right-color: var(--ezhp-color-tertiary);
}

.ez-horoscope-rtl .ez-sector-card {
    border-left: none;
    border-right: 3px solid var(--ezhp-color-tertiary);
}

.ez-horoscope-rtl .ez-advice-list li {
    padding-left: 0;
    padding-right: 2rem;
}

.ez-horoscope-rtl .ez-advice-list li::before {
    left: auto;
    right: 0;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 768px) {
    .ez-horoscope-block.ez-horoscope-professional-weekly {
        --ezhp-font-size-hero-title: 1.75rem;
        --ezhp-font-size-section-heading: 1.25rem;
        --ezhp-section-padding: 1.5rem;
        --ezhp-section-margin: 1.5rem;
    }
    
    .ez-sector-cards {
        grid-template-columns: 1fr;
    }
    
    .ez-horoscope-weekly-professional.ez-hero::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .ez-horoscope-block.ez-horoscope-professional-weekly {
        --ezhp-font-size-hero-title: 1.5rem;
        --ezhp-font-size-section-heading: 1.15rem;
        --ezhp-section-padding: 1.25rem;
        --ezhp-section-margin: 1.25rem;
    }
    
    .ez-weekly-cta {
        padding: 1.5rem;
    }
    
    .ez-weekly-cta-headline {
        font-size: 1.25rem;
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */
@media print {
    .ez-horoscope-block.ez-horoscope-professional-weekly {
        max-width: 100%;
    }
    
    .ez-professional-section {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .ez-weekly-cta {
        display: none;
    }
    
    .ez-horoscope-weekly-professional.ez-hero {
        background: #f5f5f5 !important;
    }
}
