/* ==========================================================================
   INSPIRING WISHES — DESIGN UPGRADES
   Site-specific layer, loads after theme-variables/main/style.
   Deep violet (#6D28D9) + warm gold (#F59E0B) palette.
   ========================================================================== */

:root {
    --iw-gradient-hero: linear-gradient(135deg, rgba(30, 27, 75, 0.35) 0%, rgba(76, 29, 149, 0.55) 60%, rgba(109, 40, 217, 0.75) 100%);
    --iw-gradient-accent: linear-gradient(90deg, #6D28D9, #A78BFA);
    --iw-gold: #F59E0B;
    --iw-gold-hover: #D97706;
    --iw-shadow-card: 0 1px 3px rgba(30, 27, 75, 0.08), 0 4px 16px rgba(30, 27, 75, 0.06);
    --iw-shadow-card-hover: 0 4px 12px rgba(76, 29, 149, 0.12), 0 12px 32px rgba(76, 29, 149, 0.14);
    --iw-radius: 14px;
    --iw-font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

/* ==========================================================================
   TYPOGRAPHY — serif display voice for an editorial, inspirational feel
   ========================================================================== */

.hero-title,
.entry-title,
.category-section-title,
.archive-title,
.related-posts-title,
.page-title {
    font-family: var(--iw-font-display);
    letter-spacing: -0.015em;
}

/* ==========================================================================
   HEADER — sticky with subtle blur
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: 0 1px 12px rgba(30, 27, 75, 0.05);
}

.primary-menu a {
    position: relative;
    padding-bottom: 0.25rem;
}

.primary-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--iw-gradient-accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.primary-menu a:hover::after,
.primary-menu .current-menu-item a::after {
    transform: scaleX(1);
}

/* ==========================================================================
   HOMEPAGE HERO — violet/indigo gradient + gold CTA
   ========================================================================== */

.hero-image::after {
    background: var(--iw-gradient-hero);
}

.hero-category a {
    background: var(--iw-gold);
    color: #1E1B4B;
    border-radius: 999px;
    font-weight: 700;
}

.hero-category a:hover {
    background: var(--iw-gold-hover);
    color: #ffffff;
}

.hero-button {
    background: var(--iw-gold);
    color: #1E1B4B;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.hero-button:hover {
    background: var(--iw-gold-hover);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
}

/* ==========================================================================
   CATEGORY SECTIONS — gradient underline headers, pill view-all
   ========================================================================== */

.category-header {
    border-bottom: none;
    position: relative;
    padding-bottom: 1.25rem;
}

.category-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    background: var(--iw-gradient-accent);
    border-radius: 4px;
}

.category-view-all {
    border: 1.5px solid var(--color-primary);
    border-radius: 999px;
    padding: 0.45rem 1.15rem;
    transition: all 0.2s ease;
}

.category-view-all:hover {
    background: var(--color-primary);
    color: #ffffff;
}

/* ==========================================================================
   CARDS — softer radii, violet-tinted elevation, smoother motion
   ========================================================================== */

.category-hero-post,
.category-grid-item,
.category-grid-item-small,
.related-post-item,
.archive-post-item,
.post-card {
    border-radius: var(--iw-radius);
    box-shadow: var(--iw-shadow-card);
    border: 1px solid var(--color-border-light);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-hero-post:hover,
.category-grid-item:hover,
.category-grid-item-small:hover,
.related-post-item:hover,
.archive-post-item:hover,
.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--iw-shadow-card-hover);
}

.category-hero-thumbnail img,
.category-grid-thumbnail img,
.category-grid-thumbnail-small img {
    transition: transform 0.45s cubic-bezier(0.2, 0.6, 0.3, 1);
}

/* ==========================================================================
   SINGLE POST — readability polish
   ========================================================================== */

.article-header .entry-title {
    line-height: 1.25;
}

.entry-meta .categories a {
    display: inline-block;
    background: var(--color-border-light);
    color: var(--color-primary);
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.entry-meta .categories a:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.entry-featured-image img {
    border-radius: var(--iw-radius);
}

.entry-content a:not(.share-button):not(.wp-block-button__link):not(.post-page-numbers) {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: rgba(109, 40, 217, 0.35);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease, color 0.2s ease;
}

.entry-content a:not(.share-button):not(.wp-block-button__link):not(.post-page-numbers):hover {
    color: var(--color-primary-hover);
    text-decoration-color: currentColor;
}

/* Page-number buttons keep white text on the violet hover/current state */
.page-links .post-page-numbers:hover,
.page-links .post-page-numbers.current {
    color: #ffffff;
    text-decoration: none;
}

.entry-content blockquote {
    position: relative;
    margin: 2rem 0;
    padding: 1.5rem 2rem 1.5rem 2.5rem;
    background: var(--color-background-light);
    border-left: 4px solid var(--iw-gold);
    border-radius: 0 var(--iw-radius) var(--iw-radius) 0;
    font-family: var(--iw-font-display);
    font-style: italic;
    font-size: 1.1em;
    color: var(--color-heading);
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

.entry-content figure img {
    border-radius: var(--iw-radius);
}

.entry-content figcaption {
    font-size: 0.875rem;
    color: var(--color-text-light);
    text-align: center;
    margin-top: 0.6rem;
}

.entry-content h2 {
    position: relative;
    padding-bottom: 0.6rem;
}

.entry-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 3px;
    background: var(--iw-gradient-accent);
    border-radius: 3px;
}

/* Social share buttons - subtle modern pills */
.share-button {
    border-radius: 999px;
}

/* ==========================================================================
   SIDEBAR & WIDGETS
   ========================================================================== */

.widget {
    border-radius: var(--iw-radius);
}

.widget-styled-title {
    font-family: var(--iw-font-display);
}

.widget-newsletter button[type="submit"] {
    background: var(--iw-gold);
    color: #1E1B4B;
    font-weight: 700;
    border-radius: 999px;
}

.widget-newsletter button[type="submit"]:hover {
    background: var(--iw-gold-hover);
    color: #ffffff;
}

/* ==========================================================================
   ACCESSIBILITY & MOTION
   ========================================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--iw-gold);
    outline-offset: 2px;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   MOBILE REFINEMENTS
   ========================================================================== */

@media (max-width: 768px) {
    .hero-image {
        height: 420px;
    }

    .hero-text {
        padding: 1.5rem;
    }

    .hero-excerpt {
        display: none;
    }

    .category-hero-layout {
        grid-template-columns: 1fr;
    }
}
