/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 15px;
    color: white;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Search section */
.search-section {
    margin-bottom: 40px;
    text-align: center;
}

#searchInput {
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e1e5e9;
    border-radius: 50px;
    width: 300px;
    max-width: 100%;
    outline: none;
    transition: all 0.3s ease;
}

#searchInput:focus {
    border-color: #4facfe;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
}

#searchBtn {
    padding: 15px 30px;
    margin-left: 10px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#searchBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

/* Content sections */
.content {
    margin-bottom: 60px;
}

.intro {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    border-left: 5px solid #4facfe;
}

.intro h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 2rem;
}

.intro p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Commands section */
.commands-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: #2c3e50;
    position: relative;
}

.commands-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 2px;
}

.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.command-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.command-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.command-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.command-card[data-featured="true"] {
    border: 2px solid #4facfe;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.05) 0%, rgba(0, 242, 254, 0.05) 100%);
}

.command-card[data-featured="true"]::before {
    height: 6px;
    background: linear-gradient(135deg, #ff6b6b 0%, #feca57 100%);
}

.command-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 8px;
    display: inline-block;
}

.command-card .description {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.5;
}

.usage {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #4facfe;
    margin-bottom: 15px;
}

.usage strong {
    color: #2c3e50;
    font-weight: 600;
}

.usage code {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #e83e8c;
    font-weight: 600;
}

.model-info {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(254, 202, 87, 0.1) 100%);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.model-info strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 10px;
}

.model-info ul {
    list-style: none;
    padding-left: 0;
}

.model-info li {
    padding: 5px 0;
    color: #6c757d;
    position: relative;
    padding-left: 20px;
}

.model-info li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: #ff6b6b;
    font-size: 12px;
}

/* Tips section */
.tips-section {
    margin-top: 60px;
}

.tips-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #2c3e50;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.tip-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.tip-card h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.tip-card p {
    line-height: 1.6;
    opacity: 0.9;
}

.tip-card code {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    margin-top: 60px;
}

footer p {
    margin-bottom: 10px;
}

footer a {
    color: #4facfe;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #2c3e50;
}

/* Hidden class for search functionality */
.hidden {
    display: none !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .command-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #searchInput {
        width: 100%;
        margin-bottom: 15px;
    }
    
    #searchBtn {
        margin-left: 0;
        width: 100%;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .command-card {
        padding: 20px;
    }
    
    .command-card h3 {
        font-size: 1.2rem;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.command-card {
    animation: fadeInUp 0.6s ease forwards;
}

.command-card:nth-child(even) {
    animation-delay: 0.1s;
}

.command-card:nth-child(3n) {
    animation-delay: 0.2s;
}