/* Base Variables and Core Styles */
:root {
    /* Light mode gradients */
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --dark-gradient: linear-gradient(135deg, #434343 0%, #000000 100%);
    
    /* Purple theme gradients - consolidated */
    --purple-primary: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    --purple-dark: linear-gradient(135deg, #553c9a 0%, #2d1b69 100%);
    --purple-darker: linear-gradient(135deg, #2d1b69 0%, #1e1338 100%);
    
    /* Item-specific gradients */
    --item-tracked: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --item-tracked-hover: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --item-untracked: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    --item-untracked-hover: linear-gradient(135deg, #ffc107 0%, #ff6b35 100%);
    
    /* Shadow system */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
    --card-shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.3);
    --card-shadow-dark-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
    
    /* Common measurements */
    --border-radius: 15px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    
    /* Icon sizes */
    --icon-sm: 32px;
    --icon-md: 50px;
    --icon-lg: 80px;
    
    /* Z-index system */
    --z-dropdown: 1050;
    --z-dropdown-high: 9999;
    --z-modal: 1060;
    --z-behind: -1;
    
    /* Light mode colors */
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e9ecef;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --border-color: #dee2e6;
    --card-bg: rgba(255, 255, 255, 0.9);
}

/* Common component mixins as utility classes */
.circular-icon {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    /* Removed raise effect */
    transform: none;
    /* Keep shadow for hover indication */
    box-shadow: var(--card-shadow-hover);
}

.hover-scale {
    transition: var(--transition);
}

.hover-scale:hover {
    transform: scale(1.1);
}

.shimmer-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition);
}

.shimmer-effect:hover::before {
    left: 100%;
}

/* Global Typography */
* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    color: var(--text-primary);
    font-weight: 700;
}

.lead {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-gradient);
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

@keyframes blueGlow {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(79, 172, 254, 0.2);
    }
    50% { 
        box-shadow: 0 4px 12px rgba(79, 172, 254, 0.4);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse-on-hover:hover {
    animation: pulse 1s infinite;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.bounce-animation {
    animation: bounce 2s infinite;
}

/* Utility Classes */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-secondary {
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Statistics Components */
.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Alert Enhancements */
.alert {
    border-radius: var(--border-radius);
    border: none;
    backdrop-filter: blur(10px);
}

.alert-info {
    background: rgba(79, 172, 254, 0.1);
    border-left: 4px solid var(--success-gradient);
    color: var(--text-secondary);
}

.alert-warning {
    background: rgba(237, 137, 54, 0.1);
    border-left: 4px solid var(--warning-gradient);
    color: var(--text-secondary);
}

.alert-success {
    background: rgba(56, 178, 172, 0.1);
    border-left: 4px solid var(--success-gradient);
    color: var(--text-primary);
}

.alert-danger {
    background: rgba(245, 101, 101, 0.1);
    border-left: 4px solid #f56565;
    color: var(--text-primary);
}

/* Badge Enhancements */
.badge {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
}

.badge.bg-primary {
    background: var(--primary-gradient) !important;
}

.badge.bg-success {
    background: var(--success-gradient) !important;
}

.badge.bg-info {
    background: var(--secondary-gradient) !important;
}

.badge.bg-warning {
    background: var(--warning-gradient) !important;
}

/* List Group Enhancements */
.list-group-item {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--text-primary);
    border-radius: 10px !important;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.list-group-item:hover {
    background: var(--bg-tertiary);
    transform: translateX(5px);
}

/* Table Enhancements */
.table {
    color: var(--text-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.table-dark {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

/* Modal Enhancements */
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.modal-header {
    border-bottom-color: var(--border-color);
    background: var(--primary-gradient);
    color: white;
}

.modal-footer {
    border-top-color: var(--border-color);
}

/* Breadcrumb Enhancements */
.breadcrumb {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-item a:hover {
    color: var(--text-primary);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

/* Progress Bar Enhancements */
.progress {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    height: 1rem;
}

.progress-bar {
    background: var(--primary-gradient);
    border-radius: var(--border-radius);
}

/* Pagination Enhancements */
.page-link {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-secondary);
    border-radius: 8px;
    margin: 0 2px;
    transition: var(--transition);
}

.page-link:hover {
    background: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: transparent;
}

/* Tooltip and Popover Enhancements */
.tooltip-inner {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 8px;
    box-shadow: var(--card-shadow);
}

.popover {
    background: var(--card-bg);
    border-color: var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.popover-header {
    background: var(--bg-secondary);
    border-bottom-color: var(--border-color);
    color: var(--text-primary);
}

.popover-body {
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hero section responsive styles are handled in layout.css */
    
    .card-body {
        padding: 1.5rem;
    }
    
    .guild-icon {
        width: 60px;
        height: 60px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    /* Hero section responsive styles are handled in layout.css */
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Hero section - completely static with no animations */
/* Note: Main hero section styles are in layout.css - these are just animation overrides */
.hero-content {
    opacity: 1 !important;
    transform: none !important;
}

.hero-section *,
.hero-content * {
    opacity: 1 !important;
    transform: none !important;
}

/* Hero section size variants */
.hero-section.compact {
    padding: 2.5rem 0;
}

.hero-section.expanded {
    padding: 4rem 0;
}

/* Prevent scrolling during transition */
body.transitioning {
    overflow: hidden;
}

/* Global Admin Button Styling */
.btn.global-admin-btn,
.btn.global-admin-btn:link,
.btn.global-admin-btn:visited {
    border: 2px solid #dc3545 !important;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.2) 100%) !important;
    color: #dc3545 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.btn.global-admin-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.btn.global-admin-btn:hover::before {
    left: 100%;
}

.btn.global-admin-btn:hover,
.btn.global-admin-btn:focus,
.btn.global-admin-btn:active {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.9) 0%, rgba(75, 0, 0, 0.95) 100%) !important;
    border-color: #8b0000 !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4) !important;
}

.btn.global-admin-btn:active {
    transform: translateY(-1px) scale(1.01) !important;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3) !important;
}

.btn.global-admin-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    outline: none !important;
}

/* Global Admin Modal Styling */
.admin-action-card {
    transition: all 0.3s ease;
}

.admin-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Admin Action Button Styling */
.btn.admin-action-btn,
.btn.admin-action-btn:link,
.btn.admin-action-btn:visited {
    border: 2px solid #ffc107 !important;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.2) 100%) !important;
    color: #ffc107 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.btn.admin-action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.btn.admin-action-btn:hover::before {
    left: 100%;
}

.btn.admin-action-btn:hover,
.btn.admin-action-btn:focus,
.btn.admin-action-btn:active {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.9) 0%, rgba(230, 126, 34, 0.95) 100%) !important;
    border-color: #ff9800 !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4) !important;
}

.btn.admin-action-btn:active {
    transform: translateY(-1px) scale(1.01) !important;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3) !important;
}

.btn.admin-action-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25) !important;
    outline: none !important;
}

/* Admin Delete Button Styling (Red) */
.btn.admin-delete-btn,
.btn.admin-delete-btn:link,
.btn.admin-delete-btn:visited {
    border: 2px solid #dc3545 !important;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.2) 100%) !important;
    color: #dc3545 !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.btn.admin-delete-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.btn.admin-delete-btn:hover::before {
    left: 100%;
}

.btn.admin-delete-btn:hover,
.btn.admin-delete-btn:focus,
.btn.admin-delete-btn:active {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.9) 0%, rgba(75, 0, 0, 0.95) 100%) !important;
    border-color: #8b0000 !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(139, 0, 0, 0.4) !important;
}

.btn.admin-delete-btn:active {
    transform: translateY(-1px) scale(1.01) !important;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3) !important;
}

.btn.admin-delete-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    outline: none !important;
}
