/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.5;
    min-height: 100vh;
}

.app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 2rem 0;
    text-align: center;
    border-bottom: 3px solid #3b82f6;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 1.1rem;
    color: #cbd5e1;
    font-weight: 400;
    margin-bottom: 8px;
}

.branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
}

.by-text {
    color: #94a3b8;
    font-weight: 400;
}

.company-link {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.company-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* Main Content */
.main {
    flex: 1;
    padding: 3rem 0;
}

/* Search Section */
.search-section {
    margin-bottom: 3rem;
}

.search-card {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.search-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
}

.search-input {
    flex: 1;
    background: #000;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 16px 20px;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.search-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.search-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.search-icon {
    font-size: 16px;
}

/* Quick Examples */
.quick-examples {
    text-align: center;
}

.examples-label {
    color: #999;
    font-size: 14px;
    display: block;
    margin-bottom: 20px;
    font-weight: 500;
}

.example-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.example-btn {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 420px;
    text-align: left;
    overflow: hidden;
}

.example-btn:hover {
    background: #222;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2);
}

.game-thumb {
    width: 180px;
    height: 84px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.game-info {
    flex: 1;
    min-width: 0;
}

.game-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-id {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

/* Results Section */
.results-section {
    animation: fadeIn 0.5s ease;
}

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

.results-header {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.back-btn {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.back-btn:hover {
    background: #444;
    border-color: #666;
}

.app-title {
    text-align: center;
    flex: 1;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.game-header-image {
    width: 160px;
    height: 75px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid #333;
}

.app-details {
    text-align: left;
}

.app-title h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.2;
}

.app-id {
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
}

.app-meta {
    margin-top: 6px;
    font-size: 12px;
    color: #888;
}

.app-meta .developer {
    color: #ccc;
}

.app-meta .release-date {
    color: #999;
    margin-left: 8px;
}

.copy-all-btn {
    background: #059669;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.copy-all-btn:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

/* Command Groups */
.command-groups {
    display: grid;
    gap: 1.5rem;
}

.command-group {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.group-title {
    background: #2a2a2a;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 1rem 1.5rem;
    margin: 0;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.group-icon {
    font-size: 1.2rem;
    margin-right: 4px;
    color: #60a5fa;
}

.group-description {
    color: #999;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    padding: 12px 1.5rem;
    background: #111;
    border-bottom: 1px solid #333;
}

.commands-list {
    padding: 1.25rem 1.5rem;
}

/* Command Items */
.command-item {
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.command-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.command-item:last-child {
    margin-bottom: 0;
}

.command-header {
    padding: 12px 16px;
    background: #111;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.command-description {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
}

.command-description i {
    margin-right: 8px;
    color: #60a5fa;
    width: 16px;
    text-align: center;
}

.copy-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.copy-btn:hover {
    background: #2563eb;
}

.copy-btn.copied {
    background: #059669;
}

.command-text {
    background: #000;
    color: #e2e8f0;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
    white-space: pre-wrap;
}

.command-note {
    background: #111;
    color: #999;
    padding: 8px 16px;
    font-size: 12px;
    font-style: italic;
    border-top: 1px solid #333;
}

/* Depot Tools */
.depot-tools {
    margin-top: 0.75rem;
    padding: 0.75rem 1.5rem 1.25rem;
    border-top: 1px solid #333;
    display: flex;
    gap: 12px;
}

.depot-input {
    flex: 1;
    background: #000;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 12px 16px;
    color: #fff;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.depot-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.depot-input::placeholder {
    color: #666;
}

.depot-btn {
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.depot-btn:hover {
    background: #7c3aed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .command-groups {
        gap: 1.25rem;
    }
    
    .header {
        padding: 1.5rem 0;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .branding {
        font-size: 0.85rem;
    }
    
    .main {
        padding: 2rem 0;
    }
    
    .search-card {
        padding: 1.5rem;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .example-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .example-btn {
        width: 100%;
        max-width: 420px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        text-align: center;
    }
    
    .app-title {
        order: -1;
    }
    
    .app-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .app-details {
        text-align: center;
    }
    
    .depot-tools {
        flex-direction: column;
    }
    
    .command-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .copy-btn {
        align-self: flex-end;
        width: fit-content;
    }
}

@media (max-width: 480px) {
    .command-groups {
        gap: 1rem;
    }
    
    .search-input-group {
        gap: 8px;
    }
    
    .search-input, .search-btn {
        padding: 14px 16px;
    }
    
    .results-header {
        padding: 1rem;
    }
    
    .commands-list {
        padding: 1rem;
    }
    
    .depot-tools {
        padding: 0.75rem 1rem;
    }
    
    .command-text {
        padding: 12px;
        font-size: 12px;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.empty-state h3 {
    color: #999;
    margin-bottom: 0.5rem;
}