/* ============================================================
   LifeStyleMod – Polls List Page (V2 – Banner Inspired)
   ============================================================ */

/* ---------- Container ---------- */
.pl-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    position: relative;
    z-index: 1;
}

/* ---------- Back Link ---------- */
.pl-back-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-muted); text-decoration: none;
    font-size: 0.875rem; padding: 8px 16px;
    background: rgba(15,23,42,0.4); border: 1px solid rgba(245,158,11,0.15);
    border-radius: 30px; transition: all 0.3s; backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); margin-bottom: 24px;
}
.pl-back-link:hover {
    color: #fff;
    border-color: rgba(139,92,246,0.4);
    background: rgba(139,92,246,0.1);
}

/* ---------- Page Hero ---------- */
.pl-page-hero {
    text-align: center;
    margin-bottom: 32px;
    animation: fadeUp 0.6s ease forwards;
}
.pl-page-icon {
    font-size: 3.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(139,92,246,0.5));
    margin-bottom: 8px;
}
.pl-page-hero h1 {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 900;
    margin: 10px 0 6px;
}
.pl-gradient-text {
    background: linear-gradient(135deg, #fbbf24, #8b5cf6, #2dd4bf);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
@keyframes gradientShift {
    0% { background-position:0% 50%; }
    50% { background-position:100% 50%; }
    100% { background-position:0% 50%; }
}
.pl-page-hero p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Filters ---------- */
.pl-filters {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px;
}
.pl-filter-group {
    display: flex; gap: 6px;
    background: rgba(15, 23, 42, 0.5); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(245,158,11,0.15);
    border-radius: 40px; padding: 5px; flex-wrap: wrap; justify-content: center;
}
.pl-filter-btn {
    background: transparent; border: none; padding: 8px 18px; border-radius: 30px;
    color: var(--text-muted); cursor: pointer; font-size: 0.8125rem; font-weight: 600;
    font-family: inherit; transition: all 0.2s ease; white-space: nowrap;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.pl-filter-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #f59e0b);
    color: #fff;
    box-shadow: 0 4px 12px rgba(139,92,246,0.4);
}
.pl-filter-btn:hover:not(.active) {
    color: #fff;
    background: rgba(139,92,246,0.15);
}

/* ---------- Search ---------- */
.pl-search-box {
    display: flex; gap: 10px; max-width: 500px; margin: 0 auto 24px;
}
.pl-search-box input {
    flex: 1; padding: 14px 20px;
    background: rgba(15,23,42,0.6); backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(245,158,11,0.15);
    border-radius: 40px; color: #fff; font-size: 0.95rem; font-family: inherit;
    outline: none; transition: all 0.3s; -webkit-appearance: none;
}
.pl-search-box input:focus {
    border-color: rgba(139,92,246,0.5);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
    background: rgba(15,23,42,0.8);
}
.pl-search-box button {
    background: linear-gradient(135deg, #8b5cf6, #f59e0b); border: none;
    padding: 0 28px; border-radius: 40px; color: #fff; font-weight: 700;
    cursor: pointer; font-family: inherit; font-size: 0.95rem; transition: all 0.3s;
    white-space: nowrap; box-shadow: 0 4px 15px rgba(139,92,246,0.3);
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.pl-search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139,92,246,0.5);
}

/* ---------- Results Count ---------- */
.pl-results-count {
    text-align: center; color: var(--text-muted); margin-bottom: 24px;
    font-size: 0.9rem; font-weight: 500;
}

/* ---------- Poll Cards Grid ---------- */
.pl-polls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

.pl-poll-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    will-change: transform;
}
.pl-poll-card:hover {
    transform: translateY(-6px);
    border-color: rgba(139,92,246,0.5);
    box-shadow: 0 20px 40px rgba(139,92,246,0.2), 0 0 30px rgba(245,158,11,0.15);
}

.pl-poll-body {
    padding: 18px; flex: 1; display: flex; flex-direction: column;
}
.pl-poll-question {
    font-weight: 700; font-size: 1rem; margin-bottom: 12px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pl-poll-meta {
    display: flex; gap: 12px; font-size: 0.75rem; color: var(--text-muted);
    margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.05);
    flex-wrap: wrap;
}
.pl-poll-meta span { display: flex; align-items: center; gap: 4px; }
.pl-badge {
    display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 0.65rem;
    font-weight: 700; margin-bottom: 10px; width: fit-content;
}
.pl-badge-active {
    background: rgba(45,212,191,0.15); color: #5eead4; border: 1px solid rgba(45,212,191,0.3);
}
.pl-badge-expired {
    background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3);
}
.pl-poll-vote-count {
    color: #fbbf24; font-weight: 700;
}

/* ---------- No Results ---------- */
.pl-no-results {
    text-align: center; padding: 60px 20px;
    background: rgba(15,23,42,0.5);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 32px;
    grid-column: 1/-1; color: var(--text-muted);
}
.pl-no-results .icon { font-size: 3.5rem; margin-bottom: 16px; }

/* ---------- Pagination ---------- */
.pl-pagination {
    display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap;
}
.pl-page-btn {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(15,23,42,0.6); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(245,158,11,0.15);
    color: var(--text-muted); font-weight: 700; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; font-family: inherit;
    font-size: 0.875rem; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.pl-page-btn.active {
    background: #8b5cf6; color: #fff; border-color: #8b5cf6;
    box-shadow: 0 4px 15px rgba(139,92,246,0.3);
}
.pl-page-btn:disabled { opacity: 0.3; cursor: default; }
.pl-page-btn:hover:not(.active):not(:disabled) {
    background: rgba(139,92,246,0.2);
    border-color: rgba(139,92,246,0.4);
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .pl-container { padding: 16px 12px 30px; }
    .pl-filter-group { gap: 4px; padding: 4px; }
    .pl-filter-btn { padding: 6px 14px; font-size: 0.75rem; }
    .pl-search-box { flex-direction: column; max-width: 100%; }
    .pl-search-box button { width: 100%; }
    .pl-polls-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
}
@media (max-width: 480px) {
    .pl-polls-grid { grid-template-columns: 1fr; }
}