/* =====================================================
   COMANDOS - Estilos específicos de la página de comandos
   ===================================================== */

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    text-align: center;
    background: rgba(2, 6, 23, 0.4);
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-family: 'Oxanium', cursive;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: #94a3b8;
}

/* Search Box */
.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--light);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-input::placeholder {
    color: #64748b;
}

/* Commands Section */
.commands {
    padding: 60px 0;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    justify-content: center;
}

.category-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

.category-btn:hover {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--gradient);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.command-card {
    background: rgba(30, 41, 59, 0.4);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.command-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.command-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.command-card:hover::before {
    opacity: 1;
}

.command-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.command-name {
    font-family: 'Oxanium', cursive;
    font-weight: 700;
    font-size: 18px;
    color: var(--accent);
    margin: 0;
}

.command-category {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.command-description {
    color: #94a3b8;
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.command-usage {
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 14px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin-bottom: 12px;
    border-left: 3px solid var(--primary);
    color: #e2e8f0;
}

.command-example {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    color: #cbd5e1;
    border-left: 3px solid var(--secondary);
}

.command-example code {
    background: rgba(126, 34, 206, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #c4b5fd;
}

.copy-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.copy-btn:hover {
    background: var(--gradient);
    border-color: transparent;
    transform: scale(1.1);
}

/* NSFW Modal */
.nsfw-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 23, 0.85);
    display: grid;
    place-items: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.nsfw-modal.hidden {
    display: none;
}

.nsfw-modal__box {
    width: min(520px, 92vw);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(10, 15, 26, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    color: #e5e7eb;
}

.nsfw-modal__box h3 {
    margin: 0 0 12px;
    font-family: 'Oxanium', sans-serif;
    font-size: 24px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nsfw-modal__box p {
    margin: 0 0 20px;
    color: #cbd5e1;
    line-height: 1.6;
}

.nsfw-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #b6c2d1;
    cursor: pointer;
}

.nsfw-remember input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.nsfw-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-primary,
.btn-secondary {
    cursor: pointer;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    border: 1px solid transparent;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.8);
    color: #e5e7eb;
    border-color: rgba(148, 163, 184, 0.25);
}

.btn-secondary:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(148, 163, 184, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .commands-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .command-card {
        padding: 20px;
    }

    .category-filter {
        gap: 8px;
    }

    .category-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .copy-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 40px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .commands {
        padding: 40px 0;
    }

    .nsfw-modal__box {
        padding: 20px;
    }

    .nsfw-modal__actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

