/**
 * Zodiac Profile Block Styles
 * Mystical-themed CSS for interactive zodiac sign profiles
 *
 * Design Philosophy: "Content is rich and informative; presentation is warm and inviting."
 */

/* ============================================================================
   CSS CUSTOM PROPERTIES (Overridable by users)
   ============================================================================ */
.ez-horoscope-block.ez-zodiac-profile,
.ez-zodiac-profile-block {
    --ezhp-color-primary: #5D6B8A;
    --ezhp-color-secondary: #C9A962;
    --ezhp-color-tertiary: #9BA4C4;
    --ezhp-text-heading: #3d4a66;
    --ezhp-text-body: #1a1f2e;
    --ezhp-text-muted: #4a5568;
    --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);
    --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-border-radius: 16px;
    --ezhp-section-padding: 2rem;
    --ezhp-section-margin: 2rem;
    --ezhp-symbol-default: "✦";
    --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-zodiac-profile-block {
    font-family: var(--ezhp-font-body);
    color: var(--ezhp-text-body);
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
}

/* ============================================================================
   FORM STYLES
   ============================================================================ */
.ez-zodiac-profile-block .ezhp-form {
    background: var(--ezhp-bg-hero);
    border-radius: var(--ezhp-border-radius);
    padding: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--ezhp-border-color);
    box-shadow: var(--ezhp-shadow);
}

.ez-zodiac-profile-block .ezhp-form label {
    font-family: var(--ezhp-font-heading);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ezhp-text-heading);
    flex-shrink: 0;
}

.ez-zodiac-profile-block .ezhp-date-input {
    flex: 1;
    min-width: 180px;
    padding: 0.65rem 1rem;
    border: 1px solid var(--ezhp-border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--ezhp-text-body);
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ez-zodiac-profile-block .ezhp-date-input:focus {
    outline: none;
    border-color: var(--ezhp-color-secondary);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.15);
}

.ez-zodiac-profile-block .ezhp-fetch-button {
    background: linear-gradient(135deg, var(--ezhp-color-primary) 0%, var(--ezhp-color-tertiary) 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.7rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(93, 107, 138, 0.25);
    flex-shrink: 0;
}

.ez-zodiac-profile-block .ezhp-fetch-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(93, 107, 138, 0.35);
}

/* Loading / error / validation messages */
.ez-zodiac-profile-block .ezhp-loading,
.ez-zodiac-profile-block .ezhp-error,
.ez-zodiac-profile-block .ezhp-validation-msg {
    text-align: center;
    padding: 2rem;
    color: var(--ezhp-text-muted);
    font-style: italic;
}

/* ============================================================================
   RESULT WRAPPER
   ============================================================================ */
.ez-zodiac-profile {
    margin-top: var(--ezhp-section-margin);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.ez-zodiac-profile-section.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-zodiac-profile-section.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-zodiac-profile-section .ez-hero-content {
    position: relative;
    z-index: 2;
}

.ez-profile-title {
    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-profile-subtitle {
    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;
}

.ez-profile-vitals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    background: var(--ezhp-bg-section);
    border-left: 3px solid var(--ezhp-color-secondary);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
}

.ez-vital {
    font-size: 0.95rem;
    color: var(--ezhp-text-body);
    white-space: nowrap;
}

.ez-vital strong {
    color: var(--ezhp-color-primary);
}

/* ============================================================================
   PROFILE SECTIONS (Common Styles)
   ============================================================================ */
.ez-profile-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-profile-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-profile-section h2::before {
    content: var(--ezhp-symbol-default);
    color: var(--ezhp-color-secondary);
    font-size: 0.9em;
}

.ez-profile-content p { margin: 0 0 1rem 0; }
.ez-profile-content p:last-child { margin-bottom: 0; }

/* Section-specific icons */
#personality h2::before { content: "✧"; }
#decans h2::before { content: "◈"; }
#compatibility h2::before { content: "♡"; }
#career h2::before { content: "⚙"; }
#correspondences h2::before { content: "✧"; }
#famous-people h2::before { content: "★"; }

/* ============================================================================
   PERSONALITY
   ============================================================================ */
.ez-core-motivation {
    background: var(--ezhp-bg-highlight);
    border-left: 3px solid var(--ezhp-color-secondary);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.ez-traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.ez-trait-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(93, 107, 138, 0.08);
}

.ez-trait-card h4 {
    font-family: var(--ezhp-font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 0.75rem 0;
}

.ez-trait-card ul { list-style: none; padding: 0; margin: 0; }
.ez-trait-card li { padding: 0.3rem 0 0.3rem 1.5rem; position: relative; font-size: 0.95rem; }
.ez-trait-card li::before { position: absolute; left: 0; top: 0.3rem; }

.ez-strengths { border-left: 3px solid #2d7d46; }
.ez-strengths h4 { color: #2d7d46; }
.ez-strengths li::before { content: "✓ "; color: #2d7d46; font-weight: bold; }

.ez-challenges { border-left: 3px solid #a85d32; }
.ez-challenges h4 { color: #a85d32; }
.ez-challenges li::before { content: "⚠ "; color: #a85d32; }

.ez-style-detail {
    background: rgba(93, 107, 138, 0.04);
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    margin: 0.75rem 0;
    font-size: 0.95rem;
    line-height: 1.8;
}
.ez-style-detail strong { color: var(--ezhp-color-primary); }

/* ============================================================================
   DECANS
   ============================================================================ */
.ez-decan-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.ez-decan-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(93, 107, 138, 0.08);
    border-top: 3px solid var(--ezhp-color-tertiary);
}
.ez-decan-card:nth-child(1) { border-top-color: var(--ezhp-color-secondary); }
.ez-decan-card:nth-child(2) { border-top-color: var(--ezhp-color-primary); }
.ez-decan-card:nth-child(3) { border-top-color: var(--ezhp-color-tertiary); }

.ez-decan-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-decan-dates { font-size: 0.85rem; color: var(--ezhp-text-muted); margin: 0 0 0.5rem 0; font-style: italic; }
.ez-decan-ruler { font-size: 0.9rem; margin: 0 0 0.5rem 0; }
.ez-decan-ruler strong { color: var(--ezhp-color-primary); }
.ez-decan-traits { font-size: 0.95rem; color: var(--ezhp-text-muted); margin: 0; line-height: 1.7; }

/* ============================================================================
   COMPATIBILITY
   ============================================================================ */
.ez-compat-group { margin-bottom: 1.5rem; }
.ez-compat-group:last-child { margin-bottom: 0; }
.ez-compat-heading { font-family: var(--ezhp-font-heading); font-size: 1.05rem; font-weight: 600; margin: 0 0 0.75rem 0; }
.ez-compat-good { color: #2d7d46; }
.ez-compat-challenge { color: #a85d32; }

.ez-compat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0.75rem; }
.ez-compat-card { background: white; border-radius: 10px; padding: 1rem 1.25rem; box-shadow: 0 2px 8px rgba(93, 107, 138, 0.06); }
.ez-compat-card strong { display: block; font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--ezhp-text-heading); }
.ez-compat-card p { font-size: 0.9rem; color: var(--ezhp-text-muted); margin: 0; line-height: 1.7; }
.ez-compat-positive { border-left: 3px solid #2d7d46; }
.ez-compat-challenging { border-left: 3px solid #a85d32; }

.ez-opposite-sign {
    background: var(--ezhp-bg-highlight);
    border: 1px dashed rgba(201, 169, 98, 0.5);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
}
.ez-opposite-sign strong { color: var(--ezhp-color-primary); display: block; margin-bottom: 0.4rem; }
.ez-opposite-sign p { font-size: 0.95rem; color: var(--ezhp-text-muted); margin: 0; font-style: italic; }

/* ============================================================================
   CAREER
   ============================================================================ */
.ez-ideal-fields { margin-top: 1rem; }
.ez-ideal-fields h4 { font-family: var(--ezhp-font-heading); font-size: 1.05rem; font-weight: 600; color: var(--ezhp-text-heading); margin: 0 0 0.5rem 0; }
.ez-ideal-fields ul { list-style: none; padding: 0; margin: 0; }
.ez-ideal-fields li { padding: 0.4rem 0 0.4rem 2rem; position: relative; border-bottom: 1px solid rgba(155, 164, 196, 0.15); }
.ez-ideal-fields li:last-child { border-bottom: none; }
.ez-ideal-fields li::before { content: var(--ezhp-symbol-default); position: absolute; left: 0; top: 0.4rem; color: var(--ezhp-color-secondary); font-size: 0.9rem; }

/* ============================================================================
   CORRESPONDENCES
   ============================================================================ */
.ez-corresp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.ez-corresp-item { display: flex; flex-direction: column; padding: 0.75rem 1rem; border-bottom: 1px solid rgba(155, 164, 196, 0.15); }
.ez-corresp-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ezhp-color-primary); font-weight: 600; margin-bottom: 0.15rem; }
.ez-corresp-value { font-size: 0.95rem; color: var(--ezhp-text-body); }

.ez-tarot-card {
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.08) 0%, rgba(155, 164, 196, 0.06) 100%);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-top: 1.25rem;
}
.ez-tarot-card h4 { font-family: var(--ezhp-font-heading); font-size: 1.1rem; font-weight: 500; font-style: italic; color: var(--ezhp-text-heading); margin: 0 0 0.5rem 0; }
.ez-tarot-card p { font-size: 0.95rem; color: var(--ezhp-text-muted); margin: 0; line-height: 1.8; font-style: italic; }

/* ============================================================================
   FAMOUS PEOPLE
   ============================================================================ */
.ez-famous-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 1rem; }
.ez-famous-card { background: white; border-radius: 12px; padding: 1.25rem; box-shadow: 0 2px 8px rgba(93, 107, 138, 0.08); border-left: 3px solid var(--ezhp-color-secondary); }
.ez-famous-card strong { display: block; font-size: 1.05rem; color: var(--ezhp-text-heading); margin-bottom: 0.25rem; }
.ez-famous-date { display: block; font-size: 0.8rem; color: var(--ezhp-text-muted); font-style: italic; margin-bottom: 0.5rem; }
.ez-famous-card p { font-size: 0.9rem; color: var(--ezhp-text-muted); margin: 0; line-height: 1.7; }

/* ============================================================================
   INLINE IMAGE & OVERLAY
   ============================================================================ */
.ez-profile-inline-image { position: relative; border-radius: 8px; overflow: hidden; }
.ez-profile-inline-image img { display: block; width: 100%; height: auto; }
.ez-profile-overlay { pointer-events: none; }

/* ============================================================================
   CTA STYLES
   ============================================================================ */
.ez-profile-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-profile-cta-transparent { background: transparent !important; box-shadow: none !important; border: none !important; }
.ez-profile-cta-headline { font-family: var(--ezhp-font-heading); font-size: 1.5rem; font-weight: 500; color: #ffffff; margin: 0 0 1rem 0; }
.ez-profile-cta-text { color: rgba(255, 255, 255, 0.85); font-size: 1rem; line-height: 1.7; margin: 0 0 1.5rem 0; }
.ez-profile-cta-image { display: block; margin: 0 auto 1.5rem auto; border-radius: 8px; }
.ez-profile-cta-image-link { display: block; margin: 0 auto 1.5rem auto; width: fit-content; }
.ez-profile-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-profile-cta-button:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(233, 69, 96, 0.5); color: #ffffff !important; }

/* ============================================================================
   RTL SUPPORT
   ============================================================================ */
.ez-zodiac-profile[dir="rtl"] .ez-profile-section h2 { flex-direction: row-reverse; }
.ez-zodiac-profile[dir="rtl"] .ez-profile-vitals,
.ez-zodiac-profile[dir="rtl"] .ez-core-motivation { border-left: none; border-right: 3px solid var(--ezhp-color-secondary); border-radius: 8px 0 0 8px; }
.ez-zodiac-profile[dir="rtl"] .ez-trait-card li,
.ez-zodiac-profile[dir="rtl"] .ez-ideal-fields li { padding-left: 0; padding-right: 2rem; }
.ez-zodiac-profile[dir="rtl"] .ez-trait-card li::before,
.ez-zodiac-profile[dir="rtl"] .ez-ideal-fields li::before { left: auto; right: 0; }
.ez-zodiac-profile[dir="rtl"] .ez-compat-positive,
.ez-zodiac-profile[dir="rtl"] .ez-compat-challenging { border-left: none; }
.ez-zodiac-profile[dir="rtl"] .ez-compat-positive { border-right: 3px solid #2d7d46; }
.ez-zodiac-profile[dir="rtl"] .ez-compat-challenging { border-right: 3px solid #a85d32; }
.ez-zodiac-profile[dir="rtl"] .ez-strengths { border-left: none; border-right: 3px solid #2d7d46; }
.ez-zodiac-profile[dir="rtl"] .ez-challenges { border-left: none; border-right: 3px solid #a85d32; }
.ez-zodiac-profile[dir="rtl"] .ez-famous-card { border-left: none; border-right: 3px solid var(--ezhp-color-secondary); }

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 768px) {
    .ez-zodiac-profile-block { --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-zodiac-profile-block .ezhp-form { flex-direction: column; align-items: stretch; }
    .ez-traits-grid, .ez-decan-cards, .ez-compat-cards, .ez-famous-cards, .ez-corresp-grid { grid-template-columns: 1fr; }
    .ez-profile-vitals { flex-direction: column; gap: 0.4rem; }
    .ez-zodiac-profile-section.ez-hero::before { display: none; }
}

@media (max-width: 480px) {
    .ez-zodiac-profile-block { --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-profile-cta { padding: 1.5rem; }
    .ez-profile-cta-headline { font-size: 1.25rem; }
}

/* ============================================================================
   PRINT
   ============================================================================ */
@media print {
    .ez-zodiac-profile-block { max-width: 100%; }
    .ez-zodiac-profile-block .ezhp-form { display: none; }
    .ez-profile-section { box-shadow: none; border: 1px solid #ddd; page-break-inside: avoid; }
    .ez-profile-cta { display: none; }
    .ez-zodiac-profile-section.ez-hero { background: #f5f5f5 !important; }
}