:root {
    --primary-color: #FF4B91;
    --primary-hover: #E6337C;
    --secondary-color: #FF85A1;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --bg-color: #F9FAFB;
    --bg-card: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.dark {
    --primary-color: #FF4B91;
    --primary-hover: #FF85A1;
    --secondary-color: #E6337C;
    --text-color: #F9FAFB;
    --text-light: #D1D5DB;
    --bg-color: #111827;
    --bg-card: #1F2937;
    --border-color: #374151;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.2s, color 0.2s;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: background-color 0.2s;
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar .theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
}

.navbar .search-input {
    border-radius: 9999px;
    background-color: #f3f4f6;
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    width: 100%;
    font-size: 0.875rem;
    transition: border-color 0.2s;
    color: var(--text-color);
}

.dark .navbar .search-input {
    background-color: #1F2937;
    border-color: #4B5563;
}

.navbar .search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.navbar .search-input::placeholder {
    color: var(--text-light);
}

.page-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 5rem 1rem 2rem;
    min-height: 100vh;
}

.main-banner {
    background-color: var(--bg-card);
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px var(--shadow-color);
    overflow: hidden;
    margin-bottom: 2rem;
}

.main-banner h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.main-banner p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.main-banner .banner-image {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    overflow: hidden;
}

.main-banner .banner-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s;
}

.main-banner .banner-image:hover img {
    transform: scale(1.02);
}

.catalog-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.category-filter {
    background-color: var(--bg-card);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.category-filter:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.category-filter.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.video-card {
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: var(--bg-card);
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    display: block;
    text-decoration: none;
    height: 100%;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.video-card .thumb-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-card .thumb-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    border-radius: 0.5rem 0.5rem 0 0;
}

.video-card:hover .thumb-container img {
    transform: scale(1.05);
}

/* Skeletons */
.skeleton-card {
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: var(--bg-card);
    box-shadow: 0 2px 4px var(--shadow-color);
    height: 100%;
}

.skeleton-thumb {
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0.5rem 0.5rem 0 0;
}

.dark .skeleton-thumb {
    background: linear-gradient(90deg, #4B5563 25%, #374151 50%, #4B5563 75%);
    background-size: 200% 100%;
}

.skeleton-content {
    padding: 1rem;
}

.skeleton-title {
    height: 15px;
    width: 80%;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.dark .skeleton-title {
    background: linear-gradient(90deg, #4B5563 25%, #374151 50%, #4B5563 75%);
    background-size: 200% 100%;
}

.skeleton-price {
    height: 18px;
    width: 40%;
    margin: 10px auto;
    border-radius: 4px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.dark .skeleton-price {
    background: linear-gradient(90deg, #4B5563 25%, #374151 50%, #4B5563 75%);
    background-size: 200% 100%;
}

.skeleton-button {
    height: 38px;
    width: 90%;
    margin: 10px auto;
    border-radius: 50px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.dark .skeleton-button {
    background: linear-gradient(90deg, #4B5563 25%, #374151 50%, #4B5563 75%);
    background-size: 200% 100%;
}

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

/* Estado de carregamento e mensagens */
.loading-container {
    text-align: center;
    padding: 20px;
    font-size: 1rem;
    color: var(--text-color);
}

.loading-spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 75, 145, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.video-card .card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
    z-index: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.video-card .badge-popular {
    background-color: #FF4B91;
}

.video-card .badge-views {
    background-color: rgba(0, 0, 0, 0.6);
    top: 10px;
    left: 10px;
    right: auto;
}

.video-card .card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.video-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--text-color);
}

.video-card .card-price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.video-card .card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Botões */
.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.3s, transform 0.1s;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-secondary:hover {
    background-color: rgba(255, 75, 145, 0.1);
}

/* Seções */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

/* FAQ Section */
.faq-section {
    margin: 3rem 0;
}

.faq-item {
    background-color: var(--bg-card);
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 4px var(--shadow-color);
}

.faq-question {
    padding: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-answer {
    padding: 0 1rem 1rem;
    color: var(--text-light);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* Trailer Modal */
.trailer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background-color: var(--bg-card);
    border-radius: 0.5rem;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-color);
}

.close-modal {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
}

.modal-body {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
}

.modal-body iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 1268px) {
    #compra-segura {
        width: 100%;
    }
    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .page-container {
        padding: 5rem 0.75rem 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
        margin: 1.5rem 0 0.75rem;
    }
    
    .video-card .card-title {
        font-size: 0.9rem;
    }
    
    .btn-primary, .btn-secondary {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
#compra-segura {
    width: 85%;
}
/* Utilitários */
.hidden {
    display: none !important;
}

/* Estilos para o botão do botão "Comprar Agora" */
.btn-purchase {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.3s, transform 0.1s;
    text-decoration: none;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-purchase:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-purchase:active {
    transform: translateY(0);
}
