/* ========================================
   POLLS PAGE RESPONSIVE - ZenVote
   Styles responsive pour les pages de sondages publics
   ======================================== */

/* ========================================
   POLLS HEADER RESPONSIVE
   ======================================== */









@media (max-width: 767px) {
    
    
    
    
    
}

@media (max-width: 480px) {
    
    
    
    
    
}

/* ========================================
   POLLS STATS RESPONSIVE
   ======================================== */

.polls-stats {
    background: white;
    margin-top: -2rem;
    position: relative;
    z-index: 10;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 3rem;
}

.polls-stats .row {
    align-items: center;
}

.polls-stats .stat-item {
    text-align: center;
    padding: 1rem;
}

.polls-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--zen-green);
    margin-bottom: 0.5rem;
    display: block;
}

.polls-stats .stat-label {
    font-size: 1rem;
    color: var(--zen-gray-600);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 767px) {
    .polls-stats {
        margin-top: -1.5rem;
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
        border-radius: 12px;
    }
    
    .polls-stats .stat-item {
        padding: 0.75rem 0.5rem;
        margin-bottom: 1rem;
    }
    
    .polls-stats .stat-number {
        font-size: 2rem;
        margin-bottom: 0.25rem;
    }
    
    .polls-stats .stat-label {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .polls-stats .stat-number {
        font-size: 1.75rem;
    }
    
    .polls-stats .stat-label {
        font-size: 0.8rem;
    }
}

/* ========================================
   POLLS SEARCH & FILTERS RESPONSIVE
   ======================================== */

.polls-filters {
    background: var(--zen-gray-50);
    padding: 2rem 0;
    margin-bottom: 3rem;
    border-radius: 16px;
}

.polls-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto 2rem;
}

.polls-search input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--zen-gray-200);
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    transition: all 0.2s ease;
}

.polls-search input:focus {
    border-color: var(--zen-green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    outline: none;
}

.polls-search::before {
    content: '🔍';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    z-index: 2;
}

.polls-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--zen-gray-300);
    background: white;
    color: var(--zen-gray-700);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-btn:hover,
.category-btn.active {
    background: var(--zen-green);
    border-color: var(--zen-green);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

@media (max-width: 767px) {
    .polls-filters {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
        border-radius: 12px;
    }
    
    .polls-search {
        margin-bottom: 1.5rem;
    }
    
    .polls-search input {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
        font-size: 16px; /* Évite le zoom sur iOS */
        border-radius: 25px;
    }
    
    .polls-search::before {
        left: 0.875rem;
        font-size: 1.125rem;
    }
    
    .polls-categories {
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
        border-radius: 25px;
    }
}

@media (max-width: 480px) {
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* ========================================
   POLLS GRID RESPONSIVE
   ======================================== */

.polls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 767px) {
    .polls-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .polls-grid {
        gap: 1rem;
    }
}

/* ========================================
   POLL CARD RESPONSIVE - DESIGN AMÉLIORÉ
   ======================================== */

.poll-card, .event-card {
    background: white ;
    border-radius: 20px ;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) ;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) ;
    position: relative;
    border: 1px solid #e5e7eb ;
}

.poll-card:hover, .event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.15);
    border-color: var(--zen-green);
}

.poll-card-image, .event-image-container {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--zen-green) 0%, var(--zen-green-dark) 100%);
    position: relative;
    overflow: hidden;
}

.poll-card-image img, .event-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.poll-card:hover .poll-card-image img, .event-card:hover .event-cover-image {
    transform: scale(1.15);
}

.poll-card-status, .status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.poll-card-status.active, .status-badge.active {
    background: linear-gradient(135deg, var(--zen-green) 0%, var(--zen-green-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.poll-card-status.closed, .status-badge.closed {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(107, 114, 128, 0.4);
}

.poll-card-content, .event-content {
    padding: 1.25rem;
}

.poll-card-title, .event-title-on-image {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--zen-gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.poll-card-description, .event-description {
    color: var(--zen-gray-600);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.poll-card-meta, .event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--zen-gray-600);
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
}

.poll-card-stats {
    display: flex;
    gap: 0.75rem;
}

.poll-card-stat, .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f3f4f6;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--zen-gray-600);
}

.poll-card-stat i, .meta-item i {
    color: var(--zen-green);
    font-size: 0.75rem;
}

.price-badge {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.poll-card-actions, .event-footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0fdf4;
    margin-top: auto;
}

.poll-card-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.poll-card-btn.primary, .vote-btn {
    background: linear-gradient(135deg, var(--zen-green) 0%, var(--zen-green-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    white-space: nowrap;
}

.poll-card-btn.primary:hover, .vote-btn:hover {
    background: linear-gradient(135deg, var(--zen-green-dark) 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.poll-card-btn.secondary, .share-link-btn {
    background: white;
    color: var(--zen-gray-600);
    border: 2px solid #e5e7eb;
}

.poll-card-btn.secondary:hover, .share-link-btn:hover {
    background: #f9fafb;
    border-color: var(--zen-green);
    color: var(--zen-green);
}

@media (max-width: 767px) {
    .poll-card {
        border-radius: 12px;
    }
    
    .poll-card-image {
        height: 180px;
    }
    
    .poll-card-status {
        top: 0.75rem;
        right: 0.75rem;
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .poll-card-content {
        padding: 1.25rem;
    }
    
    .poll-card-title {
        font-size: 1.125rem;
        margin-bottom: 0.5rem;
    }
    
    .poll-card-description {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .poll-card-meta {
        margin-bottom: 1.25rem;
        font-size: 0.8rem;
    }
    
    .poll-card-stats {
        gap: 0.75rem;
    }
    
    .poll-card-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .poll-card-btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .poll-card-image {
        height: 160px;
    }
    
    .poll-card-content {
        padding: 1rem;
    }
    
    .poll-card-title {
        font-size: 1rem;
    }
    
    .poll-card-description {
        font-size: 0.875rem;
    }
}

/* ========================================
   EMPTY STATE RESPONSIVE
   ======================================== */

.polls-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--zen-gray-50);
    border-radius: 16px;
    margin: 2rem 0;
}

.polls-empty-icon {
    font-size: 4rem;
    color: var(--zen-gray-400);
    margin-bottom: 1.5rem;
}

.polls-empty h3 {
    font-size: 1.5rem;
    color: var(--zen-gray-700);
    margin-bottom: 1rem;
}

.polls-empty p {
    color: var(--zen-gray-500);
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.polls-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--zen-green);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.polls-empty-btn:hover {
    background: var(--zen-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

@media (max-width: 767px) {
    .polls-empty {
        padding: 3rem 1.5rem;
        border-radius: 12px;
    }
    
    .polls-empty-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .polls-empty h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .polls-empty p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .polls-empty-btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .polls-empty {
        padding: 2rem 1rem;
    }
    
    .polls-empty-icon {
        font-size: 2.5rem;
    }
    
    .polls-empty h3 {
        font-size: 1.125rem;
    }
    
    .polls-empty p {
        font-size: 0.875rem;
    }
}

/* ========================================
   PAGINATION RESPONSIVE
   ======================================== */

.polls-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
}

.pagination-btn {
    padding: 0.75rem 1rem;
    border: 2px solid var(--zen-gray-200);
    background: white;
    color: var(--zen-gray-700);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 44px;
    text-align: center;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--zen-green);
    border-color: var(--zen-green);
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .polls-pagination {
        margin: 2rem 0;
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
        min-width: 40px;
        border-radius: 6px;
    }
}

@media (max-width: 480px) {
    .pagination-btn {
        padding: 0.5rem 0.625rem;
        font-size: 0.8rem;
        min-width: 36px;
    }
}

/* ========================================
   LOADING STATES
   ======================================== */

.polls-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--zen-gray-200);
    border-top: 4px solid var(--zen-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 767px) {
    .polls-loading {
        padding: 3rem 1rem;
    }
    
    .loading-spinner {
        width: 32px;
        height: 32px;
        border-width: 3px;
    }
}