/* =====================================================================
 * BOTRIX DESIGN SYSTEM
 * Centralized variables and standard components
 * ===================================================================== */

 :root {
    /* Colors - Premium Industrial Theme */
    --primary: #00E5FF;        /* Electric Cyan */
    --primary-hover: #00B8CC;
    --secondary: #141416;      /* Dark Industrial Gray */
    --accent: #E43D12;         /* Urgent alerts */
    
    --background: #0A0A0C;     /* Deep Black / Graphite */
    --surface: #1E1E20;        /* Elevated Graphite */
    --surface-alt: #2A2A2D;    /* Lighter Graphite */
    
    --text-primary: #FAFAFA;
    --text-secondary: #D0D0D0;
    --text-muted: #888888;
    
    --border: rgba(255, 255, 255, 0.08);
    
    /* Semantic Colors */
    --c-success: #00E5FF;
    --c-error: #E43D12;
    --c-warning: #F5A623;
    --c-info: #00B8CC;
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, monospace;
    
    /* Spacing */
    --spacing-xs: 0.25rem;  /* 4px */
    --spacing-sm: 0.5rem;   /* 8px */
    --spacing-md: 1rem;     /* 16px */
    --spacing-lg: 1.5rem;   /* 24px */
    --spacing-xl: 2.5rem;   /* 40px */
    --spacing-2xl: 4rem;    /* 64px */
    
    /* Radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;
    
    /* Shadows - Deep and minimal */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.5);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.6);
    --shadow-lg: 0 16px 32px rgba(0,0,0,0.8);
}

/* Base Styles */
body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background-color: var(--background);
    min-height: 100vh;
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =====================================================================
 * STANDARDIZED BUTTONS
 * ===================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 12px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1;
}

.btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.75rem;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--background);
}
.btn-primary:hover:not(:disabled) {
    background: var(--primary);
    color: var(--background);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-secondary:hover:not(:disabled) {
    background: var(--surface-alt);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: transparent;
    border: 1px solid var(--c-error);
    color: var(--c-error);
}
.btn-danger:hover:not(:disabled) {
    background: var(--c-error);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}
.btn-outline:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* =====================================================================
 * STANDARDIZED CARDS (Minimal & Industrial)
 * ===================================================================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: var(--spacing-lg);
    transition: border-color 0.3s ease;
}

.card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Specific Card Variants (inherit from .card) */
.product-card, .course-card, .project-card, .blog-card, .event-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    background: var(--background);
    border: 1px solid var(--border);
}

.card-img-wrap {
    aspect-ratio: 4/3;
    background: var(--surface);
    overflow: hidden;
    position: relative;
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-card:hover .card-img-wrap img,
.course-card:hover .card-img-wrap img,
.project-card:hover .card-img-wrap img {
    transform: scale(1.03);
}

.card-body {
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.3;
}
.card-title:hover {
    color: var(--primary);
}

.card-meta {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: var(--spacing-sm);
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
    flex-grow: 1;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: var(--spacing-sm);
}

/* =====================================================================
 * EMPTY STATES
 * ===================================================================== */
.empty-state {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.empty-state-icon {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
}

.empty-state-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.empty-state-desc {
    color: var(--text-secondary);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
}

/* Focus states for accessibility */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
