/**
 * Zen Author Box - Modern Minimal Design
 * Clean, elegant author box with soft shadows and subtle animations
 *
 * @package Zen Coloring Generator
 * @since 1.5.0
 */

/* ═══════════════════════════════════════════════════════════════
   MAIN CONTAINER - Modern Card
   ═══════════════════════════════════════════════════════════════ */

.zen-author-frame {
    position: relative;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
    background: #fff8f0 !important;
}

/* Left accent bar */
.zen-author-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #ffa733 0%, #ff6b35 100%);
    z-index: 10;
}

@keyframes zen-gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ═══════════════════════════════════════════════════════════════
   HEADER RIBBON - Modern Style
   ═══════════════════════════════════════════════════════════════ */

.zen-author-header {
    background: rgba(255, 167, 51, 0.08) !important;
    border-bottom: none !important;
    border-radius: 0 !important;
}

.zen-author-header span {
    color: #e08a20 !important;
}

/* ═══════════════════════════════════════════════════════════════
   AVATAR - Circular with Ring (Border Only)
   ═══════════════════════════════════════════════════════════════ */

.zen-avatar-ring {
    position: relative;
    display: inline-block;
}

/* Gradient ring - outer circle */
.zen-avatar-ring::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffa733, #ff6b35, #ffa733);
    background-size: 200% 200%;
    animation: zen-ring-rotate 4s linear infinite;
    z-index: 0;
}

/* White mask - creates the hollow ring effect */
.zen-avatar-ring::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: #ffffff;
    z-index: 0;
}

@keyframes zen-ring-rotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.zen-avatar-ring img {
    position: relative;
    z-index: 1;
    border-radius: 50% !important;
    border: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   VERIFIED BADGE - Modern Checkmark
   ═══════════════════════════════════════════════════════════════ */

.zen-verified {
    box-shadow: 0 2px 8px rgba(255, 167, 51, 0.4) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zen-verified:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 167, 51, 0.5) !important;
}

/* ═══════════════════════════════════════════════════════════════
   AUTHOR NAME LINK
   ═══════════════════════════════════════════════════════════════ */

.zen-author-frame a[href*="author"] {
    transition: color 0.2s ease !important;
}

.zen-author-frame a[href*="author"]:hover {
    color: #ffa733 !important;
}

/* ═══════════════════════════════════════════════════════════════
   FEATURE TAGS - Pill Style
   ═══════════════════════════════════════════════════════════════ */

.zen-feature-tag {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    color: #6c757d !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    border: 1px solid #f0e6dc !important;
}

.zen-feature-tag:hover {
    background: #fff3e6 !important;
    border-color: #ffa733 !important;
    color: #ff8c00 !important;
}

/* ═══════════════════════════════════════════════════════════════
   STATS BAR - Modern Cards
   ═══════════════════════════════════════════════════════════════ */

.zen-stats-container {
    background: rgba(255, 255, 255, 0.5) !important;
}

.zen-stat-item {
    transition: transform 0.2s ease !important;
}

.zen-stat-item:hover {
    transform: translateY(-2px);
}

.zen-stat-num {
    background: linear-gradient(135deg, #ffa733 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800 !important;
}

.zen-stat-label {
    color: #9ca3af !important;
    font-weight: 500 !important;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER CTA - Sleek Dark
   ═══════════════════════════════════════════════════════════════ */

.zen-author-footer {
    background: #3d3229 !important;
    border-top: none !important;
    border-radius: 0 0 20px 20px !important;
}

.zen-cta-link {
    color: #fff !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 500 !important;
}

.zen-cta-link:hover {
    color: #ffa733 !important;
}

.zen-cta-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.zen-cta-link:hover::after {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════
   SOCIAL LINKS - Clean Icons
   ═══════════════════════════════════════════════════════════════ */

.zen-social {
    width: 34px !important;
    height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: none !important;
}

.zen-social:hover {
    background: #ffa733 !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
}

.zen-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 680px) {
    .zen-author-frame {
        border-radius: 16px !important;
    }

    .zen-author-footer {
        border-radius: 0 0 16px 16px !important;
    }

    .zen-feature-tag {
        padding: 4px 10px !important;
        font-size: 0.75rem !important;
    }

    .zen-social {
        width: 32px !important;
        height: 32px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE SUPPORT (Optional)
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
    .zen-author-frame {
        background: #1f2937 !important;
        box-shadow:
            0 4px 6px -1px rgba(0, 0, 0, 0.3),
            0 2px 4px -2px rgba(0, 0, 0, 0.2) !important;
    }

    .zen-feature-tag {
        background: #374151 !important;
        border-color: #4b5563 !important;
        color: #d1d5db !important;
    }

    .zen-stats-container {
        background: linear-gradient(180deg, #374151 0%, #1f2937 100%) !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SOCIAL LINKS - Light Background Version
   ═══════════════════════════════════════════════════════════════ */

.zen-social-light {
    width: 40px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.zen-social-light:hover {
    background: #ffa733 !important;
    color: #fff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 12px rgba(255, 167, 51, 0.4) !important;
}

.zen-social-light svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ═══════════════════════════════════════════════════════════════
   POST CARD STYLES
   ═══════════════════════════════════════════════════════════════ */

.zen-post-card {
    transition: all 0.3s ease !important;
}

.zen-post-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12) !important;
}

.zen-post-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease !important;
}

.zen-post-card:hover img {
    transform: scale(1.03);
}

.zen-cat-pill {
    transition: all 0.2s ease !important;
}

.zen-cat-pill:hover {
    background: #ffa733 !important;
    color: #fff !important;
}

.zen-cat-pill a {
    color: inherit !important;
    text-decoration: none !important;
}

.zen-read-more {
    transition: all 0.2s ease !important;
}

.zen-read-more:hover {
    color: #ff8c00 !important;
}

.zen-read-more span {
    transition: transform 0.2s ease !important;
    display: inline-block;
}

.zen-read-more:hover span {
    transform: translateX(4px);
}

/* ═══════════════════════════════════════════════════════════════
   AUTHOR PAGE - COMPACT HEADER
   ═══════════════════════════════════════════════════════════════ */

.zen-compact-avatar {
    position: relative;
}

.zen-compact-avatar::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffa733, #ff6b35);
    z-index: 0;
}

.zen-compact-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: #fff;
    z-index: 0;
}

.zen-compact-avatar img {
    position: relative;
    z-index: 1;
}

/* Mini social icons */
.zen-social-mini {
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #9ca3af !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    border: 1px solid #e5e7eb !important;
}

.zen-social-mini:hover {
    background: #ffa733 !important;
    color: #fff !important;
    border-color: #ffa733 !important;
    transform: translateY(-2px) !important;
}

.zen-social-mini svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Posts listing heading */
.author .gb-headline-zen-pc-title a {
    color: #1f2937 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}

.author .gb-headline-zen-pc-title a:hover {
    color: #ffa733 !important;
}

/* ═══════════════════════════════════════════════════════════════
   AUTHOR PAGE HEADER - Modern Design
   ═══════════════════════════════════════════════════════════════ */

.zen-author-header-page {
    background: #fff8f0;
    padding: 40px 24px;
    position: relative;
    overflow: hidden;
}

.zen-author-header-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #ffa733, #ff6b35);
}

.zen-author-header-page::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 167, 51, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.zen-author-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.zen-author-header-avatar {
    flex-shrink: 0;
    position: relative;
}

.zen-author-header-avatar::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffa733, #ff6b35);
}

.zen-author-header-avatar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: #fff8f0;
}

.zen-author-header-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    display: block;
}

.zen-author-header-info {
    flex: 1;
    min-width: 0;
}

.zen-author-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.zen-author-header-page h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.zen-verified-badge {
    width: 22px;
    height: 22px;
    background: #ffa733;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.zen-author-tag {
    padding: 4px 12px;
    background: rgba(255, 167, 51, 0.15);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #e08a20;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.zen-author-header-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 12px;
    max-width: 550px;
}

.zen-author-header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.zen-meta-item {
    font-size: 0.85rem;
    color: #9ca3af;
}

.zen-meta-item strong {
    color: #ffa733;
    font-weight: 700;
}

.zen-meta-divider {
    color: #e5e7eb;
    font-size: 0.7rem;
}

.zen-author-header-social {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.zen-author-header-social a {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #f0e6dc;
}

.zen-author-header-social a:hover {
    background: #ffa733;
    color: #fff;
    border-color: #ffa733;
    transform: translateY(-2px);
}

.zen-author-header-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .zen-author-header-inner {
        flex-direction: column;
        text-align: center;
    }

    .zen-author-header-top {
        justify-content: center;
    }

    .zen-author-header-bio {
        max-width: 100%;
    }

    .zen-author-header-meta {
        justify-content: center;
    }

    .zen-author-header-social {
        justify-content: center;
    }
}

/* Author page social icons */
.zen-author-social {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #f0e6dc;
}

.zen-author-social:hover {
    background: #ffa733;
    color: #fff;
    border-color: #ffa733;
    transform: translateY(-2px);
}

.zen-author-social svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ═══════════════════════════════════════════════════════════════
   POST HERO - Coloring Pages
   ═══════════════════════════════════════════════════════════════ */

.zen-post-hero {
    background: #fff8f0;
    padding: 32px 40px 36px;
    position: relative;
    overflow: hidden;
}

.zen-post-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #ffa733, #ff6b35);
}

.zen-post-hero::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 167, 51, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.zen-post-hero-inner {
    max-width: var(--gb-container-width, 1200px);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.zen-post-hero .breadcrumbs {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 16px;
}

.zen-post-hero .breadcrumbs a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.zen-post-hero .breadcrumbs a:hover {
    color: #ffa733;
}

.zen-post-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.zen-post-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: #6b7280;
}

.zen-post-hero-meta a {
    color: #ffa733;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.zen-post-hero-meta a:hover {
    color: #ff8c00;
}

.zen-post-hero-meta .divider {
    color: #d1d5db;
    font-size: 0.6rem;
}

.zen-post-hero-meta .date {
    color: #9ca3af;
}

@media (max-width: 768px) {
    .zen-post-hero {
        padding: 24px 20px 28px;
    }

    .zen-post-hero-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .zen-post-hero-meta .divider {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE HERO
   ═══════════════════════════════════════════════════════════════ */

.zen-hero {
    background-color: #fff8f0;
    padding: 48px 24px 56px;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.zen-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.zen-hero-content {
    text-align: left;
}

.zen-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #ffffff;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.zen-hero-badge .dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
}

.zen-hero h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    color: #1f2937;
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.zen-hero h1 .highlight {
    background: linear-gradient(135deg, #ffa733, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.zen-hero-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #6b7280;
    margin: 0 0 24px;
    max-width: 480px;
}

.zen-hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.zen-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 28px;
    background: #ffa733;
    border-radius: 60px;
    color: #ffffff !important;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.zen-btn-primary:hover {
    background: #ff9519;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 167, 51, 0.35);
    color: #ffffff !important;
}

.zen-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 28px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 60px;
    color: #1f2937 !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.zen-btn-secondary:hover {
    border-color: #ffa733;
    color: #ffa733 !important;
}

.zen-hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.zen-hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #9ca3af;
}

.zen-hero-trust .check {
    color: #ffa733;
    font-weight: 700;
}

.zen-hero-visual {
    display: flex;
    gap: 12px;
}

.zen-hero-card {
    width: 140px;
    height: 180px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.zen-hero-card:nth-child(1) {
    transform: rotate(-6deg);
}

.zen-hero-card:nth-child(2) {
    transform: rotate(4deg) translateY(-20px);
}

.zen-hero-card:hover {
    transform: rotate(0deg) scale(1.05);
}

@media (max-width: 768px) {
    .zen-hero {
        padding: 40px 20px 48px;
    }

    .zen-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .zen-hero-content {
        text-align: center;
    }

    .zen-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .zen-hero-buttons {
        justify-content: center;
    }

    .zen-hero-trust {
        justify-content: center;
    }

    .zen-hero-visual {
        justify-content: center;
        display: none;
    }
}
