/* ========================================
   COMPLETE COMMANDS PAGE STYLES
   All styles self-contained in this file
   ======================================== */

/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Oxygen', sans-serif;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 50%, #fffbf0 100%);
    color: #2d2d2d;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ========== NAVBAR STYLES ========== */
.navbar {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.nav-container {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    padding: 8px 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15),
                0 8px 32px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: #666666;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nav-link:hover {
    color: #FFD700;
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

/* ========== COMMANDS PAGE ========== */
.commands-page {
    min-height: 100vh;
    padding: 100px 2rem 4rem;
}

.commands-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== HEADER ========== */
.commands-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease;
}

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

.commands-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #FFC700, #FFD700, #FFE55C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
}

.commands-subtitle {
    font-size: 1.1rem;
    color: #666666;
}

/* ========== SEARCH BAR ========== */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.search-input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    font-size: 1rem;
    color: #2d2d2d;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15),
                0 8px 32px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.search-input:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 4px 24px rgba(255, 215, 0, 0.25),
                0 8px 40px rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.7);
}

.search-input::placeholder {
    color: #666666;
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    pointer-events: none;
}

/* ========== CATEGORY FILTER ========== */
.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.category-btn {
    padding: 10px 24px;
    border-radius: 25px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #666666;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.category-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.category-btn.active {
    background: rgba(255, 215, 0, 0.3);
    color: #2d2d2d;
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.25);
}

/* ========== COMMANDS GRID ========== */
.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ========== COMMAND CARD ========== */
.command-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: slideUp 0.5s ease forwards;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.15),
                0 8px 32px rgba(0, 0, 0, 0.05),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.command-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.25),
                0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 215, 0, 0.5);
}

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

/* Stagger animation delays */
.command-card:nth-child(1) { animation-delay: 0.05s; }
.command-card:nth-child(2) { animation-delay: 0.1s; }
.command-card:nth-child(3) { animation-delay: 0.15s; }
.command-card:nth-child(4) { animation-delay: 0.2s; }
.command-card:nth-child(5) { animation-delay: 0.25s; }
.command-card:nth-child(6) { animation-delay: 0.3s; }
.command-card:nth-child(7) { animation-delay: 0.35s; }
.command-card:nth-child(8) { animation-delay: 0.4s; }
.command-card:nth-child(9) { animation-delay: 0.45s; }

.command-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
}

.command-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d2d2d;
    margin: 0;
    word-break: break-word;
}

.command-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(255, 215, 0, 0.2);
    color: #FFC700;
    border: 1px solid rgba(255, 215, 0, 0.3);
    white-space: nowrap;
}

.command-description {
    font-size: 0.95rem;
    color: #666666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.command-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.command-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #666666;
}

.command-detail-label {
    font-weight: 600;
    color: #2d2d2d;
    min-width: 100px;
}

.command-detail-value {
    background: rgba(255, 215, 0, 0.15);
    padding: 3px 10px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
}

/* ========== LOADING STATE ========== */
.loading {
    text-align: center;
    font-size: 1.2rem;
    color: #666666;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

/* ========== NO RESULTS ========== */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
    animation: fadeInUp 0.6s ease;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results h3 {
    font-size: 1.5rem;
    color: #2d2d2d;
    margin-bottom: 0.5rem;
}

.no-results p {
    font-size: 1rem;
    color: #666666;
}

/* ========== SELECTION ========== */
::selection {
    background: #FFD700;
    color: #fff;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #FFD700;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .navbar {
        top: 10px;
        width: calc(100% - 40px);
    }

    .nav-container {
        padding: 8px 16px;
    }

    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-link {
        padding: 5px 12px;
        font-size: 0.85rem;
    }

    .commands-page {
        padding: 80px 1rem 2rem;
    }

    .commands-title {
        font-size: 2rem;
    }

    .commands-subtitle {
        font-size: 1rem;
    }

    .commands-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-filter {
        gap: 0.75rem;
    }

    .category-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .search-input {
        padding: 12px 45px 12px 18px;
        font-size: 0.9rem;
    }

    .command-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .command-category {
        align-self: flex-start;
    }
}

/* ========== AMBIENT GLOW ========== */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
    }
}