/**
 * ============================================================================
 * HytaBansWeb - Modern Glass Design - Home Page
 * ============================================================================
 */

/* ==========================================
   HERO - Glassmorphism Search Hero
   ========================================== */
.hero-search {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(139, 92, 246, 0.08), rgba(99, 102, 241, 0.05));
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 24px;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
}

.hero-search::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(124, 58, 237, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    -webkit-animation: heroFloat 20s ease-in-out infinite;
    animation: heroFloat 20s ease-in-out infinite;
}

.hero-search::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(9, 9, 11, 0.3) 100%);
    pointer-events: none;
}

@-webkit-keyframes heroFloat {
    0%, 100% { -webkit-transform: translate(0, 0) rotate(0deg); transform: translate(0, 0) rotate(0deg); }
    33% { -webkit-transform: translate(30px, -30px) rotate(5deg); transform: translate(30px, -30px) rotate(5deg); }
    66% { -webkit-transform: translate(-20px, 20px) rotate(-5deg); transform: translate(-20px, 20px) rotate(-5deg); }
}

@keyframes heroFloat {
    0%, 100% { -webkit-transform: translate(0, 0) rotate(0deg); transform: translate(0, 0) rotate(0deg); }
    33% { -webkit-transform: translate(30px, -30px) rotate(5deg); transform: translate(30px, -30px) rotate(5deg); }
    66% { -webkit-transform: translate(-20px, 20px) rotate(-5deg); transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-search-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.hero-title span {
    background: linear-gradient(135deg, #7c3aed 0%, #a78bfa 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(124, 58, 237, 0.3);
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

/* Search Box */
.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-wrapper {
    display: -webkit-flex;
    display: flex;
    background: rgba(24, 24, 27, 0.8);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    padding: 0.5rem;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(124, 58, 237, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(124, 58, 237, 0.1);
}

.search-input-wrapper:focus-within {
    border-color: #7c3aed;
    -webkit-box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 0 60px rgba(124, 58, 237, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), 0 0 60px rgba(124, 58, 237, 0.2);
    -webkit-transform: translateY(-2px);
    transform: translateY(-2px);
}

.search-input-wrapper .form-control {
    border: none;
    background: transparent;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    color: var(--text-primary);
}

.search-input-wrapper .form-control:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
    outline: none;
}

.search-input-wrapper .form-control::-webkit-input-placeholder {
    color: var(--text-secondary);
}

.search-input-wrapper .form-control::placeholder {
    color: var(--text-secondary);
}

.search-input-wrapper .btn {
    border-radius: 14px;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    border: none;
    font-weight: 600;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.search-input-wrapper .btn:hover {
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
    -webkit-transform: scale(1.02);
    transform: scale(1.02);
    -webkit-box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

/* ==========================================
   STATS DASHBOARD - Modern Bento Grid
   ========================================== */
.stats-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (max-width: 991px) {
    .stats-bento {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-bento {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: linear-gradient(145deg, rgba(24, 24, 27, 0.9), rgba(24, 24, 27, 0.6));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 1.5rem;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    -webkit-transform: translateY(-8px) scale(1.02);
    transform: translateY(-8px) scale(1.02);
    -webkit-box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 20px 20px 0 0;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.05;
    -webkit-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
}

.stat-card:hover::after {
    opacity: 0.1;
}

.stat-card.bans::before { background: linear-gradient(90deg, #ef4444, #f87171); }
.stat-card.bans::after { background: radial-gradient(circle, #ef4444 0%, transparent 70%); }
.stat-card.bans:hover { border-color: rgba(239, 68, 68, 0.3); -webkit-box-shadow: 0 20px 40px rgba(239, 68, 68, 0.15); box-shadow: 0 20px 40px rgba(239, 68, 68, 0.15); }

.stat-card.mutes::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.stat-card.mutes::after { background: radial-gradient(circle, #f59e0b 0%, transparent 70%); }
.stat-card.mutes:hover { border-color: rgba(245, 158, 11, 0.3); -webkit-box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15); box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15); }

.stat-card.warnings::before { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.stat-card.warnings::after { background: radial-gradient(circle, #3b82f6 0%, transparent 70%); }
.stat-card.warnings:hover { border-color: rgba(59, 130, 246, 0.3); -webkit-box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15); box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15); }

.stat-card.kicks::before { background: linear-gradient(90deg, #6b7280, #9ca3af); }
.stat-card.kicks::after { background: radial-gradient(circle, #6b7280 0%, transparent 70%); }
.stat-card.kicks:hover { border-color: rgba(107, 114, 128, 0.3); -webkit-box-shadow: 0 20px 40px rgba(107, 114, 128, 0.15); box-shadow: 0 20px 40px rgba(107, 114, 128, 0.15); }

.stat-header {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    font-size: 1.35rem;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    -webkit-transform: scale(1.1) rotate(5deg);
    transform: scale(1.1) rotate(5deg);
}

.stat-card.bans .stat-icon { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(239, 68, 68, 0.1)); color: #ef4444; }
.stat-card.mutes .stat-icon { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.1)); color: #f59e0b; }
.stat-card.warnings .stat-icon { background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1)); color: #3b82f6; }
.stat-card.kicks .stat-icon { background: linear-gradient(135deg, rgba(107, 114, 128, 0.2), rgba(107, 114, 128, 0.1)); color: #6b7280; }

.stat-badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.stat-badge.active { 
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1)); 
    color: #22c55e; 
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.stat-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.25rem;
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}

.stat-total {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-link {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    gap: 0.35rem;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.stat-link:hover {
    color: #a78bfa;
    gap: 0.5rem;
}

/* ==========================================
   RECENT ACTIVITY - Timeline Style
   ========================================== */
.activity-section {
    margin-bottom: var(--space-8);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.section-title i {
    color: var(--primary);
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

@media (max-width: 991px) {
    .activity-grid {
        grid-template-columns: 1fr;
    }
}

.activity-card {
    background: var(--card-bg);
    -webkit-backdrop-filter:blur(20px);backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.activity-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-color);
}

.activity-card-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: 600;
    color: var(--text-primary);
}

.activity-card-title i {
    font-size: 1.1rem;
}

.activity-card-title.bans i { color: var(--danger); }
.activity-card-title.mutes i { color: var(--warning); }

.activity-card-body {
    padding: var(--space-4);
}

.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.activity-item:hover {
    background: var(--hover-bg);
}

.activity-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.activity-info {
    flex: 1;
    min-width: 0;
}

.activity-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.activity-reason {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-meta {
    text-align: right;
    flex-shrink: 0;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.activity-status {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.activity-status.active { background: rgba(var(--danger-rgb), 0.1); color: var(--danger); }
.activity-status.inactive { background: rgba(var(--success-rgb), 0.1); color: var(--success); }

.activity-card-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.activity-card-footer .btn {
    width: 100%;
}

/* Empty State */
.activity-empty {
    text-align: center;
    padding: var(--space-10);
}

.activity-empty-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.activity-empty-text {
    color: var(--text-tertiary);
}

/* ==========================================
   PUNISHMENT LIST (Shared)
   ========================================== */
.punishment-list {
    display: flex;
    flex-direction: column;
}

.punishment-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.punishment-item:hover {
    background: var(--hover-bg);
}

/* ==========================================
   SEARCH RESULTS
   ========================================== */
#search-results {
    margin-top: var(--space-6);
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
}

.search-result-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.search-result-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   CLICKABLE ROW
   ========================================== */
.clickable-row {
    cursor: pointer;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .hero-search {
        padding: var(--space-8) var(--space-4);
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .search-input-wrapper {
        flex-direction: column;
        gap: var(--space-2);
    }
    
    .search-input-wrapper .btn {
        width: 100%;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}
