/* 
 * Horoscope Blog – Premium Redesign
 * High-specificity selectors to override parent theme
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ─── Base Container — high specificity to override parent theme ─── */
body .horoscope-container,
html body .horoscope-container {
    background: linear-gradient(160deg, #0a1628 0%, #0d1f3c 35%, #122140 100%) !important;
    min-height: 100vh;
    font-family: 'Inter', sans-serif !important;
    color: #e2e8f0 !important;
    padding-bottom: 80px;
}

/* ─── Hero Banner ─── */
.horoscope-container .hero-banner {
    text-align: center;
    padding: 80px 20px 50px;
    position: relative;
    overflow: hidden;
}

.horoscope-container .hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(12, 184, 182, 0.2) 0%, rgba(26, 122, 191, 0.15) 40%, transparent 70%);
    pointer-events: none;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.horoscope-container .hero-badge {
    display: inline-block;
    background: rgba(12, 184, 182, 0.15) !important;
    border: 1px solid rgba(12, 184, 182, 0.35) !important;
    color: #5eead4 !important;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.horoscope-container .hero-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    letter-spacing: -1px;
    background: none !important;
    -webkit-text-fill-color: unset !important;
}

.horoscope-container .hero-desc {
    font-size: 1.15rem;
    color: #94a3b8 !important;
    font-weight: 400;
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
}

/* ─── Filter Bar ─── */
.horoscope-container .filter-bar {
    background: rgba(12, 184, 182, 0.04) !important;
    border: 1px solid rgba(12, 184, 182, 0.15) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 50px;
}

.horoscope-container .filter-form {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.horoscope-container .filter-group {
    flex: 1;
    min-width: 160px;
}

.horoscope-container .filter-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8 !important;
    margin-bottom: 8px;
}

.horoscope-container .filter-group label i {
    margin-right: 5px;
    color: #0cb8b6 !important;
}

.horoscope-container .filter-group input,
.horoscope-container .filter-group select {
    width: 100%;
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    color: #e2e8f0 !important;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif !important;
    transition: all 0.25s ease;
    outline: none;
    height: auto !important;
}

.horoscope-container .filter-group input::placeholder {
    color: #64748b !important;
}

.horoscope-container .filter-group input:focus,
.horoscope-container .filter-group select:focus {
    border-color: #0cb8b6 !important;
    box-shadow: 0 0 0 3px rgba(12, 184, 182, 0.2) !important;
}

.horoscope-container .filter-group select option {
    background: #0d1f3c;
    color: #e2e8f0;
}

/* Date input icon color fix for webkit */
.horoscope-container .filter-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.7);
}

.horoscope-container .filter-submit {
    padding: 12px 28px !important;
    background: linear-gradient(135deg, #0cb8b6, #1a7abf) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: 'Inter', sans-serif !important;
    height: auto !important;
    line-height: 1.5;
    flex-shrink: 0;
    align-self: flex-end;
}

.horoscope-container .filter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(12, 184, 182, 0.3);
}

.horoscope-container .filter-submit i {
    margin-right: 6px;
}

/* ─── Horoscope Post Card ─── */
.horoscope-container .horoscope-post {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 20px;
    padding: 36px;
    margin-bottom: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.horoscope-container .horoscope-post::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--sign-color), var(--sign-color-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.horoscope-container .horoscope-post:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.5);
}

.horoscope-container .horoscope-post:hover::before {
    opacity: 1;
}

/* ─── Post Header ─── */
.horoscope-container .post-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.horoscope-container .sign-symbol {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #fff !important;
    flex-shrink: 0;
    margin-right: 22px;
    box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.3);
}

.horoscope-container .post-info {
    flex: 1;
}

.horoscope-container .post-title {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.2;
    background: none !important;
    -webkit-text-fill-color: unset !important;
}

.horoscope-container .title-thin {
    font-weight: 400 !important;
    color: #94a3b8 !important;
    font-size: 1.4rem !important;
}

.horoscope-container .post-meta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.horoscope-container .meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 50px;
    font-size: 0.82rem;
    color: #94a3b8 !important;
    font-weight: 500;
}

.horoscope-container .meta-chip i {
    color: var(--sign-color) !important;
    font-size: 0.8rem;
}

/* ─── Post Body – Insight Cards ─── */
.horoscope-container .post-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.horoscope-container .insight-card {
    display: flex;
    gap: 16px;
    padding: 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.3s ease;
}

.horoscope-container .insight-card:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    transform: translateX(4px);
}

.horoscope-container .insight-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

/* Category-specific icon colors */
.horoscope-container .insight-card.general .insight-icon {
    background: rgba(251, 191, 36, 0.15) !important;
    color: #fbbf24 !important;
}
.horoscope-container .insight-card.love .insight-icon {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #ef4444 !important;
}
.horoscope-container .insight-card.career .insight-icon {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #3b82f6 !important;
}
.horoscope-container .insight-card.health .insight-icon {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #22c55e !important;
}

.horoscope-container .insight-content h4 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
    margin: 0 0 8px 0 !important;
}

.horoscope-container .insight-content p {
    font-size: 0.95rem !important;
    line-height: 1.75 !important;
    color: #94a3b8 !important;
    margin: 0 !important;
}

/* ─── Empty State ─── */
.horoscope-container .empty-state {
    text-align: center;
    padding: 80px 20px;
}

.horoscope-container .empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.horoscope-container .empty-state h3 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-size: 1.6rem !important;
    color: #f1f5f9 !important;
    margin-bottom: 10px;
}

.horoscope-container .empty-state p {
    color: #94a3b8 !important;
    max-width: 400px;
    margin: 0 auto 25px;
}

.horoscope-container .clear-btn {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(12, 184, 182, 0.15) !important;
    border: 1px solid rgba(12, 184, 182, 0.3) !important;
    color: #5eead4 !important;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.horoscope-container .clear-btn:hover {
    background: rgba(12, 184, 182, 0.25) !important;
    color: #99f6e4 !important;
}

/* ─── Pagination ─── */
.horoscope-container .pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.horoscope-container .pagination-wrapper .pagination {
    gap: 6px;
}

.horoscope-container .pagination-wrapper .page-link {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #5eead4 !important;
    border-radius: 8px !important;
    padding: 8px 14px;
    transition: all 0.2s ease;
}

.horoscope-container .pagination-wrapper .page-link:hover {
    background: rgba(12, 184, 182, 0.2) !important;
    border-color: rgba(12, 184, 182, 0.4) !important;
    color: #fff !important;
}

.horoscope-container .pagination-wrapper .page-item.active .page-link {
    background: linear-gradient(135deg, #0cb8b6, #1a7abf) !important;
    border-color: transparent !important;
    color: #fff !important;
}

/* ─── Mobile Responsiveness ─── */
@media (max-width: 767px) {
    .horoscope-container .hero-title {
        font-size: 2.2rem !important;
    }
    .horoscope-container .hero-banner {
        padding: 60px 15px 30px;
    }
    .horoscope-container .filter-form {
        flex-direction: column !important;
    }
    .horoscope-container .filter-group {
        min-width: 100%;
    }
    .horoscope-container .horoscope-post {
        padding: 24px 18px;
    }
    .horoscope-container .post-header {
        flex-direction: column;
        text-align: center;
    }
    .horoscope-container .sign-symbol {
        margin-right: 0;
        margin-bottom: 16px;
    }
    .horoscope-container .post-meta-row {
        justify-content: center;
    }
    .horoscope-container .title-thin {
        display: block;
        font-size: 1rem !important;
    }
    .horoscope-container .post-body {
        grid-template-columns: 1fr;
    }
}
