/* =====================================================
   PIXELMARKET — HOMEPAGE HERO SECTION CSS
   ===================================================== */

:root {
    --pm-purple:        #6C4CF1;
    --pm-purple-dark:   #5538D6;
    --pm-purple-light:  #EDE8FE;
    --pm-purple-glow:   rgba(108, 76, 241, 0.15);
    --pm-coral:         #FF8A65;
    --pm-coral-dark:    #E5734E;
    --pm-bg-warm:       #FAF9F6;
    --pm-text:          #252525;
    --pm-text-sub:      #555555;
    --pm-text-muted:    #8C8C8C;
    --pm-border:        #E5E2DB;
    --pm-radius:        14px;
    --pm-font:          'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --pm-font-display:  'Plus Jakarta Sans', 'Inter', sans-serif;
}

.pm-hero {
    background-color: var(--pm-bg-warm);
    background-image:
        radial-gradient(at 10% 20%, rgba(108, 76, 241, 0.06) 0px, transparent 40%),
        radial-gradient(at 90% 80%, rgba(255, 138, 101, 0.08) 0px, transparent 40%),
        radial-gradient(at 50% 50%, rgba(250, 249, 246, 0.85) 0px, transparent 100%);
    padding: 68px 24px 80px;
    position: relative;
    overflow: hidden;
    font-family: var(--pm-font);
    color: var(--pm-text);
    box-sizing: border-box;
}

/* Subtle decorative grid pattern */
.pm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: 32px 32px;
    background-image: 
        linear-gradient(to right, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
    pointer-events: none;
    z-index: 1;
}

.pm-hero__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 52px;
    align-items: center;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

/* ── Content Column ── */
.pm-hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
    z-index: 3;
}

/* Eyebrow Badge */
.pm-hero__eyebrow {
    margin-bottom: 18px;
}
.pm-hero__eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(108, 76, 241, 0.08);
    border: 1px solid rgba(108, 76, 241, 0.22);
    border-radius: 9999px;
    transition: all 200ms ease;
}
.pm-hero__eyebrow-badge:hover {
    background: rgba(108, 76, 241, 0.12);
    border-color: rgba(108, 76, 241, 0.35);
}
.pm-hero__eyebrow-dot {
    width: 7px;
    height: 7px;
    background-color: var(--pm-purple);
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(108, 76, 241, 0.2);
    animation: pmPulse 2s infinite ease-in-out;
}
.pm-hero__eyebrow-text {
    font-family: var(--pm-font-display);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pm-purple);
}

/* Editorial Headline */
.pm-hero__headline {
    font-family: var(--pm-font-display);
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: #252525;
    margin: 0 0 20px 0;
}
.pm-hero__highlight-purple {
    color: var(--pm-purple);
    position: relative;
    white-space: nowrap;
}
.pm-hero__highlight-coral {
    color: var(--pm-coral);
    position: relative;
}

/* Description */
.pm-hero__description {
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.62;
    color: #555555;
    margin: 0 0 28px 0;
    max-width: 530px;
    font-weight: 400;
}

/* Search Bar */
.pm-hero__search-wrap {
    width: 100%;
    max-width: 530px;
    margin-bottom: 26px;
}
.pm-hero__search-form {
    width: 100%;
}
.pm-hero__search-input-box {
    display: flex;
    align-items: center;
    background: #FFFFFF;
    border: 2px solid var(--pm-border);
    border-radius: 14px;
    padding: 6px 6px 6px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.25s ease;
}
.pm-hero__search-input-box:focus-within {
    border-color: var(--pm-purple);
    box-shadow: 0 12px 34px rgba(108, 76, 241, 0.16);
    background: #FFFFFF;
}
.pm-hero__search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pm-text-muted);
    flex-shrink: 0;
    margin-right: 4px;
}
.pm-hero__search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-family: var(--pm-font);
    font-size: 15px;
    color: #252525;
    padding: 10px 10px;
    min-width: 0;
    box-shadow: none !important;
}
.pm-hero__search-input::placeholder {
    color: #949494;
}
.pm-hero__search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pm-purple);
    color: #FFFFFF;
    border: none;
    outline: none;
    border-radius: 10px;
    padding: 11px 22px;
    font-family: var(--pm-font);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.pm-hero__search-btn:hover {
    background: var(--pm-purple-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(108, 76, 241, 0.35);
}

/* Popular Search Suggestions */
.pm-hero__popular-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.pm-hero__tags-label {
    font-size: 12px;
    font-weight: 600;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.pm-hero__tags-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.pm-hero__tag-chip {
    font-size: 12px;
    font-weight: 500;
    color: #4A4A4A;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 4px 11px;
    border-radius: 9999px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.pm-hero__tag-chip:hover {
    background: var(--pm-purple-light);
    color: var(--pm-purple);
    text-decoration: none !important;
    border-color: rgba(108, 76, 241, 0.3);
    transform: translateY(-1px);
}

/* CTA Action Buttons */
.pm-hero__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.pm-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--pm-font);
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.pm-hero__btn:hover {
    text-decoration: none !important;
}
.pm-hero__btn-primary {
    background-color: var(--pm-purple);
    color: #FFFFFF !important;
    box-shadow: 0 10px 24px rgba(108, 76, 241, 0.28);
}
.pm-hero__btn-primary:hover {
    background-color: var(--pm-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(108, 76, 241, 0.38);
    color: #FFFFFF !important;
}
.pm-hero__btn-secondary {
    background-color: #FFFFFF;
    color: #252525 !important;
    border: 1.5px solid #D6D3CB;
}
.pm-hero__btn-secondary:hover {
    border-color: var(--pm-coral);
    color: var(--pm-coral) !important;
    background-color: #FFF9F7;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 138, 101, 0.18);
}
.pm-hero__btn-icon {
    display: inline-flex;
    align-items: center;
}

/* Trust Proof Row */
.pm-hero__trust {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 530px;
}
.pm-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
}
.pm-hero__trust-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pm-hero__trust-text {
    font-size: 13px;
    font-weight: 600;
    color: #555555;
}
.pm-hero__trust-dot {
    color: #CCCCCC;
    font-size: 14px;
}

/* ════════ VISUAL COMPOSITION COLUMN ════════ */
.pm-hero__visual {
    position: relative;
    width: 100%;
}
.pm-composition {
    position: relative;
    width: 100%;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ambient glow accents */
.pm-comp__glow {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
    z-index: 1;
}
.pm-comp__glow--purple {
    top: 12%;
    left: 20%;
    background: rgba(108, 76, 241, 0.14);
}
.pm-comp__glow--coral {
    bottom: 12%;
    right: 15%;
    background: rgba(255, 138, 101, 0.16);
}

/* Generic Mockup Card */
.pm-card {
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.09), 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    position: absolute;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.pm-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.15);
    z-index: 10 !important;
}
.pm-card__media {
    position: relative;
    overflow: hidden;
    background: #F0EEE9;
}
.pm-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.pm-card:hover .pm-card__media img {
    transform: scale(1.03);
}

/* Category Tags */
.pm-card__tag {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.pm-card__tag--purple {
    background: rgba(108, 76, 241, 0.92);
    color: #FFFFFF;
}
.pm-card__tag--coral {
    background: rgba(255, 138, 101, 0.95);
    color: #FFFFFF;
}
.pm-card__tag--dark {
    background: rgba(37, 37, 37, 0.88);
    color: #FFFFFF;
}
.pm-card__tag--sage {
    background: rgba(56, 102, 65, 0.92);
    color: #FFFFFF;
}

/* Pill Info Bar */
.pm-card__pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #FFFFFF;
}
.pm-card__pill-icon {
    font-size: 15px;
    line-height: 1;
}
.pm-card__pill-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.pm-card__pill-title {
    font-size: 12px;
    font-weight: 700;
    color: #252525;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}
.pm-card__pill-price {
    font-size: 11px;
    font-weight: 700;
    color: var(--pm-purple);
}

/* 1. Main Central Card: Printable Planner */
.pm-card--main {
    position: relative;
    width: 320px;
    z-index: 6;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14), 0 4px 14px rgba(0, 0, 0, 0.06);
}
.pm-card--main .pm-card__media {
    height: 215px;
}
.pm-card--main .pm-card__body {
    padding: 14px 18px 16px;
    background: #FFFFFF;
    position: relative;
    z-index: 2;
}
.pm-card--main .pm-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.pm-card--main .pm-card__title {
    font-family: var(--pm-font-display);
    font-size: 14.5px;
    font-weight: 700;
    color: #252525;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pm-card--main .pm-card__rating {
    font-size: 11.5px;
    color: #FFA41C;
    font-weight: 700;
    flex-shrink: 0;
}
.pm-card--main .pm-card__rating span {
    color: #555555;
    margin-left: 2px;
}
.pm-card--main .pm-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #777777;
}
.pm-card--main .pm-card__format {
    font-weight: 500;
    font-size: 11.5px;
}
.pm-card--main .pm-card__price {
    font-family: var(--pm-font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--pm-purple);
}

/* 2. Top-Right: Canva Templates */
.pm-card--canva {
    top: 6px;
    right: -10px;
    width: 210px;
    z-index: 4;
    animation: pmFloatSlow 6s ease-in-out infinite;
}
.pm-card--canva .pm-card__media {
    height: 135px;
}

/* 3. Bottom-Left: Ebook Covers */
.pm-card--ebook {
    bottom: 16px;
    left: -20px;
    width: 205px;
    z-index: 7;
    animation: pmFloatReverse 7s ease-in-out infinite;
}
.pm-card--ebook .pm-card__media {
    height: 135px;
}

/* 4. Top-Left: Wall Art */
.pm-card--wallart {
    top: 14px;
    left: -24px;
    width: 180px;
    z-index: 3;
    animation: pmFloatSubtle 8s ease-in-out infinite;
}
.pm-card--wallart .pm-card__media {
    height: 120px;
}

/* 5. Bottom-Right: Graphic Bundle */
.pm-card--graphics {
    bottom: -6px;
    right: 0px;
    width: 195px;
    z-index: 4;
    animation: pmFloatDrift 7.5s ease-in-out infinite;
}
.pm-card--graphics .pm-card__media {
    height: 130px;
}

/* Floating Live Badges */
.pm-floater-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    font-size: 12px;
    color: #252525;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 6;
    pointer-events: none;
}
.pm-floater-badge--top {
    top: -12px;
    left: 45%;
    transform: translateX(-50%);
    animation: pmFloatSubtle 6.5s ease-in-out infinite;
}
.pm-floater-badge--top .pm-floater-badge__dot {
    width: 7px;
    height: 7px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}
.pm-floater-badge--bottom {
    bottom: -16px;
    left: 40%;
    transform: translateX(-50%);
    animation: pmFloatSlow 7.2s ease-in-out infinite;
}
.pm-floater-badge--bottom .pm-floater-badge__icon {
    font-size: 14px;
}

/* Floating Micro-animations */
@keyframes pmFloatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-9px); }
}
@keyframes pmFloatReverse {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(8px); }
}
@keyframes pmFloatSubtle {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(-0.5deg); }
}
@keyframes pmFloatDrift {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(8px) rotate(0.8deg); }
}
@keyframes pmPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

/* ── Responsive Adaptations ── */
@media (max-width: 1120px) {
    .pm-hero__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .pm-hero__content {
        max-width: 720px;
        margin: 0 auto;
        text-align: center;
        align-items: center;
    }
    .pm-hero__description {
        max-width: 600px;
    }
    .pm-hero__actions {
        justify-content: center;
    }
    .pm-hero__popular-tags {
        justify-content: center;
    }
    .pm-hero__trust {
        justify-content: center;
    }
    .pm-composition {
        max-width: 580px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .pm-hero {
        padding: 44px 16px 56px;
    }
    .pm-hero__headline {
        font-size: 32px;
        line-height: 1.18;
    }
    .pm-hero__description {
        font-size: 15px;
    }
    .pm-hero__search-input-box {
        padding: 4px 4px 4px 14px;
    }
    .pm-hero__search-btn span {
        display: none;
    }
    .pm-hero__search-btn {
        padding: 10px 14px;
    }
    .pm-hero__actions {
        flex-direction: column;
        width: 100%;
    }
    .pm-hero__btn {
        width: 100%;
        text-align: center;
    }
    .pm-composition {
        height: auto;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .pm-card {
        position: static !important;
        width: 100% !important;
        animation: none !important;
    }
    .pm-card--main {
        grid-column: span 2;
    }
    .pm-floater-badge {
        display: none;
    }
    .pm-comp__glow {
        display: none;
    }
    .pm-hero__trust-dot {
        display: none;
    }
    .pm-hero__trust {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
}
