/* ===== FF Esports BD - Custom Styles ===== */

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f0f1a; }
::-webkit-scrollbar-thumb { background: #2a2a3e; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #ff6b35; }

/* Safe area for iPhones */
.safe-area-bottom { padding-bottom: env(safe-area-inset-bottom, 0); }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideIn {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(255,107,53,0.3); }
    50% { box-shadow: 0 0 20px rgba(255,107,53,0.6); }
}
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.animate-fadeInUp { animation: fadeInUp 0.5s ease-out; }
.animate-fadeIn { animation: fadeIn 0.3s ease-out; }
.animate-slideIn { animation: slideIn 0.4s ease-out; }

/* Staggered children animation */
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > * { opacity: 0; animation: fadeInUp 0.4s ease-out forwards; }

/* Bottom Nav */
.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.2s;
    border-radius: 8px;
}
.bottom-nav-item.active,
.bottom-nav-item:hover {
    color: #ff6b35;
}
.bottom-nav-item.active svg { stroke-width: 2.5; }

/* Cards */
.game-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16162b 100%);
    border: 1px solid #2a2a3e;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.game-card:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,107,53,0.15);
}

/* Neon glow effects */
.neon-orange { text-shadow: 0 0 10px rgba(255,107,53,0.5); }
.neon-border { box-shadow: 0 0 15px rgba(255,107,53,0.2), inset 0 0 15px rgba(255,107,53,0.05); }

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #ff6b35, #ff2d55, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-solo { background: rgba(139,92,246,0.2); color: #8b5cf6; }
.badge-duo { background: rgba(16,185,129,0.2); color: #10b981; }
.badge-squad { background: rgba(255,107,53,0.2); color: #ff6b35; }
.badge-open { background: rgba(16,185,129,0.2); color: #10b981; }
.badge-upcoming { background: rgba(59,130,246,0.2); color: #3b82f6; }
.badge-live { background: rgba(255,45,85,0.2); color: #ff2d55; animation: pulse-glow 2s infinite; }
.badge-completed { background: rgba(107,114,128,0.2); color: #6b7280; }
.badge-full { background: rgba(245,158,11,0.2); color: #f59e0b; }
.badge-pending { background: rgba(245,158,11,0.2); color: #f59e0b; }
.badge-approved { background: rgba(16,185,129,0.2); color: #10b981; }
.badge-rejected { background: rgba(255,45,85,0.2); color: #ff2d55; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    outline: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: linear-gradient(135deg, #ff6b35, #e85d26); color: white; }
.btn-primary:hover { background: linear-gradient(135deg, #e85d26, #d04f1c); box-shadow: 0 4px 15px rgba(255,107,53,0.4); }
.btn-danger { background: linear-gradient(135deg, #ff2d55, #e0264a); color: white; }
.btn-danger:hover { box-shadow: 0 4px 15px rgba(255,45,85,0.4); }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: white; }
.btn-accent { background: linear-gradient(135deg, #8b5cf6, #7c3aed); color: white; }
.btn-outline { background: transparent; border: 1px solid #2a2a3e; color: #9ca3af; }
.btn-outline:hover { border-color: #ff6b35; color: #ff6b35; }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 8px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Form inputs */
.form-input {
    width: 100%;
    padding: 10px 14px;
    background: #0f0f1a;
    border: 1px solid #2a2a3e;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    transition: border-color 0.2s;
    outline: none;
}
.form-input:focus { border-color: #ff6b35; box-shadow: 0 0 0 3px rgba(255,107,53,0.1); }
.form-input::placeholder { color: #4b5563; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: #9ca3af; margin-bottom: 6px; }
.form-select {
    width: 100%;
    padding: 10px 14px;
    background: #0f0f1a;
    border: 1px solid #2a2a3e;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}
.form-select:focus { border-color: #ff6b35; }

/* Toast */
.toast {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
    max-width: 350px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toast-success { background: #065f46; border: 1px solid #10b981; color: #a7f3d0; }
.toast-error { background: #7f1d1d; border: 1px solid #ff2d55; color: #fecaca; }
.toast-info { background: #1e3a5f; border: 1px solid #3b82f6; color: #bfdbfe; }

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #1a1a2e 25%, #252540 50%, #1a1a2e 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    border-radius: 8px;
}

/* Modal */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeIn 0.2s;
}
.modal-content {
    background: #1a1a2e;
    border: 1px solid #2a2a3e;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    animation: fadeInUp 0.3s;
}

/* Stats grid */
.stat-card {
    background: linear-gradient(135deg, #1a1a2e, #16162b);
    border: 1px solid #2a2a3e;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.stat-value { font-size: 24px; font-weight: 800; }
.stat-label { font-size: 11px; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }

/* Countdown */
.countdown-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    background: #0f0f1a;
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 50px;
}
.countdown-value { font-size: 20px; font-weight: 800; color: #ff6b35; }
.countdown-label { font-size: 9px; color: #6b7280; text-transform: uppercase; }

/* Tab system */
.tab-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}
.tab-btn.active, .tab-btn:hover {
    color: #ff6b35;
    border-bottom-color: #ff6b35;
}

/* Admin sidebar */
.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    color: #9ca3af;
    transition: all 0.2s;
}
.admin-nav-item:hover, .admin-nav-item.active {
    background: rgba(255,107,53,0.1);
    color: #ff6b35;
}

/* Misc */
.truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
