/* FreeFire Gaming Theme CSS - Responsive */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #ff6600;
    --secondary: #ff3300;
    --dark: #0a0a14;
    --darker: #05050a;
    --light: #f0f0f0;
    --accent: #00ccff;
    --success: #00ff88;
    --warning: #ffaa00;
    --danger: #ff4444;
    --info: #33ccff;
    --gray: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--light);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 51, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 204, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 15px;
}

/* Mobile First Approach */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
        padding: 20px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* Header Styles */
.header {
    background: linear-gradient(to right, rgba(10, 10, 20, 0.95), rgba(5, 5, 10, 0.98));
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
    gap: 1rem;
}

@media (min-width: 768px) {
    .navbar {
        flex-direction: row;
        justify-content: space-between;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo h1 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(255, 102, 0, 0.3);
    letter-spacing: 1px;
}

@media (min-width: 768px) {
    .logo h1 {
        font-size: 2.2rem;
    }
}

.logo-icon {
    color: var(--primary);
    font-size: 2rem;
    filter: drop-shadow(0 0 8px rgba(255, 102, 0, 0.5));
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    list-style: none;
    width: 100%;
}

@media (min-width: 768px) {
    .nav-links {
        width: auto;
        justify-content: flex-end;
        gap: 1.5rem;
    }
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(255, 102, 0, 0.5);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.8rem;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

@media (max-width: 767px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links a {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }
}

/* Card Styles */
.card {
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.85), rgba(10, 10, 20, 0.9));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 102, 0, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 12px 30px rgba(255, 102, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .card {
        padding: 2rem;
    }
}

/* Form Styles */
.form-container {
    width: 100%;
    margin: 2rem auto;
    animation: fadeIn 0.8s ease-out;
}

@media (min-width: 768px) {
    .form-container {
        max-width: 500px;
        margin: 3rem auto;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-title {
    text-align: center;
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    color: var(--light);
    text-shadow: 0 0 15px rgba(0, 204, 255, 0.5);
}

@media (min-width: 768px) {
    .form-title {
        font-size: 2.2rem;
        margin-bottom: 2rem;
    }
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
}

.form-input {
    width: 100%;
    padding: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 102, 0, 0.3);
    border-radius: 8px;
    color: var(--light);
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 102, 0, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
    min-width: 120px;
}

.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: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.4);
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
}

.btn-secondary {
    background: linear-gradient(45deg, #00ccff, #0088ff);
}

.btn-success {
    background: linear-gradient(45deg, #00ff88, #00cc66);
}

.btn-danger {
    background: linear-gradient(45deg, #ff4444, #cc0000);
}

.btn-warning {
    background: linear-gradient(45deg, #ffaa00, #ff8800);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-width: auto;
}

/* Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    animation: slideIn 0.5s ease-out;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-error {
    background: linear-gradient(45deg, rgba(255, 51, 0, 0.2), rgba(255, 0, 0, 0.1));
    border: 1px solid rgba(255, 51, 0, 0.3);
    color: #ff6666;
}

.alert-success {
    background: linear-gradient(45deg, rgba(0, 255, 136, 0.2), rgba(0, 204, 102, 0.1));
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: #66ffcc;
}

.alert-info {
    background: linear-gradient(45deg, rgba(51, 204, 255, 0.2), rgba(0, 136, 255, 0.1));
    border: 1px solid rgba(51, 204, 255, 0.3);
    color: #66ccff;
}

.alert-warning {
    background: linear-gradient(45deg, rgba(255, 170, 0, 0.2), rgba(255, 136, 0, 0.1));
    border: 1px solid rgba(255, 170, 0, 0.3);
    color: #ffcc66;
}

/* Progress Bar */
.progress-container {
    margin: 1.5rem 0;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--accent));
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
}

/* QR Code Container */
.qr-container {
    text-align: center;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    margin: 1.5rem 0;
}

.qr-code {
    max-width: 250px;
    height: auto;
    margin: 0 auto;
    padding: 10px;
    background: white;
    border-radius: 10px;
}

/* Payment Instructions */
.payment-instructions {
    background: rgba(0, 204, 255, 0.1);
    border: 1px solid var(--accent);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.payment-steps {
    list-style: none;
    margin-top: 1rem;
}

.payment-steps li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.payment-steps li:last-child {
    border-bottom: none;
}

.payment-steps .step-number {
    background: var(--primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Dashboard Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-family: 'Orbitron', monospace;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(255, 102, 0, 0.5);
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 3rem;
    }
}

.stat-label {
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Tournaments Grid */
.tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (max-width: 576px) {
    .tournaments-grid {
        grid-template-columns: 1fr;
    }
}

.tournament-card {
    text-align: center;
    position: relative;
}

.tournament-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-upcoming {
    background: var(--success);
    color: white;
}

.status-full {
    background: var(--danger);
    color: white;
}

.status-live {
    background: var(--warning);
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.status-ended {
    background: var(--gray);
    color: white;
}

.tournament-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-top: 0.5rem;
}

.tournament-prize {
    color: var(--warning);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 1rem 0;
}

.tournament-details {
    color: var(--light);
    margin: 1rem 0;
    line-height: 1.6;
    text-align: left;
}

.tournament-details p {
    margin: 0.5rem 0;
    display: flex;
    justify-content: space-between;
}

.tournament-date {
    color: var(--accent);
    font-weight: 600;
    margin: 1rem 0;
}

/* Capacity Indicator */
.capacity-indicator {
    margin: 1rem 0;
    text-align: center;
}

.capacity-text {
    font-size: 0.9rem;
    color: var(--light);
    margin-bottom: 0.5rem;
}

/* Action Grid */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

@media (max-width: 576px) {
    .action-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 102, 0, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.95), rgba(10, 10, 20, 0.98));
    border: 2px solid var(--primary);
    border-radius: 15px;
    padding: 1.5rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-block { display: block !important; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-success { background: var(--success); color: white; }
.badge-warning { background: var(--warning); color: white; }
.badge-danger { background: var(--danger); color: white; }
.badge-info { background: var(--accent); color: white; }

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Countdown Timer */
.countdown {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.countdown-item {
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    border-radius: 5px;
    min-width: 60px;
}

.countdown-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--light);
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    background: rgba(255, 102, 0, 0.2);
    color: var(--primary);
    font-weight: 600;
}

tbody tr:hover {
    background: rgba(255, 102, 0, 0.1);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 102, 0, 0.3);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading {
    text-align: center;
    padding: 2rem;
}

/* Swiper for Mobile Carousel */
.swiper-container {
    width: 100%;
    height: 300px;
    margin: 2rem 0;
}

.swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    overflow: hidden;
}

/* Hide scrollbar but allow scrolling */
.scrollable {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255, 255, 255, 0.1);
}

.scrollable::-webkit-scrollbar {
    width: 6px;
}

.scrollable::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.scrollable::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* Image Responsive */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Fixed Bottom Button for Mobile */
.fixed-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 20, 0.95);
    padding: 1rem;
    border-top: 1px solid var(--primary);
    z-index: 1000;
    display: none;
}

@media (max-width: 768px) {
    .fixed-bottom {
        display: block;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}