/* ==========================================
   🔥 CARROSSEL ISOLADO - NAMESPACE cr-
   NÃO CONFLITA COM imagens.css NEM NADA
   ========================================== */

/* SECTION */
.cr-section {
    width: 100%;
    margin: 0 0 30px 0;
    overflow: hidden;
}

/* HEADER (título) */
.cr-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px 12px 50px;
}

@media (max-width: 767px) {
    .cr-header {
        padding: 0 20px 10px 20px;
    }
}

.cr-title-section {
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(90deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 767px) {
    .cr-title-section {
        font-size: 22px;
    }
}

/* WRAPPER (posiciona setas) */
.cr-wrapper {
    position: relative;
}

/* TRACK (scroll horizontal) */
.cr-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 8px 50px 16px 50px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.cr-track::-webkit-scrollbar {
    display: none;
}

.cr-track::after {
    content: '';
    flex: 0 0 5px;
}

@media (max-width: 767px) {
    .cr-track {
        padding: 8px 20px 16px 20px;
        gap: 10px;
    }
}

/* SETAS */
.cr-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 9999;
    width: 50px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    opacity: 1;
    pointer-events: auto;
}

.cr-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.cr-btn:hover svg {
    transform: scale(1.3);
}

.cr-btn svg {
    transition: transform 0.2s ease;
    pointer-events: none;
}

.cr-btn-left {
    left: 0;
}

.cr-btn-right {
    right: 0;
}

@media (max-width: 600px) {
    .cr-btn {
        display: none;
    }
}

/* CARDS */
.cr-link {
    text-decoration: none;
    color: inherit;
    display: block;
    flex: 0 0 auto;
    width: 155px;
    scroll-snap-align: start;
    cursor: pointer;
    position: relative;
}

@media (min-width: 600px) {
    .cr-link {
        width: 175px;
    }
}

@media (min-width: 900px) {
    .cr-link {
        width: 195px;
    }
}

@media (min-width: 1200px) {
    .cr-link {
        width: 210px;
    }
}

@media (min-width: 1600px) {
    .cr-link {
        width: 230px;
    }
}

.cr-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    height: 100%;
}

.cr-card:hover {
    transform: translateY(-6px) scale(1.04);
    border-color: #444;
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
    z-index: 10;
    position: relative;
}

.cr-img-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-bottom: 1px solid #222;
}

.cr-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cr-card:hover .cr-img-box img {
    transform: scale(1.08);
}

/* LOCK OVERLAY */
.cr-locked .cr-card {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.cr-locked:hover .cr-card {
    opacity: 0.85;
}

.cr-lock {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

/* CONTEÚDO */
.cr-content {
    padding: 12px 14px;
}

.cr-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cr-author {
    color: #888;
    font-size: 11px;
    margin-bottom: 8px;
}

.cr-desc {
    color: #aaa;
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cr-mode {
    color: #666;
    font-size: 10px;
    margin-bottom: 10px;
    padding: 5px 0;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.cr-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cr-runs {
    color: #ff4757;
    font-size: 10px;
    font-weight: 500;
}

.cr-official {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 9px;
}

.cr-official::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 13px;
    height: 13px;
    border: 1px solid #666;
    border-radius: 50%;
    font-size: 8px;
}

/* MODAL BLOQUEIO */
.cr-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.cr-modal-box {
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 32px 28px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cr-modal-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.cr-modal-title {
    color: #fff;
    margin: 0 0 8px;
    font-size: 20px;
}

.cr-modal-text {
    color: #aaa;
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
}

.cr-modal-text strong {
    color: #00d4ff;
}

.cr-modal-btn {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    font-weight: 600;
}
