/* =====================================
   SoWeDoIT - Premium Dark Theme 2.0
   Met Command Cards naast elkaar in grid
   ===================================== */

:root {
    --bg-primary: #0A0A0F;
    --bg-secondary: #12121A;
    --surface: #1C1C28;
    --surface-hover: #2A2A3A;
    --accent-primary: #6366F1;
    --accent-secondary: #EC4899;
    --accent-glow: rgba(99, 102, 241, 0.3);
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B0;
    --text-tertiary: #6B6B80;
    --border-light: rgba(255, 255, 255, 0.05);
    --border-medium: rgba(255, 255, 255, 0.1);
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --gradient-1: linear-gradient(135deg, #6366F1, #EC4899);
    --gradient-2: linear-gradient(45deg, #0A0A0F, #1C1C28);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --blur-xl: blur(20px);
    --blur-lg: blur(16px);
    --blur-md: blur(10px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Dynamische achtergrond */
.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMDAiIGhlaWdodD0iMzAwIj48ZmlsdGVyIGlkPSJmIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iLjc0IiBudW1PY3RhdmVzPSIzIiAvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idXJsKCNmKSIgb3BhY2l0eT0iMC4wMjUiIC8+PC9zdmc+');
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.gradient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 40% 80%, rgba(11, 11, 25, 0.1) 0%, transparent 50%);
    backdrop-filter: var(--blur-xl);
    -webkit-backdrop-filter: var(--blur-xl);
    pointer-events: none;
    z-index: 1;
}

.app-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Navigatie */
.glass-nav {
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-family: 'Clash Display', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.logo-text .accent {
    color: var(--accent-secondary);
}

.logo-badge {
    background: var(--surface);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--gradient-1);
    border-radius: 100px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Hero Sectie */
.hero-section {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.hero-title {
    font-family: 'Clash Display', sans-serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    position: relative;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
}

/* Sectie Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.section-title {
    font-family: 'Clash Display', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--gradient-1);
    opacity: 0.3;
}

/* Categorie Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.category-tile {
    background: rgba(28, 28, 40, 0.4);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
    width: 100%;
}

.category-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.category-tile:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.3);
}

.category-tile:hover::before {
    opacity: 0.05;
}

.tile-icon {
    width: 48px;
    height: 48px;
    background: var(--surface);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
    border: 1px solid var(--border-light);
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.category-tile:hover .tile-icon {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.tile-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.tile-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.tile-count {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.tile-arrow {
    width: 32px;
    height: 32px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    border: 1px solid var(--border-light);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.category-tile:hover .tile-arrow {
    background: var(--accent-primary);
    color: white;
    transform: translateX(4px);
}

/* Detail Pagina's */
.detail-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    overflow-y: auto;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    visibility: hidden;
}

.detail-page.active {
    transform: translateX(0);
    visibility: visible;
}

.detail-container {
    max-width: 1200px;
    margin: 0 auto;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.back-button:hover {
    background: var(--surface-hover);
    border-color: var(--border-medium);
    transform: translateX(-4px);
    color: var(--text-primary);
}

.detail-header {
    margin-bottom: 2.5rem;
}

.detail-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.detail-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    box-shadow: var(--shadow-glow);
}

.detail-title-wrapper h2 {
    font-family: 'Clash Display', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.detail-description {
    color: var(--text-secondary);
    margin-left: 4.5rem;
    font-size: 1.1rem;
}

/* =========================================== */
/* COMMAND CARDS GRID - AANGEPAST voor naast elkaar */
/* =========================================== */

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.command-card {
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 1.5rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--blur-sm);
    width: 100%;
    height: fit-content;
}

.command-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s;
}

.command-card:hover {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.5);
}

.command-card:hover::after {
    opacity: 1;
}

.command-header {
    margin-bottom: 1.25rem;
}

.command-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.command-tag.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.2);
}

.command-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.command-code {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
    overflow-x: auto;
}

.command-code pre {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
}

.command-code code {
    color: var(--accent-primary);
}

.copy-command {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.copy-command:hover {
    background: var(--surface-hover);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.copy-command.copied {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* Diagnostic card special */
.command-card.diagnostic .command-tag {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.2);
}

/* Download card special */
.command-card.download-card {
    background: linear-gradient(145deg, var(--surface), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.download-info {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-row i {
    color: var(--accent-primary);
    width: 20px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--gradient-1);
    border-radius: 100px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.download-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* External tool card */
.command-card.external-tool {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tool-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.tool-info {
    flex: 1;
}

.tool-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.tool-info p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.tool-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 100px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    flex-shrink: 0;
}

.tool-link:hover {
    background: var(--accent-primary);
    color: white;
}

/* Warning card */
.command-card.warning-card {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(145deg, var(--surface), rgba(245, 158, 11, 0.05));
}

.warning-text {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 8px;
    color: var(--warning);
    font-size: 0.85rem;
    border-left: 3px solid var(--warning);
}

/* Contact card */
.command-card.contact-card {
    background: linear-gradient(145deg, var(--surface), rgba(99, 102, 241, 0.15));
    border: 1px solid rgba(99, 102, 241, 0.3);
    grid-column: span 2;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.contact-content i {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.contact-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-1);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Full width voor speciale elementen */
.command-card.full-width,
.command-group-title.full-width {
    grid-column: 1 / -1;
}

/* Chat Widget Styling */
#chat-widget {
    --chat--color-primary: var(--accent-primary);
    --chat--color-primary-shade-50: #4F46E5;
    --chat--background: var(--surface);
    --chat--text-color: var(--text-primary);
    --chat--border-radius: 24px;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s;
    animation: pulse 2s infinite;
}

.chat-bubble:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .app-wrapper {
        padding: 1rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .detail-title-wrapper h2 {
        font-size: 1.5rem;
    }
    
    .detail-description {
        margin-left: 0;
    }
    
    /* Command grid wordt 1 kolom op mobiel */
    .commands-grid {
        grid-template-columns: 1fr;
    }
    
    .command-card.contact-card {
        grid-column: span 1;
    }
    
    .glass-nav {
        border-radius: 30px;
        padding: 0.5rem 1rem;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .contact-pill span {
        display: none;
    }
    
    .contact-pill {
        padding: 0.5rem;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-hover);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}