/* css/modern-style.css */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #13f1fc 0%, #0470dc 100%);
    --danger-gradient: linear-gradient(135deg, #fc5286 0%, #f53844 100%);
    --warning-gradient: linear-gradient(135deg, #fda085 0%, #f6d365 100%);
    --dark-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a78bfa;
    --text-muted: #94a3b8;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-gradient);
    min-height: 100vh;
    color: var(--text-primary);
    background-attachment: fixed;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Prevent elements from overflowing */
.container {
    max-width: 100%;
    overflow-x: hidden;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.row > * {
    padding-left: 10px;
    padding-right: 10px;
}

/* Hero Sections */
.hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 16px;
    padding: 48px 32px;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

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

.hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    font-family: 'Orbitron', sans-serif;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* Cards */
.modern-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

.modern-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.card-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--card-border);
}

.card-title-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title-modern i {
    color: var(--text-secondary);
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 30px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.filter-tab:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: var(--text-primary);
    transform: translateY(-2px);
    text-decoration: none;
}

.filter-tab.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: var(--text-primary);
}

/* Grids */
.modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-live {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    animation: pulse 2s infinite;
}

.status-scheduled, .status-pending {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.status-completed {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Buttons */
.btn-modern {
    padding: 10px 24px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.btn-modern.btn-success {
    background: var(--success-gradient);
}

.btn-modern.btn-danger {
    background: var(--danger-gradient);
}

.btn-modern.btn-warning {
    background: var(--warning-gradient);
}

.btn-modern.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--card-border);
}

/* Tables */
.modern-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.modern-table thead th {
    background: rgba(102, 126, 234, 0.1);
    padding: 15px;
    text-align: left;
    font-weight: 700;
    color: var(--text-secondary);
    border: 1px solid var(--card-border);
}

.modern-table thead th:first-child {
    border-radius: 10px 0 0 10px;
}

.modern-table thead th:last-child {
    border-radius: 0 10px 10px 0;
}

.modern-table tbody tr {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.modern-table tbody tr:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.modern-table tbody td {
    padding: 20px 15px;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.modern-table tbody td:first-child {
    border-left: 1px solid var(--card-border);
    border-radius: 10px 0 0 10px;
}

.modern-table tbody td:last-child {
    border-right: 1px solid var(--card-border);
    border-radius: 0 10px 10px 0;
}

/* Team & Match Cards */
.item-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.item-card:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-5px);
    border-color: rgba(102, 126, 234, 0.3);
    text-decoration: none;
    color: inherit;
}

/* Profile Stats */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Avatar */
.avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
}

.avatar-large:hover {
    transform: scale(1.05);
    border-color: #667eea;
}

.avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(102, 126, 234, 0.3);
    margin-right: 10px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    color: rgba(102, 126, 234, 0.3);
    margin-bottom: 20px;
}

/* Lists */
.modern-list {
    list-style: none;
    padding: 0;
}

.modern-list-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.modern-list-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(10px);
}

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

.fade-in {
    animation: fadeIn 0.8s ease;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }
    
    .main-container {
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .modern-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .btn-modern {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 15px;
        line-height: 1.3;
    }
    
    .modern-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .filter-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .filter-tab {
        width: 100%;
        text-align: center;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .btn-modern {
        padding: 8px 12px;
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
        margin: 3px 0;
        border-radius: 8px;
    }
    
    /* Card adjustments */
    .modern-card {
        padding: 12px;
        margin: 8px 0;
        border-radius: 10px;
    }
    
    /* Table responsiveness */
    .modern-table {
        font-size: 0.8rem;
        width: 100%;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .modern-table thead,
    .modern-table tbody,
    .modern-table th,
    .modern-table td,
    .modern-table tr {
        display: block;
    }
    
    .modern-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    .modern-table tr {
        border: 1px solid var(--card-border);
        border-radius: 8px;
        margin-bottom: 10px;
        padding: 10px;
        background: var(--card-bg);
    }
    
    .modern-table td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        text-align: right;
        white-space: normal;
        word-wrap: break-word;
        padding: 8px !important;
    }
    
    .modern-table td:before {
        content: attr(data-label) ": ";
        position: absolute;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: var(--text-secondary);
    }
    
    /* Hide less important columns on mobile */
    .hide-mobile {
        display: none !important;
    }
    
    /* Navigation adjustments */
    .navbar {
        padding: 10px 15px;
    }
    
    .nav-brand {
        font-size: 1.3rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    /* Modal adjustments */
    .modal-content {
        margin: 10px;
        border-radius: 15px;
    }
    
    .modal-header {
        padding: 15px;
    }
    
    .modal-body {
        padding: 15px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.3rem;
        line-height: 1.1;
        margin-bottom: 8px;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
        margin-bottom: 12px;
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .modern-card {
        padding: 10px;
        border-radius: 8px;
        margin: 5px 0;
    }
    
    .btn-modern {
        padding: 8px 12px;
        font-size: 0.75rem;
        border-radius: 6px;
    }
    
    /* Stack elements vertically on very small screens */
    .d-flex {
        flex-direction: column !important;
    }
    
    .d-flex.keep-horizontal {
        flex-direction: row !important;
    }
    
    /* Adjust spacing */
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    .p-4 {
        padding: 1rem !important;
    }
    
    /* Text sizing */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }
    h5 { font-size: 1rem; }
    h6 { font-size: 0.9rem; }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .btn-modern:hover {
        transform: none;
        box-shadow: none;
    }
    
    .btn-modern:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Larger touch targets */
    .btn, .btn-modern, button, input[type="submit"] {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    /* Better tap targets */
    a, button, [onclick] {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}