/* Base Application Styles */

/* ===== CSS CUSTOM PROPERTIES (COLOR SCHEME) ===== */
:root {
    /* Primary Colors */
    --primary-blue: #0d6efd;
    --primary-blue-hover: #0b5ed7;
    --primary-purple: #6f42c1;
    --primary-purple-hover: #5a2d91;
    
    /* Secondary Colors */
    --secondary-info: #17a2b8;
    --secondary-info-hover: #138496;
    --secondary-success: #28a745;
    --secondary-warning: #ffc107;
    --secondary-danger: #dc3545;
    
    /* Neutral Colors */
    --neutral-light: #f8f9fa;
    --neutral-medium: #e9ecef;
    --neutral-dark: #6c757d;
    --neutral-darker: #495057;
    
    /* Discord Colors */
    --discord-primary: #5865F2;
    --discord-hover: #4752C4;
    --discord-disabled: #6c757d;
    
    /* Gaming Theme Colors */
    --wow-red: #c41e3a;
    --overwatch-orange: #ff9c00;
    --diablo-orange: #ff6b35;
    --hearthstone-yellow: #ffb366;
    --hots-blue: #00bfff;
    --blizzcon-purple: #6f42c1;
    --rumble-green: #28a745;
    
    /* Typography Scale */
    --font-size-xs: 0.75rem;    /* 12px - Small labels, captions */
    --font-size-sm: 0.875rem;   /* 14px - Small text, table headers */
    --font-size-base: 1rem;     /* 16px - Body text, default */
    --font-size-lg: 1.125rem;   /* 18px - Large body text */
    --font-size-xl: 1.25rem;    /* 20px - Small headings */
    --font-size-2xl: 1.375rem;  /* 22px - Medium headings */
    --font-size-3xl: 1.75rem;   /* 28px - Large headings */
    --font-size-4xl: 2.125rem;  /* 34px - Display text */
    
    /* Font Weights */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* Shadow System */
    /* Light shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.1);
    
    /* Colored shadows */
    --shadow-blue: 0 8px 25px rgba(13, 110, 253, 0.15);
    --shadow-blue-hover: 0 8px 25px rgba(13, 110, 253, 0.2);
    --shadow-blue-focus: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
    
    --shadow-info: 0 4px 15px rgba(23, 162, 184, 0.1);
    --shadow-info-hover: 0 6px 20px rgba(23, 162, 184, 0.15);
    --shadow-info-focus: 0 0 0 0.2rem rgba(23, 162, 184, 0.25);
    
    --shadow-success: 0 4px 15px rgba(40, 167, 69, 0.1);
    --shadow-warning: 0 4px 15px rgba(255, 193, 7, 0.1);
    --shadow-danger: 0 4px 15px rgba(220, 53, 69, 0.1);
    
    /* Text shadows */
    --text-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
    --text-shadow-md: 0 2px 4px rgba(0, 0, 0, 0.1);
    --text-shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ===== DISCORD BUTTON STYLES ===== */
.btn-discord {
    background-color: var(--discord-primary);
    border-color: var(--discord-primary);
    color: white;
    transition: all 0.2s ease-in-out;
    min-height: 3rem;
    position: relative;
}

.btn-discord i {
    transition: opacity 0.2s ease-in-out;
    display: inline-block;
    width: 1em;
    height: 1em;
}

.btn-discord:hover {
    background-color: var(--discord-hover) !important;
    border-color: var(--discord-hover) !important;
    color: white !important;
}

.btn-discord:disabled {
    background-color: var(--discord-disabled);
    border-color: var(--discord-disabled);
    color: white;
}

/* Social provider button icons */
.btn i[class*="bi-discord"] {
    font-size: var(--font-size-lg);
    opacity: 1;
    visibility: visible;
}

.btn i[class*="bi-box-arrow-in-right"] {
    font-size: var(--font-size-lg);
}


/* ===== UNIFIED CHECKBOX SYSTEM ===== */
.checkbox {
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
}


/* Legacy checkbox classes for backward compatibility */
.category-checkbox {
    transform: scale(1.2);
}

/* ===== FORM STYLES ===== */
.form-check-input:checked {
    background-color: var(--secondary-info);
    border-color: var(--secondary-info);
}

.form-check-input:checked + label {
    color: var(--primary-blue);
}

.form-check-input:focus {
    border-color: var(--secondary-info);
    box-shadow: var(--shadow-info-focus);
}

/* ===== UNIFIED ICON SYSTEM ===== */
.icon {
    object-fit: contain;
    flex-shrink: 0;
}


/* Legacy icon classes for backward compatibility */
.website-icon,
.category-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.category-icon-small {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* External link icon styling */
.website-header a[title*="Open"] {
    color: var(--primary-blue);
    opacity: 0.7;
    transition: all 0.2s ease;
    font-size: 0.9em;
}

.website-header a[title*="Open"]:hover {
    opacity: 1;
    color: var(--primary-blue);
    transform: scale(1.1);
}

.website-name {
    cursor: pointer;
}

/* ===== UNIFIED CATEGORY ITEM SYSTEM ===== */
.category-item {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--neutral-medium);
    border-radius: 0.375rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.category-item:hover {
    background: rgba(13, 110, 253, 0.05);
    border-color: var(--primary-blue);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.1);
}

.category-item:has(.category-checkbox:checked) {
    background: rgba(13, 110, 253, 0.08);
    border-color: var(--primary-blue);
    border-width: 1px;
}

/* Size variants */
.category-item-sm {
    padding: 4px 6px;
    min-height: 28px;
    font-size: 0.75rem;
    gap: 4px;
}

.category-item-md {
    padding: 6px 8px;
    min-height: 32px;
    font-size: 0.8rem;
    gap: 6px;
}

.category-item-lg {
    padding: 0.75rem;
    min-height: 40px;
    font-size: 0.875rem;
    gap: 0.75rem;
}

.category-item-xl {
    padding: 12px 16px;
    min-height: 48px;
    font-size: 1rem;
    gap: 12px;
}

/* ===== UNIFIED HOVER EFFECTS ===== */
.hover-lift {
    transition: all 0.2s ease;
}

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

.hover-lift-strong {
    transition: all 0.3s ease;
}

.hover-lift-strong:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-blue);
}

.hover-lift-subtle {
    transition: box-shadow 0.2s ease-in-out;
}

.hover-lift-subtle:hover {
    box-shadow: var(--shadow-md);
}



/* ===== SHADOW UTILITY CLASSES ===== */
.shadow-xs { box-shadow: var(--shadow-xs); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.shadow-blue { box-shadow: var(--shadow-blue); }
.shadow-info { box-shadow: var(--shadow-info); }
.shadow-success { box-shadow: var(--shadow-success); }
.shadow-warning { box-shadow: var(--shadow-warning); }
.shadow-danger { box-shadow: var(--shadow-danger); }

.text-shadow-sm { text-shadow: var(--text-shadow-sm); }
.text-shadow-md { text-shadow: var(--text-shadow-md); }
.text-shadow-lg { text-shadow: var(--text-shadow-lg); }

/* ===== UNIFIED TYPOGRAPHY SYSTEM ===== */
.text-primary {
    display: block;
    font-weight: 500;
    color: #212529;
    line-height: 1.2;
    margin: 0;
}

.text-secondary {
    display: block;
    font-size: var(--font-size-sm);
    color: #6c757d;
    line-height: 1.3;
    margin: 0;
}


/* ===== TYPOGRAPHY UTILITY CLASSES ===== */
.text-xs { font-size: var(--font-size-xs); }
.text-sm { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg { font-size: var(--font-size-lg); }
.text-xl { font-size: var(--font-size-xl); }
.text-2xl { font-size: var(--font-size-2xl); }
.text-3xl { font-size: var(--font-size-3xl); }
.text-4xl { font-size: var(--font-size-4xl); }

.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

.leading-tight { line-height: var(--line-height-tight); }
.leading-normal { line-height: var(--line-height-normal); }
.leading-relaxed { line-height: var(--line-height-relaxed); }

/* ===== COMMON UTILITY CLASSES ===== */
.cursor-pointer {
    cursor: pointer;
}


/* ===== MOBILE NAVBAR STYLES ===== */
/* Custom hamburger button styling */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: var(--font-size-xl);
    line-height: 1;
    background-color: transparent;
    border-radius: 0.375rem;
    transition: all 0.15s ease-in-out;
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}

/* Mobile navbar collapse styling */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(13, 110, 253, 0.95);
        border-radius: 0.5rem;
        margin-top: 0.5rem;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        backdrop-filter: blur(10px);
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
        border-radius: 0.375rem;
        transition: all 0.2s ease-in-out;
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white !important;
        transform: translateX(5px);
    }
    
    .navbar-nav .nav-link i {
        width: 20px;
        text-align: center;
    }
    
    .navbar-text {
        padding: 0.75rem 1rem;
        margin: 0.25rem 0;
        border-radius: 0.375rem;
        background-color: rgba(255, 255, 255, 0.1);
        color: rgba(255, 255, 255, 0.9) !important;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .navbar-text .badge {
        display: block;
        margin: 0.5rem auto 0;
        width: fit-content;
    }
    
    /* Ensure proper spacing between nav sections */
    .navbar-nav.me-auto {
        margin-bottom: 1rem;
    }
    
    .navbar-nav.ms-auto {
        margin-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 0.5rem;
    }
}

/* Desktop navbar - ensure it works as before */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        color: rgba(255, 255, 255, 0.9) !important;
        transition: color 0.2s ease-in-out;
    }
    
    .navbar-nav .nav-link:hover {
        color: white !important;
    }
    
    .navbar-text {
        color: rgba(255, 255, 255, 0.9) !important;
    }
}

/* ===== FORM CONTROL STYLES ===== */
/* Style form fields to match Bootstrap */
.form-control {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #198754;
}

/* ===== COMMON RESPONSIVE PATTERNS ===== */
@media (max-width: 768px) {
    .category-item-sm {
        padding: 4px 6px;
        min-height: 28px;
        font-size: 0.75rem;
    }
    
    .category-item-md {
        padding: 4px 6px;
        min-height: 28px;
        font-size: 0.75rem;
    }
    
    .category-item-lg {
        padding: 0.5rem;
        min-height: 36px;
        font-size: 0.8rem;
    }
    
    .category-item-xl {
        padding: 0.75rem;
        min-height: 40px;
        font-size: 0.875rem;
    }
    
}

@media (min-width: 1200px) {
    .category-item-sm {
        padding: 6px 8px;
        min-height: 32px;
        font-size: 0.8rem;
    }
    
    .category-item-md {
        padding: 8px 10px;
        min-height: 36px;
        font-size: 0.85rem;
    }
}

