/* ========================================
   ZODIAC DETAIL PAGE - MAGAZINE STYLE
   High-readability, accessible, performance-optimized
   
   NOTE: This file is loaded globally in layouts/app.blade.php but is primarily 
   used by alternative zodiac templates (show-new.blade.php, show-simple.blade.php). 
   The primary production template show.blade.php uses zodiac-pages.css instead.
   
   For new zodiac page implementations, use zodiac-pages.css which integrates 
   with the Velora design system.
   
   This magazine-style approach is used by show-new.blade.php and show-simple.blade.php. 
   If these templates are no longer in use, this file can be removed from the 
   global layout CSS loading in layouts/app.blade.php (line 1521).
   ======================================== */

.zodiac-detail-page {
    --section-spacing: 3rem;
    --card-radius: 1rem;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --card-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    --gradient-surface: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

/* ========================================
   HERO SECTION
   ======================================== */

.zodiac-hero-section {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.zodiac-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
}

.zodiac-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.zodiac-hero-content {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.zodiac-symbol-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zodiac-symbol-large {
    font-size: 6rem;
    opacity: 0.9;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.zodiac-symbol-large i {
    color: white !important;
}

.zodiac-hero-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.zodiac-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.meta-chip {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.zodiac-tagline {
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
    opacity: 0.95;
    max-width: 600px;
}

.zodiac-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--card-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ========================================
   TRAITS SECTION
   ======================================== */

.zodiac-traits-section {
    padding: var(--section-spacing) 0;
    background: var(--bg-primary);
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: var(--font-semibold);
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.traits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.trait-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 1.25rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-subtle);
}

.trait-card-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.strengths-card .trait-card-title {
    color: #10b981;
}

.weaknesses-card .trait-card-title {
    color: #ef4444;
}

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

.trait-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    padding-left: 1.5rem;
}

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

.trait-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-secondary);
    font-weight: bold;
}

/* Enhanced trait items as compact chips */
.trait-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.trait-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 2rem;
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.trait-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.trait-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.strengths .trait-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.weaknesses .trait-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3);
}

.trait-text {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.875rem;
}

/* Animated background for trait items */
.trait-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.trait-item:hover::before {
    left: 100%;
}

/* Specific icon colors for different traits */
.strengths .trait-icon i.fa-shield-halved { color: #fbbf24; }
.strengths .trait-icon i.fa-crown { color: #f59e0b; }
.strengths .trait-icon i.fa-target { color: #3b82f6; }
.strengths .trait-icon i.fa-sun { color: #f59e0b; }
.strengths .trait-icon i.fa-heart { color: #ec4899; }
.strengths .trait-icon i.fa-bolt { color: #8b5cf6; }
.strengths .trait-icon i.fa-flag { color: #ef4444; }
.strengths .trait-icon i.fa-sparkles { color: #06b6d4; }
.strengths .trait-icon i.fa-mountain { color: #6b7280; }

.weaknesses .trait-icon i.fa-clock { color: #fbbf24; }
.weaknesses .trait-icon i.fa-lightning-bolt { color: #8b5cf6; }
.weaknesses .trait-icon i.fa-fire { color: #ef4444; }
.weaknesses .trait-icon i.fa-lock { color: #6b7280; }
.weaknesses .trait-icon i.fa-comment-slash { color: #ef4444; }
.weaknesses .trait-icon i.fa-brick-wall { color: #6b7280; }
.weaknesses .trait-icon i.fa-wind { color: #06b6d4; }
.weaknesses .trait-icon i.fa-magnifying-glass { color: #3b82f6; }

/* ========================================
   DAILY HOROSCOPE TABS
   ======================================== */

.zodiac-daily-section {
    padding: var(--section-spacing) 0;
    background: var(--bg-secondary);
}

.daily-horoscope-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-subtle);
    max-width: 1000px;
    margin: 0 auto;
}

.horoscope-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: 0.75rem;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    font-size: 0.9rem;
}

.tab-button i {
    color: var(--text-secondary);
}

.tab-button.active i,
.tab-button:hover i {
    color: var(--primary-color);
}

.tab-button:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.tab-button.active {
    color: var(--primary-color);
    background: var(--bg-secondary);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.tab-panel {
    display: none;
    padding: 1rem 0;
}

.tab-panel.active {
    display: block;
}

.horoscope-content p {
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.horoscope-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.overall-rating {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* ========================================
   COMPATIBILITY SECTION
   ======================================== */

.zodiac-compatibility-section {
    padding: var(--section-spacing) 0;
    background: var(--bg-primary);
}

.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.compatibility-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
    text-align: center;
}

.compatibility-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-lg);
}

.compatibility-symbol {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.compatibility-card h3 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.compatibility-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: var(--text-sm);
}

.compatibility-stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    color: #fbbf24;
}

.least-compatible {
    text-align: center;
}

.least-compatible h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.least-compatible-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.compatibility-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 2rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    border: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
}

.compatibility-chip:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* ========================================
   INSIGHTS SECTION
   ======================================== */

.zodiac-insights-section {
    padding: var(--section-spacing) 0;
    background: var(--bg-secondary);
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.insight-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-subtle);
}

.insight-title {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.insight-card p {
    line-height: var(--leading-relaxed);
    color: var(--text-secondary);
}

/* ========================================
   NEWSLETTER CTA SECTION
   ======================================== */

.newsletter-cta-section {
    padding: var(--section-spacing) 0;
    background: var(--bg-primary);
}

.newsletter-cta-card {
    background: var(--gradient-surface);
    border-radius: var(--card-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--card-shadow-lg);
}

.newsletter-cta-card i {
    color: white !important;
}

.newsletter-title {
    font-size: var(--text-3xl);
    font-weight: var(--font-semibold);
    margin-bottom: 2rem;
    line-height: var(--leading-tight);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: var(--text-base);
    backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.newsletter-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-color);
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow);
}

.newsletter-privacy {
    font-size: var(--text-sm);
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .zodiac-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .zodiac-symbol-large {
        font-size: 6rem;
    }
    
    .zodiac-cta-buttons {
        justify-content: center;
    }
    
    .horoscope-tabs {
        flex-direction: column;
    }
    
    .tab-button {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input {
        width: 100%;
    }
    
    .trait-list {
        gap: 0.5rem;
    }
    
    .trait-item {
        padding: 0.375rem 0.625rem;
        font-size: 0.8125rem;
    }
    
    .trait-icon {
        width: 1rem;
        height: 1rem;
        font-size: 0.625rem;
    }
}

@media (max-width: 480px) {
    .zodiac-hero-section {
        padding: 2rem 0 3rem;
    }
    
    .zodiac-hero-title {
        font-size: 2rem;
    }
    
    .zodiac-symbol-large {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: var(--text-3xl);
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus styles */
.tab-button:focus-visible,
.btn:focus-visible,
.compatibility-card:focus-visible,
.compatibility-chip:focus-visible,
.newsletter-input:focus-visible,
.newsletter-button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .zodiac-detail-page * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .zodiac-detail-page {
        --text-primary: #000000;
        --text-secondary: #333333;
        --bg-primary: #ffffff;
        --bg-secondary: #f5f5f5;
        --border-subtle: #000000;
    }
    
    [data-theme="dark"] .zodiac-detail-page {
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --bg-primary: #000000;
        --bg-secondary: #1a1a1a;
        --border-subtle: #ffffff;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Contain layout for better performance */
.zodiac-detail-page {
    contain: layout style;
}

.trait-card,
.compatibility-card,
.insight-card {
    contain: layout;
}

/* Optimize images */
.zodiac-symbol-large img {
    width: 100%;
    height: auto;
    max-width: 200px;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .zodiac-hero-section {
        background: white !important;
        color: black !important;
    }
    
    .zodiac-cta-buttons,
    .newsletter-cta-section {
        display: none !important;
    }
    
    .zodiac-detail-page {
        --section-spacing: 2rem;
    }
}
