/* ==========================================================================
   AapkaLove — Categories Page Premium CSS
   Editorial · Minimal · Warm · Modern
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page-level overrides
   -------------------------------------------------------------------------- */
.al-page-categories {
    background-color: #faf9f7;
}

/* ==========================================================================
   Shared layout tokens (mirror homepage-2.css for consistency)
   ========================================================================== */
.alc-container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.alc-section {
    padding: 52px 0;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.alc-hero {
    position: relative;
    padding: 60px 24px 52px;
    text-align: center;
    overflow: hidden;
    background: #faf9f7;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.alc-hero-glow {
    position: absolute;
    top: -160px;
    left: 50%;
    transform: translateX(-50%);
    width: 720px;
    height: 720px;
    background: radial-gradient(ellipse at center, rgba(224,33,122,0.055) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.alc-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

/* Back link (filter view) */
.alc-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--al-text-secondary);
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.15s;
}
.alc-back-link:hover { color: var(--al-accent-pink); }

/* Eyebrow Pill Badge */
.alc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(224, 33, 122, 0.08);
    border: 1px solid rgba(224, 33, 122, 0.16);
    padding: 5px 14px;
    border-radius: 999px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #E0217A;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(224, 33, 122, 0.04);
}

.alc-eyebrow i,
.alc-eyebrow svg {
    width: 13px;
    height: 13px;
    color: #E0217A;
    flex-shrink: 0;
}

/* Hero headline — mixed typography */
.alc-hero-title {
    margin: 0 0 16px;
    line-height: 1.1;
}

.alc-hero-sans {
    display: block;
    font-family: var(--font-display, 'Sora', sans-serif);
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
    line-height: 1.1;
    margin-bottom: 2px;
}

.alc-hero-serif {
    display: block;
    font-family: var(--font-editorial, 'Playfair Display', serif);
    font-size: clamp(34px, 4.2vw, 48px);
    font-weight: 400;
    font-style: italic;
    color: #E0217A;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-top: 0;
}

/* Filtered view headline */
.alc-hero-title-filter {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.8vw, 38px);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111;
    margin: 0 0 12px;
    line-height: 1.1;
}

/* Hero subtext */
.alc-hero-sub {
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--al-text-secondary);
    max-width: 500px;
    margin: 0 auto 28px;
}

/* ==========================================================================
   SEARCH
   ========================================================================== */
.alc-search-form {
    max-width: 580px;
    margin: 0 auto;
}

.alc-search-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 4px 4px 4px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.alc-search-wrap:focus-within {
    border-color: rgba(224,33,122,0.35);
    box-shadow: 0 2px 16px rgba(224,33,122,0.10);
}

.alc-search-icon {
    color: #999;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.alc-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 9px 12px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: #111;
    min-width: 0;
}
.alc-search-input::placeholder { color: #bbb; }

.alc-search-btn {
    background: var(--al-accent-pink);
    color: #fff;
    border: none;
    border-radius: 7px;
    padding: 9px 18px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s;
}
.alc-search-btn:hover {
    background: var(--al-accent-pink-hover);
    transform: translateY(-1px);
}

.alc-search-hint {
    margin: 10px 0 0;
    font-family: var(--font-sans);
    font-size: 12px;
    color: #bbb;
    text-align: center;
}

/* ==========================================================================
   FEATURED CATEGORY HIGHLIGHT
   ========================================================================== */
.alc-featured-section {
    padding: 0 0 40px;
}

.alc-featured-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 22px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.alc-featured-card:hover {
    border-color: rgba(224,33,122,0.25);
    box-shadow: 0 6px 24px rgba(224,33,122,0.08);
    transform: translateY(-1px);
    text-decoration: none;
}

.alc-featured-left { flex: 1; min-width: 0; }

.alc-featured-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--al-accent-pink);
    margin-bottom: 8px;
}

.alc-featured-identity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.alc-featured-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--al-accent-pink-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--al-accent-pink);
    flex-shrink: 0;
}

.alc-featured-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
}

.alc-featured-desc {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--al-text-secondary);
    line-height: 1.5;
    margin: 0;
    max-width: 560px;
}

.alc-featured-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.alc-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--al-accent-pink);
    transition: gap 0.15s;
}
.alc-featured-card:hover .alc-featured-cta { gap: 9px; }

.alc-featured-poll-count {
    font-family: var(--font-sans);
    font-size: 12px;
    color: #bbb;
    font-weight: 500;
}

/* Live dot */
.alc-live-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--al-accent-pink);
    animation: alc-pulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes alc-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}
@media (prefers-reduced-motion: reduce) {
    .alc-live-dot { animation: none; }
}

/* ==========================================================================
   GRID INTRO
   ========================================================================== */
.alc-grid-section {
    padding: 0 0 52px;
}

.alc-grid-intro {
    margin-bottom: 22px;
}

.alc-grid-heading {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
    margin: 0 0 4px;
    line-height: 1.2;
}

.alc-grid-sub {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--al-text-secondary);
    margin: 0;
}

/* ==========================================================================
   CATEGORY CARD GRID
   ========================================================================== */
.alc-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.alc-cat-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 10px;
    padding: 14px 14px 11px;
    text-decoration: none;
    min-height: 128px;
    box-sizing: border-box;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.alc-cat-card:hover {
    border-color: rgba(224,33,122,0.28);
    box-shadow: 0 4px 18px rgba(224,33,122,0.07);
    transform: translateY(-1px);
    text-decoration: none;
}

.alc-cat-card-top { flex: 1; }

.alc-cat-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #f5f4f2;
    color: #555;
    margin-bottom: 9px;
    transition: background 0.18s, color 0.18s;
}
.alc-cat-card:hover .alc-cat-card-icon {
    background: var(--al-accent-pink-subtle);
    color: var(--al-accent-pink);
}

.alc-cat-card-name {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.alc-cat-card-desc {
    font-family: var(--font-sans);
    font-size: 11.5px;
    color: #888;
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.alc-cat-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.alc-cat-poll-count {
    font-family: var(--font-sans);
    font-size: 10.5px;
    font-weight: 500;
    color: #aaa;
}

.alc-cat-arrow {
    color: #ccc;
    display: flex;
    align-items: center;
    transition: color 0.18s, transform 0.18s;
}
.alc-cat-card:hover .alc-cat-arrow {
    color: var(--al-accent-pink);
    transform: translateX(2px);
}

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.alc-empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #bbb;
}
.alc-empty-state i { margin-bottom: 12px; }
.alc-empty-state p {
    font-family: var(--font-sans);
    font-size: 15px;
    margin: 0 0 16px;
    color: #aaa;
}
.alc-empty-cta {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--al-accent-pink);
    text-decoration: none;
}
.alc-empty-cta:hover { text-decoration: underline; }

/* ==========================================================================
   TRENDING POLLS SECTION
   ========================================================================== */
.alc-trending-section {
    background: #f5f4f2;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 52px 0;
}

/* Section header */
.alc-trending-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.alc-trending-header-left {}

.alc-trending-heading {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111;
    margin: 0 0 3px;
}

.alc-trending-sub {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--al-text-secondary);
    margin: 0;
}

.alc-view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--al-accent-pink);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: gap 0.15s;
}
.alc-view-all-link:hover { gap: 7px; text-decoration: none; }

/* Filter bar */
.alc-filter-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.alc-filter-pill {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 11px;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 500;
    color: #666;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
}
.alc-filter-pill:hover {
    border-color: rgba(224,33,122,0.3);
    color: var(--al-accent-pink);
    text-decoration: none;
}
.alc-filter-pill.active {
    background: var(--al-accent-pink);
    border-color: var(--al-accent-pink);
    color: #fff;
}

/* ==========================================================================
   POLL GRID — 3 Equal Cards
   ========================================================================== */

/* Mobile base: single column */
.alc-poll-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    align-items: start;
}

/* Tablet (≥640px): 2 columns */
@media (min-width: 640px) {
    .alc-poll-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Desktop (≥1024px): 3 columns */
@media (min-width: 1024px) {
    .alc-poll-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* POLL CARD */
.alc-poll-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.alc-poll-card:hover {
    border-color: rgba(224,33,122,0.2);
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

/* Poll image */
.alc-poll-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 8.5;
    overflow: hidden;
    background: #f0efed;
}

.alc-poll-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.alc-poll-card:hover .alc-poll-img { transform: scale(1.03); }

.alc-poll-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: #ccc;
    background: linear-gradient(135deg, #f0efed 0%, #e8e6e3 100%);
}

.alc-poll-img-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.35) 100%);
}

.alc-poll-badges {
    display: flex;
    gap: 5px;
    align-items: center;
}

.alc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    font-family: var(--font-sans);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.alc-badge-trending {
    background: rgba(20,20,20,0.82);
    color: #fff;
}

.alc-badge-live {
    background: rgba(255,255,255,0.92);
    color: #555;
}

.alc-poll-vote-count {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-align: right;
}

/* Poll body */
.alc-poll-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 12px 14px 12px;
    gap: 9px;
}

.alc-poll-title {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    color: #111;
    margin: 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Poll options / progress */
.alc-poll-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alc-poll-option {
    /* base */
}

.alc-poll-option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.alc-poll-option-name {
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 500;
    color: #555;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 6px;
}

.alc-poll-option-pct {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    color: #888;
    flex-shrink: 0;
}

.alc-poll-option.winner .alc-poll-option-name { color: #111; font-weight: 600; }
.alc-poll-option.winner .alc-poll-option-pct { color: var(--al-accent-pink); }

.alc-poll-track {
    height: 2px;
    background: #f0efed;
    border-radius: 2px;
    overflow: hidden;
}

.alc-poll-fill {
    height: 100%;
    background: var(--al-accent-pink);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.alc-poll-option.winner .alc-poll-fill { background: var(--al-accent-pink); }

/* Vote CTA */
.alc-poll-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 38px;
    border-radius: 8px;
    background: #E0217A;
    color: #fff;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(224, 33, 122, 0.18);
    transition: all 0.2s ease;
}
.alc-poll-card:hover .alc-poll-cta {
    background: #c91c6b;
    box-shadow: 0 4px 14px rgba(224, 33, 122, 0.28);
    transform: translateY(-1px);
}

/* Poll meta row — featured card only */
.alc-poll-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    padding-top: 10px;
    margin-top: 2px;
    border-top: 1px solid rgba(0,0,0,0.06);
    font-family: var(--font-sans);
    font-size: 11.5px;
    color: #999;
    line-height: 1;
}

.alc-poll-meta-cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--al-accent-pink);
    font-weight: 500;
}

.alc-poll-meta-live {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-weight: 500;
}

.alc-poll-meta-votes {
    color: #aaa;
    font-weight: 400;
}

.alc-poll-meta-sep {
    color: #ccc;
    user-select: none;
}

/* View All footer */
.alc-trending-footer {
    text-align: center;
    margin-top: 28px;
}

.alc-view-all-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.09);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    box-shadow: var(--shadow-soft);
    transition: border-color 0.15s, box-shadow 0.15s, color 0.15s, gap 0.15s;
}
.alc-view-all-pill:hover {
    border-color: rgba(224,33,122,0.25);
    box-shadow: 0 4px 20px rgba(224,33,122,0.1);
    color: var(--al-accent-pink);
    gap: 10px;
    text-decoration: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Large tablet */
@media (max-width: 1024px) {
    .alc-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet */
@media (max-width: 768px) {
    .alc-section { padding: 36px 0; }
    .alc-featured-section { padding: 0 0 30px; }
    .alc-grid-section { padding: 0 0 36px; }
    .alc-trending-section { padding: 36px 0; }

    .alc-hero { padding: 44px 20px 40px; }
    .alc-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

    .alc-featured-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .alc-featured-right {
        align-items: flex-start;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        align-items: center;
    }

    .alc-trending-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .alc-trending-header .alc-view-all-link { display: none; }
    .alc-trending-footer { display: block; }
}

/* Mobile */
@media (max-width: 480px) {
    .alc-hero { padding: 36px 16px 32px; }
    .alc-container { padding: 0 14px; }

    .alc-hero-sans { font-size: 30px; }
    .alc-hero-serif { font-size: 32px; }
    .alc-hero-sub { font-size: 13.5px; }

    .alc-search-btn { padding: 8px 14px; font-size: 12.5px; }

    .alc-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .alc-cat-card { min-height: 112px; padding: 12px 12px 10px; }
    .alc-cat-card-name { font-size: 12.5px; }
    .alc-cat-card-desc { display: none; }

    .alc-poll-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }

    .alc-filter-bar { gap: 4px; }
    .alc-filter-pill { height: 26px; padding: 0 10px; font-size: 11px; }
}

/* Very small (360px) */
@media (max-width: 380px) {
    .alc-container { padding: 0 12px; }
    .alc-hero-sans { font-size: 27px; }
    .alc-hero-serif { font-size: 29px; }
    .alc-cat-grid { gap: 7px; }
    .alc-cat-card { min-height: 104px; padding: 10px 10px 8px; }
}

/* Motion preference */
@media (prefers-reduced-motion: reduce) {
    .alc-cat-card,
    .alc-poll-card,
    .alc-featured-card,
    .alc-poll-img,
    .alc-poll-fill {
        transition: none !important;
        animation: none !important;
    }
}
