// Layout components for cecli website

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

// Header
header {
    background-color: #1a1a1a; // Dark header background
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

// Navigation
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    font-family: 'GlassTTYVT220', monospace;
    color: var(--terminal-green);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--dark); // Light text on dark background
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: var(--text-sm);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.nav-links a:hover {
    color: var(--primary);
}

// Button styles
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #2a2a2a; // Dark button background
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background-color: #3a3a3a; // Darker hover state
    transform: translateY(-2px);
}

// CTA container
.cta-container {
    text-align: center;
    margin: 30px 0;
}

.cta-text {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

// Stats container
.stats-container {
    margin-top: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

// GitHub badges
.github-badge {
    display: inline-flex;
    height: 28px;
    border-radius: 4px;
    overflow: hidden;
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.github-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.badge-label {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background-color: #555;
    color: white;
    height: 100%;
}

.badge-value {
    display: flex;
    align-items: center;
    padding: 0 10px;
    background-color: var(--primary);
    color: white;
    height: 100%;
}

.badge-stars .badge-value {
    background-color: #f1c40f;
    color: #333;
}

.badge-installs .badge-value {
    background-color: #2ecc71;
}

.badge-router .badge-value {
    background-color: #9b59b6;
}

.badge-tokens .badge-value {
    background-color: #3498db;
}

.badge-coded .badge-value {
    background-color: #e74c3c;
}

// Responsive layout adjustments
// Large tablets and small desktops (992px and below)
@media (max-width: 992px) {
    nav {
        padding: 12px 0;
    }
    
    .stats-container {
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
        min-width: 120px;
        text-align: center;
    }
    
    .btn-primary {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .github-badge {
        font-size: 0.75rem;
    }
}

// Mobile devices (576px and below)
@media (max-width: 576px) {
    nav {
        padding: 8px 0;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .btn {
        min-width: 100px;
        padding: 8px 12px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}