/* XCTVGO Refatorado - CSS Principal */

/* Variáveis CSS */
:root {
    --primary-color: #39D17D;
    --secondary-color: #FF7A2E;
    --accent-color: #B1131B;
    --background-color: #0E0B10;
    --text-color: #FFFFFF;
    --text-muted: #9CA3AF;
    --border-color: #374151;
    --card-bg: #1F2937;
    --hover-bg: #374151;
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Utilitários */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(57, 209, 125, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 122, 46, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

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

.btn-white:hover {
    background: var(--text-muted);
    color: white;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

/* Formulários */
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--card-bg);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(57, 209, 125, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

/* Header */
.header {
    background-color: var(--header-bg-color, #1a1a2e);
    color: var(--header-text-color, #FFFFFF);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--header-text-color, #FFFFFF);
    text-decoration: none;
}

.logo:hover {
    color: var(--header-active-color, #39D17D);
}

.nav a {
    color: var(--header-text-color, #FFFFFF) !important;
}

.nav a:hover {
    color: var(--header-active-color, #39D17D) !important;
}

.nav {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--primary-color);
}


/* Footer */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Responsividade */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .card {
        padding: 1rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -30px, 0);
    }
    70% {
        animation-timing-function: cubic-bezier(0.755, 0.050, 0.855, 0.060);
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0,-4px,0);
    }
}

/* Utilitários de texto */
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.text-muted { color: var(--text-muted); }

/* Utilitários de background */
.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-accent { background-color: var(--accent-color); }
.bg-card { background-color: var(--card-bg); }

/* Utilitários de espaçamento */
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }

/* Utilitários de display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

/* Utilitários de alinhamento */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

/* Utilitários de tamanho */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Utilitários de posicionamento */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Utilitários de overflow */
.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Utilitários de border */
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

/* Utilitários de shadow */
.shadow { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1); }

/* ========================================== */
/* HEADER UNIFICADO - XCTVGO */
/* ========================================== */

.header-fixed {
    background-color: var(--header-bg-color, #1a1a2e);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9998;
}

.header-relative {
    background-color: var(--header-bg-color, #1a1a2e);
    position: relative;
    z-index: 9998;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo img {
    max-height: 50px;
    width: auto;
}

.header-nav-desktop {
    display: none; /* Hidden on mobile */
}

@media (min-width: 768px) {
    .header-nav-desktop {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--header-text-color, #FFFFFF);
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

.cart-link {
    position: relative;
    overflow: visible !important;
}

.cart-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    border-radius: 9999px;
    min-width: 1.5rem !important;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    font-weight: 600;
    padding: 0 0.5rem !important;
    white-space: nowrap !important;
    overflow: visible !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
    width: auto !important;
}

.cart-badge[data-count="0"] {
    opacity: 0.3;
    background: #6b7280;
}

.user-dropdown-container {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    width: 12rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    display: none;
}

.user-dropdown-container:hover .dropdown-menu,
.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
}

.dropdown-item-danger {
    color: #dc2626;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

.btn-register {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    background-color: white;
    color: #2563eb;
    transition: background-color 0.2s;
}

.btn-register:hover {
    background-color: #f3f4f6;
}

.mobile-menu-btn {
    display: block;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--header-text-color, #FFFFFF);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobile Actions Container */
.mobile-actions {
    display: flex;
    align-items: center;
}

/* Desktop Menu Button: hidden by default */
#mobile-menu-btn-desktop {
    display: none;
}

/* Mobile: show mobile actions, hide desktop button */
@media (max-width: 767px) {
    .mobile-actions {
        display: flex !important;
    }
    
    #mobile-menu-btn-desktop {
        display: none !important;
    }
    
    #mobile-menu-btn {
        display: block !important;
    }
}

/* Desktop: hide mobile actions, show desktop button */
@media (min-width: 768px) {
    .mobile-actions {
        display: none !important;
    }
    
    .mobile-menu-btn {
        display: none;
    }
    
    #mobile-menu-btn-desktop {
        display: block !important;
    }
}

.mobile-menu {
    display: none;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem;
    color: var(--header-text-color, #FFFFFF);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.mobile-nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-divider {
    margin: 0.5rem 0;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* ========================================== */
/* MODAL DE CARRINHO */
/* ========================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(145deg, #2A2F36, #1A1F25);
    border-radius: 1rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s;
}

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

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
}

.modal-header h3 i {
    color: var(--primary-color, #39D17D);
    margin-right: 0.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
}

.modal-footer .btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.modal-footer .btn i {
    margin-right: 0.5rem;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #39D17D 0%, #2FB868 100%);
    color: white;
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(57, 209, 125, 0.4);
}

.modal-footer .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.modal-footer .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

/* ============================================================================
   SISTEMA DE ANÚNCIOS/POP-UPS DINÂMICOS
   ============================================================================ */

/* Modal Container */
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.announcement-modal.active {
    opacity: 1;
    pointer-events: all;
}

/* Overlay */
.announcement-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

/* Pop-up Container */
.announcement-popup {
    position: relative;
    border-radius: 1rem;
    border: 2px solid;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Tamanhos */
.announcement-popup.size-small {
    width: 300px;
    min-height: 250px;
}

.announcement-popup.size-medium {
    width: 500px;
    min-height: 400px;
}

.announcement-popup.size-large {
    width: 700px;
    min-height: 500px;
}

.announcement-popup.size-fullscreen {
    width: 90vw;
    height: 90vh;
    min-height: auto;
}

/* Posições */
.announcement-popup.position-center {
    /* Já está centrado pelo flex */
}

.announcement-modal.position-top-right .announcement-popup {
    position: absolute;
    top: 2rem;
    right: 2rem;
}

.announcement-modal.position-top-left .announcement-popup {
    position: absolute;
    top: 2rem;
    left: 2rem;
}

.announcement-modal.position-bottom-right .announcement-popup {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
}

.announcement-modal.position-bottom-left .announcement-popup {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
}

.announcement-modal.position-bottom-center .announcement-popup {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

/* Botão Fechar */
.announcement-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.announcement-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Conteúdo */
.announcement-content {
    padding: 2rem;
    text-align: center;
}

.announcement-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.announcement-title {
    font-size: 1.75rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.announcement-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.announcement-button {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.announcement-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsivo */
@media (max-width: 768px) {
    .announcement-popup.size-small,
    .announcement-popup.size-medium,
    .announcement-popup.size-large {
        width: 90vw !important;
        max-width: 400px;
    }
    
    .announcement-popup.size-fullscreen {
        width: 95vw;
        height: 95vh;
    }
    
    .announcement-modal.position-top-right .announcement-popup,
    .announcement-modal.position-top-left .announcement-popup,
    .announcement-modal.position-bottom-right .announcement-popup,
    .announcement-modal.position-bottom-left .announcement-popup {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
    }
    
    .announcement-content {
        padding: 1.5rem;
    }
    
    .announcement-title {
        font-size: 1.25rem;
    }
    
    .announcement-text {
        font-size: 0.875rem;
    }
    
    .announcement-button {
        width: 100%;
        padding: 0.75rem;
    }
}



