/* 
 * My Tickets - CSS Principal
 * Estilo baseado em "Ticket Hub"
 * Utiliza variáveis CSS para fácil customização de tema
 */

/* ==========================================
   VARIÁVEIS CSS - :root
   ========================================== */
:root {
    /* Cores principais */
    --mt-color-primary: #2d2a6e; /* Cor institucional/roxa */
    --mt-color-accent: #FF0000; /* Vermelho para destaques/promoções */
    --mt-color-hover: #FD961E; /* Laranja para hover */
    
    /* Backgrounds */
    --mt-bg-light: #f6f6f6; /* Fundo geral */
    --mt-bg-white: #ffffff; /* Fundo branco */
    
    /* Textos */
    --mt-text-main: #1E1F20; /* Texto principal */
    --mt-text-muted: #45474F; /* Texto secundário */
    
    /* Transições */
    --mt-transition: all 0.3s ease;
    
    /* Bordas e sombras */
    --mt-border-radius: 8px;
    --mt-box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   ESTILOS GERAIS
   ========================================== */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--mt-text-main);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--mt-color-primary);
    transition: var(--mt-transition);
}

a:hover {
    color: var(--mt-color-hover);
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--mt-color-primary);
}

.section-subtitle {
    color: var(--mt-text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Sobrescrevendo estilos do Bootstrap para botões */
.btn {
    border-radius: 50px;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    transition: var(--mt-transition);
}

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

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--mt-color-hover) !important;
    border-color: var(--mt-color-hover) !important;
}

.btn-outline-primary {
    color: var(--mt-color-primary);
    border-color: var(--mt-color-primary);
}

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

/* ==========================================
   TOP BAR
   ========================================== */
.top-bar {
    background-color: var(--mt-color-primary);
    color: var(--mt-bg-white);
    font-size: 0.875rem;
}

.top-bar a {
    color: var(--mt-bg-white);
    opacity: 0.8;
    transition: var(--mt-transition);
}

.top-bar a:hover {
    opacity: 1;
}

.top-bar-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   HEADER STICKY
   ========================================== */
.site-header {
    background-color: var(--mt-bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 0.5rem 0;
}

.navbar-brand {
    padding: 0;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--mt-text-main);
    padding: 1rem 1.2rem;
    transition: var(--mt-transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--mt-color-primary);
}

.header-icons a {
    color: var(--mt-text-main);
    font-size: 1.2rem;
    transition: var(--mt-transition);
    position: relative;
}

.header-icons a:hover {
    color: var(--mt-color-primary);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--mt-color-accent);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    position: relative;
    margin-bottom: 0;
}

.hero-slide {
    height: 600px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 100px 0;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

/* ==========================================
   MARQUEE SECTION
   ========================================== */
.marquee-section {
    background-color: #000;
    color: white;
    overflow: hidden;
    padding: 12px 0;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    padding-left: 100%;
}

.marquee-content span {
    display: inline-block;
    margin-right: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.marquee-content i {
    color: var(--mt-color-accent);
    margin-right: 5px;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

/* ==========================================
   CATEGORIES SECTION
   ========================================== */
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--mt-bg-white);
    border-radius: var(--mt-border-radius);
    box-shadow: var(--mt-box-shadow);
    padding: 30px 15px;
    text-align: center;
    transition: var(--mt-transition);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-icon {
    width: 60px;
    height: 60px;
    background-color: var(--mt-bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.category-icon i {
    font-size: 24px;
    color: var(--mt-color-primary);
}

.category-card h3 {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--mt-text-main);
    transition: var(--mt-transition);
}

.category-card:hover h3 {
    color: var(--mt-color-primary);
}

/* ==========================================
   FEATURED EVENTS SECTION
   ========================================== */
.event-card {
    background-color: var(--mt-bg-white);
    border-radius: var(--mt-border-radius);
    overflow: hidden;
    box-shadow: var(--mt-box-shadow);
    transition: var(--mt-transition);
    height: 100%;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--mt-transition);
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--mt-color-accent);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
    min-width: 50px;
}

.event-day {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 500;
}

.event-content {
    padding: 20px;
}

.event-meta {
    color: var(--mt-text-muted);
    font-size: 0.875rem;
    margin-bottom: 10px;
}

.event-meta i {
    margin-right: 5px;
    color: var(--mt-color-primary);
}

.event-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    line-height: 1.4;
    color: var(--mt-text-main);
    transition: var(--mt-transition);
}

.event-card:hover .event-title {
    color: var(--mt-color-primary);
}

.event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.event-price {
    font-size: 0.875rem;
    color: var(--mt-text-muted);
}

.event-price span {
    font-weight: 700;
    color: var(--mt-color-primary);
    font-size: 1.1rem;
}

/* ==========================================
   COUNTDOWN SECTION
   ========================================== */
.countdown-section {
    position: relative;
    background-color: #17143a;
    color: white;
}

.countdown-container {
    padding: 30px;
    border-radius: var(--mt-border-radius);
}

.countdown-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.countdown-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.countdown-timer {
    display: flex;
    margin-bottom: 30px;
    gap: 15px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--mt-color-primary);
    border-radius: 10px;
    padding: 15px;
    min-width: 80px;
}

.countdown-item span {
    display: block;
}

.countdown-item .days,
.countdown-item .hours,
.countdown-item .minutes,
.countdown-item .seconds {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.countdown-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonial-card {
    background-color: var(--mt-bg-white);
    border-radius: var(--mt-border-radius);
    padding: 30px;
    box-shadow: var(--mt-box-shadow);
    height: 100%;
}

.testimonial-rating {
    margin-bottom: 20px;
    color: #ffc107; /* Cor amarela das estrelas */
}

.testimonial-text {
    font-style: italic;
    color: var(--mt-text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
    min-height: 80px;
}

.testimonial-user {
    display: flex;
    align-items: center;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-info h4 {
    font-size: 1rem;
    margin: 0 0 5px 0;
}

.testimonial-info span {
    font-size: 0.8rem;
    color: var(--mt-text-muted);
}

/* ==========================================
   NEWSLETTER SECTION
   ========================================== */
.newsletter-form .form-control {
    height: 50px;
    border-radius: 50px 0 0 50px;
    padding-left: 20px;
    border-right: none;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    height: 50px;
}

.form-text {
    font-size: 0.75rem;
    color: var(--mt-text-muted);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background-color: #17143a;
    color: var(--mt-bg-white);
}

.footer-links h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--mt-bg-white);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
    display: block;
    transition: var(--mt-transition);
}

.footer-links a:hover {
    color: var(--mt-bg-white);
    padding-left: 5px;
}

.footer-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--mt-bg-white);
    margin-right: 10px;
    transition: var(--mt-transition);
}

.footer-social a:hover {
    background-color: var(--mt-color-hover);
    color: var(--mt-bg-white);
    transform: translateY(-3px);
}

.payment-methods {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
}

hr {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   SIDEBAR / OFFCANVAS MENU
   ========================================== */
.sidebar-header {
    font-weight: 700;
    color: var(--mt-color-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    margin-bottom: 1.5rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    color: var(--mt-text-main);
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--mt-transition);
}

.sidebar-item:hover {
    color: var(--mt-color-primary);
    padding-left: 5px;
}

.sidebar-item i {
    color: var(--mt-color-primary);
}

.sidebar-auth {
    margin-top: 2rem;
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */
@media (max-width: 991.98px) {
    .hero-slide {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .countdown-timer {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .countdown-item {
        min-width: 70px;
        margin-bottom: 10px;
    }
}

@media (max-width: 767.98px) {
    .hero-slide {
        height: 350px;
    }
    
    .hero-content {
        padding: 50px 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .testimonial-text {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .hero-slide {
        height: 300px;
    }
    
    .hero-content {
        padding: 30px 0;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}
