/**
 * AgionesCMS - Default Theme
 * Hlavný štýl témy
 */

/* =====================================================
   CSS Variables / Custom Properties
   ===================================================== */
:root {
    /* Primary Colors */
    --theme-primary: #3498db;
    --theme-primary-hover: #2980b9;
    --theme-primary-light: rgba(52, 152, 219, 0.1);
    
    /* Secondary Colors */
    --theme-secondary: #2ecc71;
    --theme-secondary-hover: #27ae60;
    
    /* Accent Colors */
    --theme-accent: #e74c3c;
    --theme-warning: #f39c12;
    --theme-info: #17a2b8;
    
    /* Neutral Colors */
    --theme-dark: #1a1a2e;
    --theme-light: #f8f9fa;
    --theme-gray: #6c757d;
    --theme-border: #dee2e6;
    
    /* Text Colors */
    --theme-text: #333333;
    --theme-text-muted: #6c757d;
    --theme-text-light: #ffffff;
    
    /* Background Colors */
    --theme-bg: #f8f9fa;
    --theme-bg-card: #ffffff;
    --theme-bg-dark: #1a1a2e;
    
    /* Shadows */
    --theme-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --theme-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --theme-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Border Radius */
    --theme-radius-sm: 0.25rem;
    --theme-radius: 0.5rem;
    --theme-radius-lg: 1rem;
    --theme-radius-pill: 50rem;
    
    /* Transitions */
    --theme-transition: all 0.3s ease;
    --theme-transition-fast: all 0.15s ease;
    
    /* Fonts */
    --theme-font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --theme-font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --theme-font-mono: 'Consolas', 'Monaco', monospace;
}

/* =====================================================
   Base Styles
   ===================================================== */
body {
    font-family: var(--theme-font-body);
    background-color: var(--theme-bg);
    color: var(--theme-text);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--theme-font-heading);
    font-weight: 600;
    color: var(--theme-dark);
}

a {
    color: var(--theme-primary);
    text-decoration: none;
    transition: var(--theme-transition-fast);
}

a:hover {
    color: var(--theme-primary-hover);
}

/* =====================================================
   Header
   ===================================================== */
.main-header {
    background: var(--theme-bg-dark);
    box-shadow: var(--theme-shadow);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.main-header .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.main-header .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    padding: 0.75rem 1rem !important;
    transition: var(--theme-transition-fast);
}

.main-header .nav-link:hover,
.main-header .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--theme-radius-sm);
}

.main-header .dropdown-menu {
    border: none;
    box-shadow: var(--theme-shadow);
    border-radius: var(--theme-radius);
}

/* =====================================================
   Hero Section
   ===================================================== */
.hero-section {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-dark) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: 100px 100px;
    animation: heroPattern 20s linear infinite;
}

@keyframes heroPattern {
    0% { transform: translateX(0) translateY(0); }
    100% { transform: translateX(-100px) translateY(-100px); }
}

.hero-search .form-control {
    border-radius: var(--theme-radius-pill) 0 0 var(--theme-radius-pill);
    padding: 1rem 1.5rem;
    border: none;
}

.hero-search .btn {
    border-radius: 0 var(--theme-radius-pill) var(--theme-radius-pill) 0;
    padding: 1rem 2rem;
}

/* =====================================================
   Cards
   ===================================================== */
.card {
    border: none;
    border-radius: var(--theme-radius);
    box-shadow: var(--theme-shadow-sm);
    transition: var(--theme-transition);
    background: var(--theme-bg-card);
}

.card:hover {
    box-shadow: var(--theme-shadow);
    transform: translateY(-2px);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--theme-border);
    font-weight: 600;
}

/* Server Card */
.server-card {
    border-left: 4px solid var(--theme-primary);
}

.server-card:hover {
    border-left-color: var(--theme-secondary);
}

.server-card.featured {
    border-left-color: var(--theme-warning);
    background: linear-gradient(90deg, rgba(243, 156, 18, 0.05) 0%, transparent 100%);
}

/* =====================================================
   Buttons
   ===================================================== */
.btn {
    border-radius: var(--theme-radius);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    transition: var(--theme-transition-fast);
}

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

.btn-primary:hover {
    background: var(--theme-primary-hover);
    border-color: var(--theme-primary-hover);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--theme-secondary);
    border-color: var(--theme-secondary);
}

.btn-success:hover {
    background: var(--theme-secondary-hover);
    border-color: var(--theme-secondary-hover);
}

.btn-vote {
    background: linear-gradient(135deg, var(--theme-secondary) 0%, #1abc9c 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
}

.btn-vote:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
}

/* =====================================================
   Forms
   ===================================================== */
.form-control,
.form-select {
    border-radius: var(--theme-radius);
    border: 1px solid var(--theme-border);
    padding: 0.75rem 1rem;
    transition: var(--theme-transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--theme-primary);
    box-shadow: 0 0 0 0.2rem var(--theme-primary-light);
}

/* =====================================================
   Badges
   ===================================================== */
.badge {
    border-radius: var(--theme-radius-pill);
    font-weight: 500;
    padding: 0.35rem 0.75rem;
}

.badge-votes {
    background: linear-gradient(135deg, var(--theme-primary) 0%, #2980b9 100%);
}

.badge-players {
    background: linear-gradient(135deg, var(--theme-secondary) 0%, #27ae60 100%);
}

.badge-premium {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

/* =====================================================
   Stats
   ===================================================== */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--theme-primary);
}

.stat-card .stat-label {
    color: var(--theme-text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* =====================================================
   Footer
   ===================================================== */
.main-footer {
    background: var(--theme-bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}

.main-footer h5 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.main-footer a {
    color: rgba(255, 255, 255, 0.7);
}

.main-footer a:hover {
    color: #ffffff;
}

.main-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 0.5rem;
    transition: var(--theme-transition);
}

.main-footer .social-links a:hover {
    background: var(--theme-primary);
    transform: translateY(-3px);
}

/* =====================================================
   Pagination
   ===================================================== */
.pagination .page-link {
    border-radius: var(--theme-radius);
    margin: 0 0.125rem;
    border: none;
    color: var(--theme-text);
}

.pagination .page-item.active .page-link {
    background: var(--theme-primary);
}

/* =====================================================
   Alerts
   ===================================================== */
.alert {
    border: none;
    border-radius: var(--theme-radius);
    border-left: 4px solid;
}

.alert-success {
    border-left-color: var(--theme-secondary);
    background: rgba(46, 204, 113, 0.1);
}

.alert-danger {
    border-left-color: var(--theme-accent);
    background: rgba(231, 76, 60, 0.1);
}

.alert-warning {
    border-left-color: var(--theme-warning);
    background: rgba(243, 156, 18, 0.1);
}

.alert-info {
    border-left-color: var(--theme-info);
    background: rgba(23, 162, 184, 0.1);
}

/* =====================================================
   Utilities
   ===================================================== */
.hover-shadow:hover {
    box-shadow: var(--theme-shadow) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .stat-card .stat-value {
        font-size: 1.75rem;
    }
}

/* =====================================================
   Dark Mode (optional support)
   ===================================================== */
@media (prefers-color-scheme: dark) {
    .theme-auto {
        --theme-bg: #1a1a2e;
        --theme-bg-card: #16213e;
        --theme-text: #e0e0e0;
        --theme-border: #2d3748;
    }
}
