/* Daily Horoscope Redesign Component Styles
 * Extracted from templates/components/daily_horoscope_redesign.html
 * Phase 2 CSS Consolidation - 467 lines moved to external CSS
 */

/* Import design tokens */
@import 'design-tokens.css';

.horoscope-hero {
    background-color: #f8f5ff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.personal-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.personal-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.personal-stat-label {
    font-weight: 600;
    color: #5d4777;
}

.dasha-stack {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #f0ebff;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}

.dasha-stack-incomplete {
    background: #f8f8f8;
    border: 1px dashed #ccc;
}

.dasha-stack-title {
    font-weight: 600;
    color: #5d4777;
}

.dasha-arrow {
    color: #9c7ad1;
    font-weight: bold;
}

.dasha-unavailable {
    color: #666;
    font-style: italic;
}

.planetary-environment {
    background-color: #fcfcff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #eeeeff;
}

/* Today at a Glance styling */
.today-glance {
    margin: 1.5rem 0;
}

.today-glance h3 {
    margin-bottom: 0.75rem;
    color: #5d4777;
}

.glance-list {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 0;
}

.glance-item {
    margin-bottom: 0.75rem;
    line-height: 1.5;
    position: relative;
    padding-left: 0.5rem;
}

.glance-item:last-child {
    margin-bottom: 0;
}

.glance-item.no-items {
    color: #666;
    font-style: italic;
}

.glance-item strong,
.glance-item b {
    color: #5d4777;
    font-weight: 600;
}

.time-block {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: #f8f5ff;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid #9c7ad1;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}

.time-block-icon {
    font-size: 1.25rem;
    color: #5d4777;
}

.time-block-time {
    font-weight: 600;
    white-space: nowrap;
}

.time-block-planet {
    font-weight: 600;
    color: #5d4777;
}

.time-block-description {
    flex: 1;
}

.day-part {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: #fcfcff;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #eeeeff;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}

.day-part-icon {
    font-size: 1.25rem;
}

.day-part-title {
    font-weight: 600;
    color: #5d4777;
}

.day-part-planet {
    color: #5d4777;
    font-weight: 600;
}

.insight-box {
    background-color: #fcfcff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #eeeeff;
}


.navigation-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.nav-button {
    background-color: #9c7ad1;
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.nav-button:hover {
    background-color: #7d5fb3;
}

/* Cosmic Message styling */
.cosmic-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    background-color: #f8f5ff;
    border-radius: 8px;
    border-left: 4px solid #9c7ad1;
    clear: both;
    width: 100%;
    box-sizing: border-box;
}

.cosmic-message-special {
    background-color: #f0f5ff;
    border-left-color: #7c93d1;
}

.cosmic-message-error {
    background-color: #f8f5ff;
    border-left-color: #9c7ad1;
}

.cosmic-message-icon {
    font-size: 2rem;
    color: #5d4777;
}

.cosmic-message-special .cosmic-message-icon {
    color: #5d6277;
}

.cosmic-message-content {
    flex: 1;
}

.cosmic-message-content p {
    margin: 0;
    line-height: 1.5;
    color: #333;
}

/* Section cards styling */
.insights-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.insights-container h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: #5d4777;
    font-size: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(156, 122, 209, 0.3);
}

.insights-container > div,
.insights-container > p,
.insights-container > section {
    background-color: #fcfcff;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #eeeeff;
}

.ai-interpretation h3 {
    background-color: #f8f5ff;
    margin: 1.5rem -1.5rem 1rem -1.5rem;
    padding: 0.75rem 1.5rem;
    color: #5d4777;
    font-size: 1.25rem;
    border-top: 1px solid rgba(156, 122, 209, 0.2);
    clear: both;
    position: relative;
    z-index: 1;
}

.ai-interpretation h3:first-child {
    margin-top: -1.5rem;
    border-top: none;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}

.ai-interpretation p {
    margin-bottom: 1rem;
    line-height: 1.6;
    clear: both;
}

.ai-interpretation .section-heading {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(156, 122, 209, 0.2);
}

.ai-interpretation .section-heading:first-child {
    margin-top: 0;
}

.ai-interpretation ul, 
.ai-interpretation ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.ai-interpretation li {
    margin-bottom: 0.5rem;
}


/* Timing explanation styles */
.timing-explanation {
    margin-bottom: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

.timing-section {
    margin-bottom: 2rem;
}

.timing-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #5d4777;
}

.pran-period {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #5d4777;
}

.pran-time {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.pran-planet {
    font-weight: 500;
    color: #5d4777;
    font-size: 1rem;
}

.pran-quality span {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.quality-excellent {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.quality-good {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.quality-challenging {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.quality-neutral {
    background-color: #e2e3e5;
    color: #6c757d;
    border: 1px solid #d6d8db;
}

/* Tomorrow Teaser styles */
.tomorrow-teaser {
    text-align: center !important;
}

.tomorrow-teaser p {
    text-align: center !important;
}

/* CTA Calculator styles */
.cta-calculator {
    margin-top: 2rem;
    text-align: center;
}

.cta-calculator .btn-primary:hover {
    background-color: #3a0066 !important;
    color: white !important;
    border-color: #3a0066 !important;
}

/* ============================================
   P0/P1 CTA Components - Conversion Optimization
   ============================================ */

/* Early Teaser CTA (after Dasha Stack) */
.early-teaser-cta {
    background: linear-gradient(135deg, rgba(156, 122, 209, 0.12) 0%, rgba(156, 122, 209, 0.05) 100%);
    border: 1px solid rgba(156, 122, 209, 0.25);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.early-teaser__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(156, 122, 209, 0.15);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8125rem;
    color: #9c7ad1;
    margin-bottom: 1rem;
    font-weight: 500;
}

.early-teaser__badge-icon {
    font-size: 1rem;
}

.early-teaser__headline {
    font-size: 1.125rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.early-teaser__subtext {
    color: #666;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.early-teaser__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.early-teaser__feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #444;
}

.early-teaser__check {
    width: 1rem;
    height: 1rem;
    color: #22c55e;
    flex-shrink: 0;
}

.early-teaser__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #9c7ad1 0%, #7d5fb3 100%);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.early-teaser__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(156, 122, 209, 0.3);
    color: white;
}

.early-teaser__arrow {
    width: 1rem;
    height: 1rem;
}

.early-teaser__guarantee {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    font-size: 0.75rem;
    color: #666;
}

.early-teaser__guarantee-icon {
    width: 0.875rem;
    height: 0.875rem;
    color: #22c55e;
}

/* Premium Section (Redesigned Bottom CTA) */
.premium-section {
    background: linear-gradient(180deg, #f8f5ff 0%, #f3eeff 100%);
    border: 1px solid rgba(156, 122, 209, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.premium-section__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.premium-section__headline {
    font-size: 1.5rem;
    font-weight: 700;
    color: #5d4777;
    margin-bottom: 0.5rem;
}

.premium-section__subhead {
    font-size: 1rem;
    color: #666;
    margin-bottom: 1.75rem;
}

.premium-section__comparison {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.75rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
}

.comparison-item {
    text-align: center;
}

.comparison-item__label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.comparison-item__value {
    font-size: 1.75rem;
    font-weight: 700;
}

.comparison-item__value--free {
    color: #999;
}

.comparison-item__value--premium {
    color: #9c7ad1;
}

.comparison-arrow {
    color: #ccc;
    font-size: 1.5rem;
}

.premium-section__features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.feature-card {
    background: rgba(156, 122, 209, 0.08);
    border: 1px solid rgba(156, 122, 209, 0.12);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.feature-card__icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.feature-card__title {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.premium-section__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: linear-gradient(135deg, #9c7ad1 0%, #7d5fb3 100%);
    color: white;
    padding: 1.125rem 3rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 400px;
}

.premium-section__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(156, 122, 209, 0.35);
    color: white;
}

.premium-section__price-note {
    font-size: 0.8125rem;
    color: #666;
    margin-bottom: 1.25rem;
}

.premium-section__trust {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #555;
}

.trust-item__check {
    width: 1rem;
    height: 1rem;
    color: #22c55e;
}

/* Inline CTA (Mid-Content) */
.inline-cta {
    background: rgba(156, 122, 209, 0.06);
    border-left: 3px solid #9c7ad1;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.inline-cta__headline {
    font-size: 1rem;
    font-weight: 600;
    color: #5d4777;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.inline-cta__icon {
    font-size: 1.25rem;
}

.inline-cta__text {
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

.inline-cta__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: #9c7ad1;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s;
}

.inline-cta__link:hover {
    gap: 0.625rem;
    color: #7d5fb3;
}

.inline-cta__arrow {
    width: 1rem;
    height: 1rem;
}

/* Improved Glance Section */
.glance-section {
    background: #f8f5ff;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.glance-section__title {
    font-size: 1rem;
    font-weight: 600;
    color: #5d4777;
    margin-bottom: 1rem;
}

.glance-items {
    display: grid;
    gap: 0.75rem;
}

.glance-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.glance-item__icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    width: 1.75rem;
    text-align: center;
}

.glance-item__content {
    flex: 1;
}

.glance-item__label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.125rem;
}

.glance-item__text {
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
}

.glance-item--no-items .glance-item__text {
    color: #888;
    font-style: italic;
}

/* ============================================
   Additional Alignment Fixes
   ============================================ */

/* Consistent button pair styling */
.button-group,
.flex.justify-center.gap-4 {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
}

/* CTA Calculator section alignment */
.cta-calculator {
    text-align: center;
    padding: 24px;
    margin: 24px 0;
    border-top: 1px solid rgba(156, 122, 209, 0.15);
}

.cta-calculator h3 {
    color: #5d4777;
    margin-bottom: 8px;
}

.cta-calculator p {
    color: #666;
    margin-bottom: 16px;
}

.cta-calculator .btn-primary {
    display: inline-flex;
    margin: 0 auto;
}

/* Top CTA banner alignment fixes */
.birth-chart-cta-top .cta-banner {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.birth-chart-cta-top .cta-banner-image {
    width: 100%;
    height: auto;
    display: block;
}

.birth-chart-cta-top .cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.85) 100%);
}

.birth-chart-cta-top .cta-overlay h3 {
    color: #e2b96b;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.birth-chart-cta-top .cta-overlay p {
    color: #d4d4d4;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    max-width: 400px;
}

.birth-chart-cta-top .cta-download-btn {
    background: linear-gradient(135deg, #9c7ad1 0%, #7d5fb3 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.birth-chart-cta-top .cta-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(156, 122, 209, 0.3);
}

/* Notice/feedback text alignment */
.mt-6.text-sm.w-full.text-center {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    margin: 1.5rem 0;
}

.inline-link {
    color: #9c7ad1;
    text-decoration: underline;
    text-decoration-color: rgba(156, 122, 209, 0.3);
}

.inline-link:hover {
    color: #7d5fb3;
    text-decoration-color: #7d5fb3;
}

/* Mobile responsive styles */
@media (max-width: 640px) {
    /* P0/P1 CTA Mobile Adjustments */
    .early-teaser__features {
        grid-template-columns: 1fr;
    }

    .premium-section__features {
        grid-template-columns: 1fr 1fr;
    }

    .premium-section__comparison {
        flex-direction: column;
        gap: 1rem;
    }

    .comparison-arrow {
        transform: rotate(90deg);
    }

    .premium-section__trust {
        flex-direction: column;
        gap: 0.75rem;
    }

    .early-teaser__cta,
    .premium-section__cta {
        width: 100%;
        justify-content: center;
    }

    .time-block, .day-part {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .time-block-time {
        width: 100%;
    }
    
    .personal-stats {
        flex-direction: column;
    }
    
    .dasha-stack {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Mobile-specific glance styles */
    .glance-list {
        padding-left: 1.25rem;
    }
    
    .glance-item {
        margin-bottom: 1rem;
    }
    
    .cosmic-message {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .cosmic-message-icon {
        margin-bottom: 0.5rem;
    }
    
    /* Fix mobile heading spacing */
    .ai-interpretation h3 {
        margin: 1rem -1rem 0.75rem -1rem;
        padding: 0.5rem 1rem;
    }
    
    .ai-interpretation h3:first-child {
        margin-top: -1rem;
    }
    
    /* Better mobile section spacing */
    .horoscope-hero {
        margin-bottom: 1.5rem;
    }
    
    .planetary-environment {
        margin-bottom: 1.5rem;
    }
    
    .insights-container > div,
    .insights-container > p,
    .insights-container > section {
        padding: 1rem;
    }
    
    /* Mobile-optimized section headings */
    .ai-interpretation .section-heading {
        font-size: 1.1rem;
        margin-top: 1.25rem;
        margin-bottom: 0.5rem;
        padding-bottom: 0.25rem;
    }
}