/* =====================================================
   MOD CARD v2 — Mobile-First Design
   Ubicación: src/styles/components/mod-card.css
   ===================================================== */

/* --- Card Container --- */
.mod-card-v2 {
    background: #121218;
    border: 1px solid rgba(0, 255, 136, 0.12);
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    animation: cardFadeIn 0.5s ease forwards;
    opacity: 0;
}

.mod-card-v2:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.15);
    border-color: rgba(0, 255, 136, 0.3);
}

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

/* --- Top Row: Icon + Slider --- */
.mod-card-v2__top {
    display: flex;
    gap: 0;
    height: 148px;
}

/* Character Icon — left column */
.mod-card-v2__icon {
    flex: 0 0 38%;
    position: relative;
    overflow: hidden;
    background: #0a0a10;
}

.mod-card-v2__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.mod-card-v2:hover .mod-card-v2__icon img {
    transform: scale(1.06);
}

/* Status badge over the icon */
.mod-card-v2__status {
    position: absolute;
    bottom: 130px;
    left: 5px;
    background: rgba(226, 247, 36, 0.92);
    color: #000;
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 5px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}

.mod-card-v2__status.colab {
    background: rgba(219, 25, 25, 0.92); /* naranja */
    color: #000;
}

.mod-card-v2__status.rejected {
    background: rgba(255, 62, 128, 0.92);
    color: #fff;
}

/* Image Slider — right column */
.mod-card-v2__slider {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #0d0d14;
}

.mod-card-v2__slides {
    display: flex;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.mod-card-v2__slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.mod-card-v2__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slide gradient overlay */
.mod-card-v2__slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 50%,
        rgba(10, 10, 18, 0.6) 100%
    );
    pointer-events: none;
}

/* Slider Controls */
.mod-card-v2__ctrl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: background 0.2s ease, transform 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.mod-card-v2__ctrl:hover,
.mod-card-v2__ctrl:active {
    background: rgba(0, 255, 136, 0.8);
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.mod-card-v2__ctrl--prev { left: 6px; }
.mod-card-v2__ctrl--next { right: 6px; }

/* Dots */
.mod-card-v2__dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 5;
}

.mod-card-v2__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
}

.mod-card-v2__dot.active {
    background: #00ff88;
    transform: scale(1.3);
}

/* Divider line */
.mod-card-v2__divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,136,0.2), transparent);
    margin: 0 1rem;
}

/* --- Body --- */
.mod-card-v2__body {
    padding: 0.9rem 1rem 0.0rem;
}

.mod-card-v2__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.mod-card-v2__title {
    font-size: 1rem;
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1.2;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mod-card-v2__cat {
    font-size: 0.65rem;
    font-weight: 600;
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.25);
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.mod-card-v2__desc {
    font-size: 0.78rem;
    color: rgba(180, 180, 200, 0.75);
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

/* Stats row */
.mod-card-v2__stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.1rem;
}

.mod-card-v2__stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: rgba(160,160,180,0.8);
}

.mod-card-v2__stat i {
    font-size: 0.65rem;
    color: #00ff88;
}

.mod-card-v2__date {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: rgba(140,140,160,0.7);
    margin-left: auto;
}

.mod-card-v2__date i {
    font-size: 0.65rem;
}

/* --- Footer --- */
.mod-card-v2__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem 0.9rem;
    gap: 0.75rem;
}

.mod-card-v2__how {
    font-size: 0.72rem;
    color: #5b9bd5;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.mod-card-v2__how:hover { color: #7ab8ef; }

.mod-card-v2__dl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #00ff88, #00cc6a);
    color: #000;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    flex: 1;
    justify-content: center;
    max-width: 160px;
}

.mod-card-v2__dl:hover,
.mod-card-v2__dl:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.35);
}

.mod-card-v2__dl.disabled {
    background: linear-gradient(135deg, #3a3a4a, #2a2a38);
    color: rgba(255,255,255,0.35);
    cursor: not-allowed;
}

.mod-card-v2__dl.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ====================================================
   GRID OVERRIDE: single column on mobile for v2 cards
   ==================================================== */
.cards-grid:has(.mod-card-v2) {
    grid-template-columns: 1fr;
    max-width: 480px;
}

@media (min-width: 600px) {
    .cards-grid:has(.mod-card-v2) {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }
    

    .mod-card-v2__top {
        height: 160px;
    }
}

@media (min-width: 1025px) {
    .cards-grid:has(.mod-card-v2) {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }
    .mod-card-v2__status {
        position: absolute;
        bottom: 5px;
        left: 4px;
        background: rgba(226, 247, 36, 0.92);
        color: #000;
        font-size: 0.6rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        padding: 2px 5px;
        border-radius: 20px;
        backdrop-filter: blur(4px);
        white-space: nowrap;
    }
    .mod-card-v2__top {
        height: 170px;
    }
}


/* Light mode support */
.light-mode .mod-card-v2 {
    background: #ffffff;
    border-color: rgba(0, 180, 100, 0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.light-mode .mod-card-v2__title { color: #111; }
.light-mode .mod-card-v2__desc  { color: rgba(60,60,80,0.75); }
.light-mode .mod-card-v2__stat  { color: rgba(80,80,100,0.8); }
.light-mode .mod-card-v2__date  { color: rgba(80,80,100,0.7); }
.light-mode .mod-card-v2__icon  { background: #f0f0f5; }
