/* ==========================================
   ESTILOS GAINOVO - DASHBOARD OPORTUNIDADES
   Basado en la estética de Camelot Swap
   ========================================== */

.gno-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ========== HEADER ========== */
.gno-header {
    text-align: center;
    margin-bottom: 30px;
    color: #ffffff;
}

.gno-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    background: linear-gradient(135deg, #167BFF, #4a9eff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gno-header p {
    color: #ffffff;
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
}

/* ========== FILTROS ========== */
.gno-filtros {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.gno-filtros button {
    padding: 10px 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gno-filtros button:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.gno-filtros button.active {
    background: linear-gradient(135deg, #0F52AA, #167BFF);
    color: #ffffff;
    border-color: #167BFF;
    box-shadow: 0 4px 20px rgba(15, 82, 170, 0.3);
}

/* ========== GRID ========== */
.gno-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

/* ========== CARD ========== */
.gno-card {
    position: relative;
    height: 260px;
    overflow: hidden;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background-color: #0a1a3a;
}

.gno-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.gno-card.active {
    height: 340px;
}

/* ========== OVERLAY ========== */
.gno-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(10, 26, 58, 0.85) 70%,
        rgba(10, 26, 58, 0.95) 100%
    );
    transition: background 0.4s ease;
}

.gno-card.active .gno-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.10) 0%,
        rgba(10, 26, 58, 0.80) 50%,
        rgba(10, 26, 58, 0.95) 100%
    );
}

/* ========== TOP (BADGE) ========== */
.gno-top {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 2;
}

/* ========== BADGE ========== */
.gno-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #ffffff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.gno-badge.conservador {
    background: rgba(29, 185, 84, 0.25);
    border-color: rgba(29, 185, 84, 0.3);
    color: #1DB954 !important;
}

.gno-badge.moderado {
    background: rgba(244, 180, 0, 0.25);
    border-color: rgba(244, 180, 0, 0.3);
    color: #F4B400 !important;
}

.gno-badge.moderado-agresivo {
    background: rgba(255, 143, 0, 0.25);
    border-color: rgba(255, 143, 0, 0.3);
    color: #ff8f00 !important;
}

.gno-badge.agresivo {
    background: rgba(229, 57, 53, 0.25);
    border-color: rgba(229, 57, 53, 0.3);
    color: #E53935 !important;
}

/* ========== LOCKED CARDS ========== */
.gno-card.gno-locked {
    filter: grayscale(100%);
    opacity: 0.7;
    cursor: pointer;
}

.gno-card.gno-locked:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.gno-card.gno-locked .gno-toggle {
    opacity: 0.5;
    cursor: pointer;
}

.gno-card.gno-locked .gno-toggle:hover {
    transform: scale(1.05);
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFD700;
}

.gno-card.gno-locked .gno-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-color: rgba(255, 215, 0, 0.3);
    cursor: pointer;
}

.gno-card.gno-locked .gno-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.35);
    background: linear-gradient(135deg, #FFE44D, #FFB300);
}

.gno-card.gno-locked .gno-content h3 {
    color: #ffffff !important;
}

.gno-card.gno-locked .gno-hidden p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.gno-badge.gno-locked-badge {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.3);
    color: #FFD700 !important;
    margin-left: 8px;
}

/* ========== TOGGLE WRAPPER ========== */
.gno-toggle-wrapper {
    position: absolute;
    bottom: 16px;
    right: 16px;
    z-index: 3;
}

/* ========== TOGGLE BUTTON ========== */
.gno-toggle {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff !important;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.gno-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff !important;
    transform: scale(1.05);
}

.gno-card.active .gno-toggle {
    transform: rotate(45deg);
    background: rgba(22, 123, 255, 0.2);
    border-color: #167BFF;
    color: #167BFF !important;
    box-shadow: 0 0 20px rgba(22, 123, 255, 0.15);
}

/* ========== CONTENT ========== */
.gno-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
}

/* ========== TÍTULO - BLANCO PURO ========== */
.gno-content h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
}

/* ========== DESCRIPCIÓN - BLANCO CON OPACIDAD ========== */
.gno-hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gno-card.active .gno-hidden {
    opacity: 1;
    max-height: 200px;
    margin-top: 10px;
}

.gno-hidden p {
    margin: 0 0 10px 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

/* ========== BOTÓN - BLANCO ========== */
.gno-btn {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #0F52AA, #167BFF);
    color: #ffffff !important;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(22, 123, 255, 0.3);
    box-shadow: 0 4px 15px rgba(15, 82, 170, 0.25);
}

.gno-btn:hover {
    background: linear-gradient(135deg, #167BFF, #4a9eff);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 82, 170, 0.35);
    color: #ffffff !important;
}

/* ========== LOCKED NOTICE ========== */
.gno-locked-notice {
    color: #FFD700;
    font-size: 0.9rem;
    margin-top: 10px;
    background: rgba(255, 215, 0, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid rgba(255, 215, 0, 0.2);
    animation: pulse-gold 2s ease-in-out infinite;
    cursor: pointer;
}

.gno-locked-notice:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: scale(1.02);
}

@keyframes pulse-gold {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 640px) {
    .gno-wrapper {
        padding: 20px 12px;
    }

    .gno-header h2 {
        font-size: 1.6rem;
    }

    .gno-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gno-card {
        height: 220px;
    }

    .gno-card.active {
        height: 300px;
    }

    .gno-content h3 {
        font-size: 1.2rem;
        color: #ffffff !important;
    }

    .gno-hidden p {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.85) !important;
    }

    .gno-btn {
        padding: 8px 18px;
        font-size: 0.8rem;
        color: #ffffff !important;
    }

    .gno-toggle {
        width: 34px;
        height: 34px;
        font-size: 18px;
        color: #ffffff !important;
    }

    .gno-filtros button {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    .gno-badge {
        font-size: 0.6rem;
        padding: 4px 10px;
        color: #ffffff !important;
    }
    
    .gno-card.gno-locked {
        filter: grayscale(100%);
        opacity: 0.7;
    }
    
    .gno-badge.gno-locked-badge {
        font-size: 0.55rem;
        padding: 3px 8px;
    }
    
    .gno-locked-notice {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
}

@media (max-width: 400px) {
    .gno-card.active {
        height: 280px;
    }

    .gno-hidden p {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.8) !important;
    }

    .gno-btn {
        padding: 6px 14px;
        font-size: 0.7rem;
        color: #ffffff !important;
    }
}