/* CSS Otimizado para Minutos Pagantes */
:root {
    --primary-color: #000000;
    --secondary-color: #000000;
    --tertiary-color: #32751f;
    --button-color: #167e18;
    --notices-color: #319400;
}

* {
    font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: linear-gradient(135deg, #000000 0%, #000000 100%);
    color: #fff;
    min-height: 100vh;
}

.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.appHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
}

.appHeader .left img {
    max-width: 150px;
    max-height: 50px;
}

.appHeader .right .btn {
    background-color: #00CE2F;
    color: black;
    padding: 5px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
}

/* Main Content */
#appCapsule {
    padding-top: 80px;
    padding-bottom: 100px;
}

/* Carousel */
.carousel {
    position: relative;
    margin: 20px 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 200px; /* Altura fixa para o carrossel */
}

.carousel-track {
    display: flex;
    width: 300%; /* 3 imagens lado a lado */
    height: 100%;
    transition: transform 1.5s ease-in-out;
}

.carousel-track.reset {
    transition: transform 0.3s ease-out;
}

.carousel-item {
    flex: 0 0 33.333%; /* Cada item ocupa 1/3 da largura total */
    width: 33.333%;
    height: 100%;
    position: relative;
}

.carousel-item.active {
    /* Removido pois agora usamos transform no track */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    display: block;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    text-decoration: none;
}

.carousel-control-prev {
    left: 15px;
}

.carousel-control-next {
    right: 15px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 206, 47, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    font-size: 18px;
    font-weight: bold;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background: #00CE2F;
    border-color: #00CE2F;
    transform: scale(1.2);
}

.carousel-indicators button:hover {
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

/* Minutos Pagantes Section */
.section {
    padding: 20px 0;
}

.custom-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(45deg, #00CE2F, #32751f);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 206, 47, 0.3);
}

/* Game Images */
.game-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.game-link {
    position: relative;
    display: block;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    text-decoration: none !important;
}

.game-link:hover {
    transform: scale(1.05);
    text-decoration: none !important;
}

.game-link img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Progress bars */
.progress {
    height: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-bar {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    transition: width 0.3s ease;
}

.bg-success { background: linear-gradient(45deg, #28a745, #20c997); }
.bg-yellow { background: linear-gradient(45deg, #ffc107, #fd7e14); }
.bg-danger { background: linear-gradient(45deg, #dc3545, #e83e8c); }

/* Game Info Cards */
.game-info {
    background: rgba(0, 206, 47, 0.1);
    border: 1px solid #00CE2F;
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.8em;
    text-align: center;
    color: white;
}

/* Bottom Menu */
.appBottomMenu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.appBottomMenu .item {
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 5px;
    transition: transform 0.3s ease;
}

.appBottomMenu .item:hover {
    transform: translateY(-3px);
}

.appBottomMenu img {
    max-height: 30px;
    margin-bottom: 5px;
}

/* Notifications */
.all-notifications {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.notification {
    display: inline-flex;
    align-items: center;
    padding: 5px 15px;
    margin: 0 10px;
    background: rgba(0, 206, 47, 0.2);
    border-radius: 20px;
    font-size: 12px;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Responsive */
@media (max-width: 768px) {
    .game-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
    
    .appHeader .right .btn {
        font-size: 10px;
        padding: 3px 10px;
    }
}

/* Utilities */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.text-center { text-align: center !important; }
.text-white { color: white !important; }
.text-success { color: #28a745 !important; }
.fw-bold { font-weight: bold !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.rounded { border-radius: 0.375rem !important; }
.shadow { box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important; }

/* Loading optimization */
img {
    loading: lazy;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}