/* Root Variables - Atleta Inscrito Theme */
:root {
    --primary: #5d3b9d;
    --primary-dark: #4a2f7e;
    --primary-light: #7b5bb8;
    --secondary: #ff8c00;
    --secondary-dark: #e67e00;
    --accent: #ffd700;
    --success: #06d6a0;
    --danger: #ef476f;
    --bs-primary: #5d3b9d;
    --bs-primary-rgb: 93, 59, 157;
}

/* Custom Fonts */
body {
    font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.fw-bold {
    font-family: "Poppins", sans-serif;
}

/* Navbar Custom Styles */
.navbar {
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-family: "Poppins", sans-serif;
}

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

.nav-link {
    font-weight: 500;
    color: #666 !important;
    position: relative;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.btn-search {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f8f9fa;
    color: var(--primary);
    border: none;
    transition: all 0.3s ease;
}

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

.navbar-toggler {
    border: none;
    padding: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Mobile Menu */
.mobile-logo {
    height: 40px;
    width: auto;
}

.mobile-nav-link {
    padding: 16px 24px;
    color: #666;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(93, 59, 157, 0.05);
    color: var(--primary);
    border-left-color: var(--primary);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f5f0ff 0%, #fff5e6 100%);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(
        circle,
        rgba(93, 59, 157, 0.1) 0%,
        transparent 70%
    );
    border-radius: 50%;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(255, 140, 0, 0.1) 0%,
        transparent 70%
    );
    border-radius: 50%;
}

.container {
    position: relative;
    z-index: 1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item {
    animation: fadeInUp 0.8s ease-out;
    text-align: center;
}

.stat-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    color: white;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-dark)
    ) !important;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(93, 59, 157, 0.3);
}

.btn-secondary {
    background: #f8f9fa !important;
    color: var(--primary) !important;
    border: 2px solid #e5e7eb !important;
}

.btn-secondary:hover {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}

/* Categories Section */
.categories-section {
    position: relative;
}

.category-carousel {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    justify-content: center;
    padding-top: 8px;
    margin-top: -8px;
}

.category-carousel::-webkit-scrollbar {
    display: none;
}

.category-item {
    min-width: 160px; /* Reduz um pouco no mobile */
    flex: 0 0 auto; /* Impede que os itens encolham */
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.category-item:hover,
.category-item.active {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(93, 59, 157, 0.16);
    border-color: var(--primary);
}

.category-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        rgba(93, 59, 157, 0.1),
        rgba(255, 140, 0, 0.1)
    );
    border-radius: 50%;
    transition: all 0.3s ease;
}

.category-item:hover .category-icon,
.category-item.active .category-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.category-icon svg {
    width: 40px;
    height: 40px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.category-item:hover .category-icon svg,
.category-item.active .category-icon svg {
    color: white;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    z-index: 10;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn.prev {
    left: 0;
}

.carousel-btn.next {
    right: 0;
}

.carousel-btn:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateY(-50%) scale(1.1);
}

/* Event Cards */
.event-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(93, 59, 157, 0.16) !important;
    border-color: var(--primary);
}

.event-banner {
    height: 200px;
    overflow: hidden;
}

.event-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.badge.bg-primary-light {
    background: rgba(93, 59, 157, 0.1) !important;
    color: var(--primary);
}

.event-details svg {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    display: block;
}

.text-primary {
    color: var(--primary) !important;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
    border-color: #e5e7eb;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
}

.pagination .page-item.disabled .page-link {
    opacity: 0.5;
}

/* Footer */
.footer-logo {
    height: 40px;
    width: auto;
}

.footer a {
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--secondary) !important;
    padding-left: 8px;
}

.btn-outline-light.btn-sm.rounded-circle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.btn-outline-light.btn-sm.rounded-circle:hover {
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--secondary)
    ) !important;
    border-color: transparent !important;
    transform: translateY(-4px);
}

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

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(93, 59, 157, 0.25);
}

.input-group-text {
    border-color: #e5e7eb;
}

.global-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6); /* fundo escuro */
    z-index: 9999; /* acima de tudo */
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-content {
    text-align: center;
    color: #fff;
}

/* Hidden class for filtering */
.d-none-filter {
    display: none !important;
}

/* Icon Sizes */
svg {
    width: 20px;
    height: 20px;
}

/* ========================================
   EVENT DETAIL PAGE STYLES
   ======================================== */

/* Event Image Carousel */
.event-image-carousel .carousel-inner {
    height: 400px;
}

.event-image-carousel .carousel-item img {
    height: 400px;
    object-fit: cover;
}

.event-image-carousel .carousel-control-prev,
.event-image-carousel .carousel-control-next {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.event-image-carousel .carousel-control-prev {
    left: 20px;
}

.event-image-carousel .carousel-control-next {
    right: 20px;
}

/* Event Header */
.event-header {
    animation: fadeInUp 0.8s ease-out;
}

.event-info-grid {
    display: grid;
    gap: 24px;
    margin-top: 24px;
}

.event-info-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.event-info-item:hover {
    background: rgba(93, 59, 157, 0.05);
    transform: translateX(8px);
}

.event-info-item i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.event-info-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 4px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-info-item p {
    margin: 0;
    color: #333;
    font-size: 16px;
}

/* Countdown Timer */
.countdown-section {
    background: linear-gradient(
        135deg,
        rgba(93, 59, 157, 0.05),
        rgba(255, 140, 0, 0.05)
    );
    border: 2px solid rgba(93, 59, 157, 0.1);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.countdown-label {
    font-size: 14px;
    color: #6c757d;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Kit Selection Cards */
.kit-selection-section {
    animation: fadeInUp 0.8s ease-out;
}

.kit-card {
    padding: 32px;
    border: 3px solid #e5e7eb;
    border-radius: 16px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    height: 100%;
}

.kit-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 32px rgba(93, 59, 157, 0.16);
    transform: translateY(-8px);
}

.kit-card.selected {
    border-color: var(--primary);
    background: rgba(93, 59, 157, 0.02);
    box-shadow: 0 8px 32px rgba(93, 59, 157, 0.16);
}

.kit-card.featured {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(93, 59, 157, 0.12);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kit-header {
    margin-bottom: 24px;
}

.kit-header h4 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--primary);
}

.kit-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.kit-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.kit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.kit-item i {
    width: 20px;
    height: 20px;
}

/* Category Selection Cards */
.category-card {
    display: flex;
    flex-direction: column; /* Mudança importante */
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.category-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 16px rgba(93, 59, 157, 0.12);
    transform: translateX(8px);
}

.category-card.selected {
    border-color: var(--primary);
    background: rgba(93, 59, 157, 0.05);
}

.category-footer {
    width: 100%;
}

.category-info h5 {
    font-size: 18px;
    color: var(--primary);
}

.category-price .price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* Content Boxes */
.content-box {
    padding: 32px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
}

.content-box p {
    color: #4b5563;
    line-height: 1.8;
}

.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    border-bottom: 1px solid #e5e7eb;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
    font-size: 18px;
}

.event-details-list {
    display: grid;
    gap: 16px;
}

.detail-item {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.detail-item strong {
    color: var(--primary);
    margin-right: 8px;
}

/* Price Table */
.price-table {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.price-header {
    font-weight: 700;
    color: var(--primary);
    font-size: 18px;
}

.price-details {
    text-align: right;
    font-size: 16px;
}

.price-details div {
    margin-bottom: 4px;
}

.price-details div:last-child {
    margin-bottom: 0;
}

/* Kit Item Badges */
.kit-item-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
}

.kit-item-badge i {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.kit-item-badge span {
    font-weight: 600;
    color: #333;
}

.kit-item-badge small {
    font-size: 11px;
    color: #6c757d;
}

/* Sidebar */
.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.quick-actions-card,
.event-summary-card {
    padding: 24px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.summary-item i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.summary-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 4px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-item p {
    margin: 0;
    color: #333;
    font-size: 14px;
}

/* Alert Boxes */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert i {
    flex-shrink: 0;
    margin-top: 2px;
}

.modal-backdrop {
    display: none !important; /* This will remove the background */
}

/* Responsive Adjustments */

/* ========================================
   CHECKOUT PAGE STYLES - ADICIONAR AO site-style.css
   ======================================== */

.checkout-section {
    background: linear-gradient(135deg, #f5f0ff 0%, #fff5e6 100%);
    min-height: 80vh;
}

.checkout-form-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Age Verification Buttons */
.age-verification {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-age {
    flex: 1;
    padding: 16px 24px;
    font-weight: 600;
    font-size: 14px;
    border: 2px solid #e5e7eb;
    background: #f8f9fa;
    color: #666;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-age:hover {
    border-color: var(--primary);
    background: rgba(93, 59, 157, 0.05);
    color: var(--primary);
}

.btn-age.active {
    background: #333;
    color: white;
    border-color: #333;
}

/* CPF Section */
.cpf-section .form-control-lg {
    background: #f8f9fa;
    border: 2px solid #e5e7eb;
    padding: 16px 20px;
    font-size: 18px;
}

.cpf-section .form-control-lg:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(93, 59, 157, 0.15);
}

/* Form Controls */
#checkoutForm .form-control,
#checkoutForm .form-select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

#checkoutForm .form-control:focus,
#checkoutForm .form-select:focus {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(93, 59, 157, 0.15);
}

#checkoutForm .form-label {
    color: #333;
    margin-bottom: 8px;
    font-size: 14px;
}

/* Radio Buttons */
.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(93, 59, 157, 0.15);
}

/* Purchase Summary Card */
.purchase-summary-card {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 100px;
}

.purchase-summary-card h3 {
    color: var(--primary);
    font-size: 22px;
}

.event-title {
    color: #333;
    font-size: 16px;
    font-weight: 600;
    text-transform: capitalize;
    line-height: 1.5;
}

.summary-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    gap: 16px;
}

.detail-label {
    color: #6c757d;
    font-size: 14px;
    flex-shrink: 0;
}

.detail-value {
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-align: right;
}

.price-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #333;
    font-size: 14px;
}

.total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.total-label {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.total-value {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* PCD Field */
#campoPCD {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.show-animated {
    animation: slideDown 0.4s ease-out;
}

#toast-container > .toast {
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .stat-number {
        font-size: 32px;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .hero-stats {
        gap: 32px;
    }

    .category-icon {
        width: 60px;
        height: 60px;
    }

    .category-icon svg {
        width: 30px;
        height: 30px;
    }

    .category-carousel {
        justify-content: flex-start;
    }

    .checkout-form-card {
        padding: 24px;
    }

    .purchase-summary-card {
        padding: 24px;
    }

    .age-verification {
        flex-direction: column;
    }

    .btn-age {
        width: 100%;
    }

    .total-value {
        font-size: 24px;
    }

    .event-image-carousel .carousel-inner,
    .event-image-carousel .carousel-item img {
        height: 250px;
    }

    .countdown-timer {
        gap: 12px;
    }

    .countdown-item {
        min-width: 60px;
    }

    .countdown-number {
        font-size: 32px;
    }

    .countdown-label {
        font-size: 11px;
    }

    .kit-card {
        padding: 24px;
    }

    .price-value {
        font-size: 24px;
    }

    .content-box {
        padding: 20px;
    }

    .event-info-item {
        padding: 16px;
    }

    .price-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .price-details {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 991px) {
    .sidebar-sticky {
        position: relative;
        top: 0;
        margin-top: 40px;
    }

    .purchase-summary-card {
        position: relative;
        top: 0;
        margin-top: 32px;
    }
}
