/* 📚 Listar Simulados Netflix Premium Style - MODERNIZADO */

:root {
    --primary-blue: #667eea;
    --primary-purple: #764ba2;
    --primary-hover: #7c5cb8;
    --success-green: #10b981;
    --warning-gold: #fbbf24;
    --card-shadow: 0 8px 32px rgba(102, 126, 234, 0.2);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease-out;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* 🌟 SKELETON LOADING */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 12px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #e0e0e0 25%, #d0d0d0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 1.5rem;
}

.skeleton-title {
    height: 20px;
    width: 80%;
    margin-bottom: 12px;
}

.skeleton-text {
    height: 14px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-text-short {
    height: 14px;
    width: 60%;
    margin-bottom: 16px;
}

.skeleton-button {
    height: 44px;
    width: 100%;
    margin-top: 16px;
}

/* 🎬 Hero Header - MODERNIZADO */
.listar-hero {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 24px;
    padding: 4rem 3rem 3rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: visible; /* 🔧 Alterado de hidden para visible - permite dropdown expandir */
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

/* 🔧 Pseudo-elementos movidos para um container interno para manter o efeito visual */
.listar-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.listar-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 10s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(10deg); }
}

.listar-hero-content {
    position: relative;
    z-index: 10; /* 🔧 Aumentado para ficar acima dos pseudo-elementos */
    text-align: center;
}

.listar-hero-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.listar-hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
}

/* 🔍 Search Bar - MODERNIZADO com Glassmorphism */
.search-bar-container {
    max-width: 700px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 100; /* 🔧 Aumentado para garantir que dropdown fique acima de tudo */
}

.search-input-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.search-input-wrapper:focus-within {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    border-color: var(--primary-blue);
}

.search-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    color: #9ca3af;
    z-index: 2;
    transition: var(--transition-fast);
}

.search-input-wrapper:focus-within .search-icon {
    color: var(--primary-blue);
    transform: translateY(-50%) scale(1.1);
}

.search-input {
    flex: 1;
    border: none;
    padding: 1.2rem 1.5rem 1.2rem 64px;
    font-size: 1.05rem;
    outline: none;
    color: #1f2937;
    background: transparent;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-button {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.search-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.search-button:hover::before {
    width: 300px;
    height: 300px;
}

.search-button:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* 🔍 Autocomplete Suggestions */
.search-suggestions {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000; /* 🔧 Aumentado significativamente para ficar acima de tudo */
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.search-suggestions.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.suggestion-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
}

.suggestion-item:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    padding-left: 2rem;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.suggestion-content {
    flex: 1;
}

.suggestion-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.suggestion-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

/* ✨ Quick Actions */
.quick-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.btn-create-simulado {
    background: white;
    color: var(--primary-purple);
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.btn-create-simulado:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-blue);
}

/* 🎯 Smart Filters - MODERNIZADO */
.smart-filters {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.filter-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.filter-pills {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    max-height: none;
    overflow: visible;
}

.filter-pill {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.filter-pill::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.filter-pill:hover::before {
    width: 200px;
    height: 200px;
}

.filter-pill:hover {
    background: #e5e7eb;
    color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.filter-pill.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

.filter-pill.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.advanced-filters-toggle {
    margin-top: 1.5rem;
    text-align: center;
}

.btn-advanced-toggle {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.btn-advanced-toggle:hover {
    background: #f3f4f6;
}

/* 🎨 Advanced Filters Card */
.advanced-filters-card {
    background: #f9fafb;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 1rem;
    border: 2px solid #e5e7eb;
}

.filter-form-label {
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.filter-select,
.filter-input {
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1rem;
    transition: var(--transition-smooth);
}

.filter-select:focus,
.filter-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.filter-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-apply-filters {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.85rem 2rem;
    font-weight: 700;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    filter: brightness(1.1);
}

.btn-clear-filters {
    background: white;
    color: #6b7280;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.85rem 2rem;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-clear-filters:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

/* 📚 Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.section-view-all {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.section-view-all:hover {
    color: var(--primary-purple);
    text-decoration: underline;
}

/* 🎴 Simulado Cards Grid - MODERNIZADO */
.simulados-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.simulado-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.simulado-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.simulado-card:hover::before {
    opacity: 1;
}

.simulado-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 70px rgba(102, 126, 234, 0.3);
    border-color: var(--primary-blue);
}

/* Parallax effect no hover */
.simulado-card:hover .simulado-card-image {
    transform: scale(1.08) translateY(-8px);
}

.simulado-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.simulado-card-image-container {
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    height: 180px;
}

/* Gradient overlay on hover */
.simulado-card-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.simulado-card:hover .simulado-card-image-container::after {
    opacity: 1;
}

.simulado-card-placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.simulado-card:hover .simulado-card-placeholder {
    opacity: 1;
    transform: scale(1.1) rotate(5deg);
}

.card-type-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.badge-basico {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.badge-avancado {
    background: rgba(251, 191, 36, 0.9);
    color: #000;
}

.card-price-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(16, 185, 129, 0.95);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.simulado-card-body {
    padding: 1.25rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.simulado-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.simulado-card-description {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.simulado-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0.75rem;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: #6b7280;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
}

.meta-item i {
    font-size: 0.75rem;
}

.meta-item strong {
    color: var(--primary-purple);
    font-weight: 700;
}

.simulado-card-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: #f3f4f6;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.author-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-blue);
    font-size: 0.75rem;
}

.author-name {
    color: #374151;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-view-simulado {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem;
    font-weight: 700;
    width: 100%;
    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: auto;
    display: block;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-view-simulado:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    filter: brightness(1.1);
    color: white;
}

/* 😢 Empty State */
.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border-radius: 24px;
    margin: 3rem 0;
}

.empty-state-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.empty-state-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 1rem;
}

.empty-state-message {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-empty-state {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition-smooth);
}

.btn-empty-state:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    filter: brightness(1.1);
    color: white;
}

/* 📱 Responsive */
@media (max-width: 768px) {
    .listar-hero {
        padding: 3rem 1.5rem 2rem;
    }
    
    .listar-hero-title {
        font-size: 2.5rem;
    }
    
    .listar-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-input {
        padding: 1rem 1rem 1rem 56px;
        font-size: 0.95rem;
    }
    
    .search-button {
        padding: 0.9rem 1.3rem;
        font-size: 0.9rem;
    }
    
    .search-button i {
        display: none;
    }
    
    /* Autocomplete mobile */
    .search-suggestions {
        max-height: 60vh;
        border-radius: 16px;
    }
    
    .suggestion-item {
        padding: 0.85rem 1rem;
    }
    
    .filter-pills {
        justify-content: flex-start;
        gap: 0.6rem;
    }
    
    .filter-pill {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .simulados-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
        align-items: center;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-view-all {
        font-size: 0.9rem;
    }
    
    /* Quick Actions Mobile */
    .btn-create-simulado {
        padding: 0.85rem 1.8rem;
        font-size: 0.95rem;
    }
}

/* ✨ Animations */
.simulado-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation */
.simulado-card:nth-child(1) { animation-delay: 0.1s; }
.simulado-card:nth-child(2) { animation-delay: 0.2s; }
.simulado-card:nth-child(3) { animation-delay: 0.3s; }
.simulado-card:nth-child(4) { animation-delay: 0.4s; }
.simulado-card:nth-child(5) { animation-delay: 0.5s; }
.simulado-card:nth-child(6) { animation-delay: 0.6s; }

/* 🆕 FASE 1: BADGES TRENDING/EM ALTA/NOVO */
.badges-overlay {
    position: absolute;
    top: 64px;
    right: 12px;
    left: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    text-align: right;
    z-index: 3;
}

.badge-overlay {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease;
}

.badge-novo {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
}

.badge-trending {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    animation: pulse 2s ease-in-out infinite;
}

.badge-em-alta {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    animation: blink 2s ease-in-out infinite;
}

.badge-popular {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* 🆕 INDICADOR DE PROGRESSO DO USUÁRIO */
.progress-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 2;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.progress-concluido {
    background: linear-gradient(to top, rgba(16, 185, 129, 0.95), rgba(16, 185, 129, 0.7));
    color: white;
}

.progress-em-andamento {
    background: linear-gradient(to top, rgba(251, 191, 36, 0.95), rgba(251, 191, 36, 0.7));
    color: #1f2937;
    flex-direction: column;
    gap: 6px;
}

.mini-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.mini-progress-fill {
    height: 100%;
    background: white;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* 🆕 MÉTRICAS SOCIAIS E DE QUALIDADE - LAYOUT REORGANIZADO */
.simulado-metricas-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Linha 1: Rating com Estrelas */
.metrica-rating-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 8px;
}

.stars-rating {
    display: flex;
    gap: 2px;
    font-size: 0.85rem;
}

.stars-rating .fas.fa-star {
    color: #fbbf24;
}

.stars-rating .far.fa-star {
    color: #6b7280;
}

.metrica-label {
    font-weight: 600;
    color: #4b5563;
    font-size: 0.8rem;
}

/* Linha 2: Dificuldade | Taxa de Aprovação */
.metrica-stats-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.metrica-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    background: rgba(102, 126, 234, 0.08);
    border-radius: 8px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    flex: 1;
}

.metrica-item:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.metrica-separator {
    color: #9ca3af;
    font-weight: 300;
    font-size: 1rem;
}

.metrica-icon {
    font-size: 0.9rem;
}

/* Dificuldade */
.metrica-dificuldade {
    font-weight: 700;
}

.metrica-facil {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.metrica-medio {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
}

.metrica-dificil {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.metrica-novo {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.metrica-sem-dados {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.metrica-icon {
    font-size: 1.1rem;
}

/* Tempo e Aprovação */
.metrica-tempo,
.metrica-aprovacao {
    font-size: 0.8rem;
}

/* 🆕 FILTROS DE DIFICULDADE E DURAÇÃO */
.filter-dificuldade,
.filter-duracao {
    border: 2px solid transparent;
}

.filter-dificuldade.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: var(--primary-blue);
}

.filter-duracao.active {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.2));
    border-color: #fbbf24;
}

/* 🆕 BOTÕES DE AÇÃO CONTEXTUAIS */
.btn-continuar {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
}

.btn-continuar:hover {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4);
}

.btn-concluido {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-concluido:hover {
    background: linear-gradient(135deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* Ajuste no meta para mostrar 3 itens */
.simulado-card-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 0.85rem;
}

/* 🎯 RECOMENDAÇÕES PERSONALIZADAS - GRID COMPACTO (Fase 2 Reformulado) */
.recomendacoes-personalizadas-compact {
    margin-bottom: 3rem;
}

.recomendacoes-personalizadas-compact .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.recomendacoes-personalizadas-compact .section-title {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
}

.recomendacoes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Responsivo para recomendações */
@media (max-width: 1200px) {
    .recomendacoes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Grid principal - 3 cards em desktops médios */
    .simulados-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 992px) {
    /* Grid principal - 2 cards em tablets */
    .simulados-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .recomendacoes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    /* Grid principal - 2 cards em tablets pequenos */
    .simulados-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    /* Advanced Filters - 1 coluna */
    .advanced-filters-card .row .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .filter-form-label {
        font-size: 0.9rem;
    }
    
    .filter-select,
    .filter-input {
        padding: 0.65rem 0.85rem;
        font-size: 0.9rem;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .btn-apply-filters,
    .btn-clear-filters {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .recomendacoes-grid {
        grid-template-columns: 1fr;
    }
    
    /* Grid principal - 1 card em mobile */
    .simulados-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Search Bar Extra Small */
    .search-input-wrapper {
        flex-direction: column;
        border-radius: 20px;
    }
    
    .search-input {
        padding: 0.85rem 1rem 0.85rem 48px;
        font-size: 0.9rem;
    }
    
    .search-icon {
        left: 16px;
        font-size: 1.1rem;
    }
    
    .search-button {
        width: 100%;
        padding: 0.85rem;
        border-radius: 0 0 18px 18px;
        font-size: 0.85rem;
    }
    
    .listar-hero-title {
        font-size: 2rem;
    }
    
    .listar-hero-subtitle {
        font-size: 1rem;
    }
}

/* 🎯 PREVIEW EXPANDABLE (Fase 2 - Hover - SIMPLIFICADO) */
.preview-expandable {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border: 2px solid transparent;
}

.simulado-card:hover .preview-expandable {
    max-height: 300px;
    opacity: 1;
    border-color: var(--primary-blue);
}

.preview-content {
    padding: 1rem;
}

.preview-section {
    margin-bottom: 1rem;
}

.preview-section:last-child {
    margin-bottom: 0;
}

.preview-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

/* Tópicos */
.topicos-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topico-tag {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    color: var(--primary-blue);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Reviews Simplificadas */
.preview-reviews {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preview-review-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 0.65rem;
    border-radius: 8px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.review-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

.review-username {
    font-size: 0.8rem;
    font-weight: 600;
    color: #1f2937;
}

.review-texto {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
    font-style: italic;
}
/* Preview Actions - Simplificado */
.preview-actions {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-preview-action {
    width: 100%;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-ver-detalhes {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
}

.btn-ver-detalhes:hover {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Animação de entrada simplificada */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.simulado-card:hover .preview-expandable .preview-section {
    animation: slideDown 0.2s ease-out forwards;
}

/* Ajuste do card para expansão */
.simulado-card {
    position: relative;
    transition: var(--transition-smooth);
}

.simulado-card:hover {
    z-index: 10;
    transform: translateY(-8px);
}

/* Mobile: Preview abre com tap */
@media (max-width: 768px) {
    .preview-expandable {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 20px 20px 0 0;
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .simulado-card.preview-open .preview-expandable {
        opacity: 1;
        max-height: 70vh;
    }
}

/*  Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(102, 126, 234, 0.1);
    z-index: 9999;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    width: 0%;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* 🎯 Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6);
}

/* 🎨 Glassmorphism Card Variant */
.card-glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 🌟 Featured Card Highlight */
.simulado-card.featured {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    border: 2px solid var(--primary-blue);
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.simulado-card.featured::before {
    content: '⭐ Destaque';
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1f2937;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 📱 Mobile Optimizations */
@media (max-width: 640px) {
    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .loading-spinner {
        width: 48px;
        height: 48px;
    }
}

/* Mobile Small - 375px (iPhone SE, X) */
@media (max-width: 375px) {
    .listar-hero {
        padding: 2.5rem 1rem 1.5rem;
    }
    
    .listar-hero-title {
        font-size: 1.8rem;
    }
    
    .listar-hero-subtitle {
        font-size: 0.95rem;
    }
    
    .smart-filters {
        padding: 1.5rem 1rem;
    }
    
    .filter-section-title {
        font-size: 1rem;
    }
    
    .filter-pill {
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
    }
    
    .btn-create-simulado {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
}

/* Mobile Extra Small - 360px (Android padrão) */
@media (max-width: 360px) {
    .listar-hero-title {
        font-size: 1.6rem;
    }
    
    .search-input {
        padding: 0.75rem 0.85rem 0.75rem 42px;
        font-size: 0.85rem;
    }
    
    .search-icon {
        left: 12px;
        font-size: 1rem;
    }
    
    .search-button {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .filter-pill {
        padding: 0.5rem 0.85rem;
        font-size: 0.75rem;
    }
    
    .advanced-filters-card {
        padding: 1.5rem 1rem;
    }
    
    .btn-apply-filters,
    .btn-clear-filters {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

