/* ===================================== 
   PAGE-SPECIFIC STYLES
   Moved from components.css for better organization
   ===================================== */

/* ===== HOMEPAGE STYLES ===== */
.landing,.admin-page {
    padding: 1rem 0;
}

/* Announcement Banner */
.announcement-icon {
    font-size: 1.2rem;
}

.announcement-text {
    font-family: var(--font-primary);
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: center;
}

.announcement-text p {
    margin: 0;
}

.announcement-text a {
    color: rgb(96 165 250 / 90%);
}

.announcement-text a:hover {
    color: #60a5fa;
}

/* Minimal Announcement Banner */
.announcement-minimal {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 53, 0, 0.1);
    border: 1px solid rgba(255, 53, 0, 0.15);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1rem;
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcement-minimal:hover {
    background: rgba(255, 53, 0, 0.15);
    border-color: rgba(255, 53, 0, 0.25);
}

.announcement-icon-wrapper {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.announcement-icon {
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

.announcement-minimal .announcement-text {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    line-height: 1.4;
    letter-spacing: 0.25px;
}

/* Hero Section - Welcome banner with personalized content */
.hero-section {
    padding: 1rem 0;
    text-align: center;
    position: relative;
    height: auto;
    margin-bottom: 1.5rem;
}

/* AI Search Section - Perplexity Inspired */
.ai-search-section {
    padding: 3rem 0 4rem;
    text-align: center;
    position: relative;
    height: 400px; /* Fixed height for desktop to prevent layout shift */
}

.ai-search-header {
    text-align: center;
    transform: translateX(0);
    will-change: opacity;
}

.ai-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.gradient-text {
    background: linear-gradient(135deg, #ff3500, #ff6b35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-highlight {
    color: #ff3500;
}

.ai-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin: 0;
}

.ai-subtitle a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--color-primary);
    transition: var(--transition-normal);
}

.ai-subtitle a:hover {
    color: var(--color-primary-hover);
    border-bottom-color: var(--color-primary-hover);
}

.ai-search-box {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    position: relative;
    padding: 1.5rem;
    backdrop-filter: blur(40px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-input-group:focus-within {
    border-color: rgba(255, 53, 0, 0.4);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(255, 53, 0, 0.1);
}

.ai-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1rem;
    font-family: var(--font-primary);
    resize: none;
    outline: none;
    min-height: 24px;
    max-height: 120px;
    line-height: 1.5;
    padding-left: 0.25rem;
}

.ai-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-actions {
    display: flex;
    gap: 0.5rem;
}

.attach-btn, .ai-send-btn {
    height: 36px;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.attach-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: auto;
    padding: 0 0.75rem;
    gap: 0.4rem;
}

.attach-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.attach-btn svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.attach-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.ai-send-btn {
    width: 36px;
    background: linear-gradient(135deg, #ff3500, #ff5722);
    box-shadow: 0 2px 8px rgba(255, 53, 0, 0.3);
}

.ai-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 53, 0, 0.4);
}

.ai-send-btn svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
    transition: opacity 0.2s ease, max-height 0.3s ease;
}

/* Active state for AI search */
.ai-search-section.active .ai-search-header {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    display: none;
}

.ai-search-section.active .quick-prompts {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    display: none;
}

.ai-search-section:not(.active) .ai-search-header {
    opacity: 1;
    visibility: visible;
    margin-bottom: 2.5rem;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.ai-search-section:not(.active) .quick-prompts {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.ai-search-section.active .ai-input {
    min-height: 48px;
    rows: 2;
}

/* Suggested searches section */
.suggested-searches {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    min-height: auto;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    width: 100%;
    transition: opacity 0s ease, visibility 0s ease;
}

.ai-search-section.active .suggested-searches {
    opacity: 1;
    visibility: visible;
    position: relative;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-width: 100%;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 1rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.1s ease;
    text-align: left;
}

.suggestion-item::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #60a5fa;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 18 12 15 21 9 3 6 12 2 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
    -webkit-mask-size: contain;
    flex-shrink: 0;
}

.suggestion-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding-left: 1.25rem;
}

/* ===== AI ESPORTS DAILY ===== */

/* Timestamp in section header */
.ai-daily-timestamp {
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* AI Esports Daily container - now inside section-header-dark */
.ai-esports-daily-list {
    padding: 0.75rem 0;
    margin-top: 0.75rem;
    margin-bottom: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Two-line suggestion items */
.ai-esports-daily-list .suggestion-item {
    background: transparent;
    border: none;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    transition: var(--transition-all);
}

.ai-esports-daily-list .suggestion-item::before {
    display: none;
}

.ai-esports-daily-list .suggestion-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ai-esports-daily-list .suggestion-item:hover .ai-daily-body {
    color: rgba(255, 255, 255, 0.75);
}

.ai-esports-daily-list .suggestion-item:hover .ai-daily-icon {
    background: rgba(255, 255, 255, 0.15);
}

.ai-esports-daily-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.5rem;
    padding-top: 0.75rem;
    font-size: 0.6rem;
    gap: 0.25rem;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    width: 100%;
    display: flex;
    justify-content: space-between;
    letter-spacing: 0.35px;
}

/* Icon wrapper - fixed size for all icon types */
.ai-daily-icon {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: var(--glass-bg);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-all);
}

.ai-daily-icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.ai-daily-icon .region-flag {
    width: 20px;
    height: 15px;
}

.ai-daily-icon .region-badge {
    font-size: 0.65rem;
    padding: 2px 4px;
}

.ai-daily-icon .region-emoji {
    font-size: 1.5em;
}

.ai-daily-icon .region-flags-group {
    gap: 2px;
}

.ai-daily-icon .region-flags-group img {
    height: 14px;
}

.ai-daily-icon .series-icon-small {
    filter: brightness(0) invert(1); /* SVG only - makes black SVG white */
}

.ai-daily-icon .series-icon-png {
    /* PNG icons display as-is with original colors */
}

/* Content wrapper with new structure */
.ai-daily-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    letter-spacing: 0.35px;
}

/* Game tag - small cyan text (inline with title) */
.ai-daily-game-tag {
    display: inline;
    font-weight: 100;
    background: var(--glass-bg);
    font-size: 0.65rem;
    padding: 0 6px;
    border-radius: var(--border-radius-sm);
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Title - bold first line */
.ai-daily-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    display: flex;
    align-items: center;
    align-content: center;
    gap: 0.5rem;
}

/* Body - lighter second line */
.ai-daily-body {
    font-size: 0.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.4;
    transition: var(--transition-all);
}

.prompt-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0.25rem 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prompt-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 53, 0, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
}

.chip-icon {
    font-size: 1rem;
}

/* ===== LEAGUES PAGE STYLES ===== */
.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.league-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    transition: var(--transition-all);
    backdrop-filter: blur(10px);
    z-index: 1;
    min-height: 280px;
    padding: 1.5rem;
}

.league-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.league-status-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1;
}

.league-status-indicator.status-live {
    background: linear-gradient(90deg, #ff3500, #ff6b35);
}

.league-status-indicator.status-signup {
    background: linear-gradient(90deg, #28a745, #34ce57);
}

.league-status-indicator.status-upcoming {
    background: linear-gradient(90deg, #007bff, #4dabf7);
}

.league-status-indicator.status-completed {
    background: linear-gradient(90deg, #6c757d, #adb5bd);
}

.league-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.league-header {
    margin-bottom: 1rem;
}

.league-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.4rem 0;
    line-height: 1.2;
}

.league-meta {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.league-game {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: #ff3500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.league-tier {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.league-tier.tier-tier1 {
    background: rgba(255, 215, 0, 0.15);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.league-tier.tier-tier2 {
    background: rgba(192, 192, 192, 0.15);
    color: #c0c0c0;
    border: 1px solid rgba(192, 192, 192, 0.3);
}

.league-tier.tier-tier3 {
    background: rgba(205, 127, 50, 0.15);
    color: #cd7f32;
    border: 1px solid rgba(205, 127, 50, 0.3);
}

.league-info {
    margin-bottom: 1.25rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2px;
}

.info-group {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.info-label {
    font-family: var(--font-primary);
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
    /* text-transform: capitalize; */
    text-align: right;
}

.info-value.prize {
    color: #ff3500;
    font-weight: 700;
}

.info-value.highlight {
    color: #ff3500;
    font-weight: 600;
}

.info-separator {
    border-top: 2px solid rgba(255, 255, 255, 0.08);
    /* margin: 0.75rem 0; */
    padding-bottom: 2px;
    width: 100%;
}

.verification-badge-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.event-organizer {
    display: flex;
    align-items: center;
}

/* Region flag display in event cards */
.region-flag {
    vertical-align: middle;
    height: 16px;
    width: auto;
    display: inline-block;
    border-radius: 2px;
}

/* Small flag variant for admin panel */
.region-flag.flag-small {
    vertical-align: baseline;
    height: 10px;
}

/* Region multi-flag group */
.region-flags-group {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    vertical-align: middle;
}

.region-flags-group img {
    height: 12px;
    width: auto;
    border-radius: 2px;
}

/* Explicit rule for small variant in multi-flag groups */
.region-flags-group .region-flag.flag-small {
    height: 10px;
}

/* Region badge display */
.region-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Region emoji display */
.region-emoji {
    font-size: 1.1em;
    line-height: 1;
    vertical-align: middle;
}

.league-btn {
    flex: 1;
    padding: 0.6rem 0.85rem;
    border-radius: 6px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    transition: var(--transition-all);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.league-btn.primary {
    background: #28a745;
    color: #ffffff;
}

.league-btn.primary:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
}

.league-btn.secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.league-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

.league-btn.live {
    background: linear-gradient(135deg, #ff3500, #ff6b35);
    color: #ffffff;
    position: relative;
}

.league-btn.live:hover {
    background: linear-gradient(135deg, #e63000, #ff5722);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 53, 0, 0.3);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    display: inline-block;
    animation: var(--animation-pulse);
    margin-right: 2px;
}

/* League Management */
.league-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    transition: var(--transition-all);
    min-height: 110px;
}

.league-row:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.league-row .league-content h3 {
    font-family: var(--font-heading);
    margin: 0;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
}

.league-badges {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}

.detail-item {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.league-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ===== EVENTS PAGE STYLES ===== */
.event-status-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Events Sections */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

/* No Events */
.no-events {
    text-align: center;
    padding: 4rem 2rem;
    opacity: 0.6;
}

.no-events h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.no-events p {
    font-family: var(--font-primary);
    font-size: 1rem;
}

/* Events Section Dark Theme */
.events-section-dark {
    margin: 0;
}

/* Add proper spacing when no announcement banner */
.events-section-dark.no-announcement {
    margin-top: 0; /* Use default landing padding */
}

.section-header-dark {
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.header-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.1rem;
}

.header-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title-dark {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    color: #eff1f3;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
}

.title-subtitle {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(239, 241, 243, 0.75);
    letter-spacing: 0;
    text-transform: none;
}

.scroll-to-events {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    color: rgba(239, 241, 243, 0.7);
}

.scroll-to-events:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.scroll-to-events svg {
    width: 16px;
    height: 16px;
    stroke: rgba(239, 241, 243, 0.7);
    transition: stroke 0.2s ease, transform 0.3s ease;
}

.scroll-to-events:hover svg {
    stroke: rgba(239, 241, 243, 0.9);
}

.scroll-to-events.scrolled svg {
    transform: rotate(180deg);
}

/* For You Filter Button */
.for-you-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(239, 241, 243, 0.7);
}

.for-you-filter svg {
    width: 16px;
    height: 16px;
    fill: rgba(239, 241, 243, 0.7);
    transition: fill 0.2s ease;
}

.for-you-filter:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.for-you-filter:hover svg {
    fill: rgba(239, 241, 243, 0.9);
}

.for-you-filter.active {
    background: rgba(79, 127, 255, 0.15);
    border-color: rgba(79, 127, 255, 0.3);
}

.for-you-filter.active svg {
    fill: #7fa5ff;
}

.for-you-filter.active:hover {
    background: rgba(79, 127, 255, 0.2);
    border-color: rgba(79, 127, 255, 0.4);
}

.for-you-filter.active:hover svg {
    fill: #99b7ff;
}

/* Events Grid Layouts */
.events-grid-dark {
    display: grid;
    gap: 1rem;
}

/* Normal layout: 3 columns, auto rows (adapts to content) */
.events-grid-dark.normal {
    grid-template-columns: repeat(3, 1fr);
}


/* Event Card Dark Theme */
.event-card-dark {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* border-color: rgb(30 20 33); */
    border-color: hsl(245deg 10% 25% / 65%);
    border-radius: var(--border-radius-xl);
    padding: 1.25rem;
    backdrop-filter: blur(40px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 0.75rem;
}

.event-card-dark:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.event-card-dark.admin-card:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.02);
}

.event-card-dark.live {
    border-color: rgba(255, 53, 0, 0.2);
    /*background: linear-gradient(135deg, rgba(255, 53, 0, 0.05), rgba(0, 0, 0, 0.3)); */
    box-shadow: 0 -60px 100px 0 rgba(255, 53, 0, 0.15) inset;
    background: radial-gradient(circle at top right, rgba(255, 53, 0, 0.15), rgba(255, 53, 0, 0.05), transparent, transparent, transparent);
}

.event-card-dark.live:hover {
    background: rgba(255, 53, 0, 0.05);
}

.event-card-dark.active {
    background: radial-gradient(circle at top right, rgb(34 197 94 / 20%), rgb(34 197 94 / 3%), transparent, transparent, transparent);
    /*border: 1px solid rgb(15 33 33); */
}

.event-card-dark.active:hover {
    background: radial-gradient(circle at top right, rgb(34 197 94 / 25%), rgb(34 197 94 / 5%), transparent, transparent, transparent), rgb(34 197 94 / 10%);
}

.event-header-dark {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-badges-dark {
    display: flex;
    gap: 0.3rem;
}

.game-tag-dark {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 0.2rem 0.6rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: none;
}

.event-name-dark {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

/* Game icons for event cards */
.game-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    fill: #fff;
}

.event-name-text {
    display: inline;
}

.event-info-dark {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Compact inline layout for admin cards */
.admin-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-card-dark.admin-card {
    gap: 0.5rem;
}

.admin-title-row .event-name-dark {
    margin: 0;
    flex: 1;
}

.admin-card .event-info-dark {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    flex: 1;
}

.admin-card .info-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 0 0 auto;
}

.event-footer-dark {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.admin-card .admin-actions {
    margin-top: 0;
    flex: 0 0 auto;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.event-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-action-btn.watch {
    background: linear-gradient(135deg, #ff3500, #ff5722);
    color: #ffffff;
    border: none;
}

.event-action-btn.watch:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 53, 0, 0.3);
}

.event-action-btn.details {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.event-action-btn.details:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.event-action-btn.join-tournament {
    background: rgba(255, 53, 0, 0.08);
    border: 1px solid rgba(255, 53, 0, 0.2);
    color: #ff3500;
}

.event-action-btn.join-tournament:hover {
    background: rgba(255, 53, 0, 0.15);
    border-color: rgba(255, 53, 0, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 53, 0, 0.15);
}

.event-action-btn svg {
    width: 14px;
    height: 14px;
}

/* Join button disabled states */
.event-action-btn.join-tournament.closed,
.event-action-btn.join-tournament.completed {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
    cursor: not-allowed;
}

.event-action-btn.join-tournament.closed:hover,
.event-action-btn.join-tournament.completed:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
}

/* Closed state - red X icon */
.event-action-btn.join-tournament.closed svg {
    stroke: var(--color-primary);
}

/* Completed state - grey check icon */
.event-action-btn.join-tournament.completed svg {
    stroke: rgba(255, 255, 255, 0.3);
}

/* Explore Section */
.explore-section {
    text-align: center;
    margin: 1.5rem 0 3rem 0;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: var(--border-radius-xl);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.explore-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 53, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.explore-text {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
}

.explore-arrow {
    width: 20px;
    height: 20px;
    color: #ff3500;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.explore-btn:hover .explore-arrow {
    transform: translateX(3px);
}

/* ===== ADMIN PAGE STYLES ===== */

/* Admin Layout */
.admin-layout {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.admin-nav {
    width: 250px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--navbar-height) + 1.5rem);
    height: fit-content;
    max-height: calc(100vh - var(--navbar-height) - 3rem);
    overflow-y: auto;
}

.admin-nav-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.25rem;
}

.sidebar-link:hover {
    color: rgba(255, 255, 255, 0.9);
    background: var(--glass-bg-hover);
}

.sidebar-link.active {
    color: var(--color-primary-dark);
    background: rgba(255, 53, 0, 0.1);
    font-weight: 600;
}

.nav-icon {
    font-size: 1.1rem;
}

.admin-content {
    flex: 1;
    min-width: 0;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.page-content {
    padding: 0.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.stats-grid .stat-card {
    padding: 1.5rem;
    text-align: center;
}

.stats-grid .info-value {
    font-size: 2rem;
    margin: 0.5rem 0;
    text-align: center;
}

/* Announcement Editor Styles */
.announcement-editor {
    height: 100px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
}

.hidden-textarea {
    display: none;
}

.announcement-submit-btn {
    margin-top: 0.75rem;
}

/* Admin Events List Container (used by admin page) */
.admin-events-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    min-width: 70px;
    text-align: center;
}

.admin-btn.edit {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
    border: 0;
}

.admin-btn.edit:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.admin-btn.delete {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
    border: 0;
}

.admin-btn.delete:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.admin-btn.stream {
    background: rgba(168, 85, 247, 0.2);
    color: #A855F7;
    border: 0;
}

.admin-btn.stream:hover {
    background: rgba(168, 85, 247, 0.3);
    transform: translateY(-2px);
}

.admin-btn.stream.stream-active {
    background: rgba(255, 53, 0, 0.2);
    color: #ff3500;
    border: 1px solid #ff3500;
}

.admin-btn.stream.stream-active:hover {
    background: rgba(255, 53, 0, 0.3);
}

/* Edit Form Actions */
.edit-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

/* ===== GAME FILTERS ===== */
.header-filters {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.game-filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-lg);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-all);
    outline: none;
    height: 36px;
}

.game-filter-select:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.game-filter-select:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

.game-filter-select option {
    background: #0a0a0a;
    color: #ffffff;
}

/* ===== LOADING STATES ===== */
.loading-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Small spinner for buttons (14px to match button icon size) */
.loading-spinner-small {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0;
    display: inline-block;
}

/* Infinite Scroll Enhancements */
.initial-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

/* ===== STREAM STYLES ===== */
.enhanced-live-stream {
    background: rgba(255, 53, 0, 0.15);
    border-color: rgba(255, 53, 0, 0.4);
    color: #ff3500;
    position: relative;
    overflow: hidden;
}

.enhanced-live-stream:hover {
    background: rgba(255, 53, 0, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 53, 0, 0.3);
}

.viewer-count {
    font-size: 0.75rem;
    background: var(--color-primary-light);
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    color: var(--color-text-muted);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.game-tag {
    background: rgba(59, 130, 246, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Featured stream accordion toggle with red theme */
.accordion-toggle.featured {
    background: var(--color-primary-lighter);
    border-color: var(--color-primary-light);
    padding: 0.5rem;
    flex: 0 0 auto;
    width: auto;
    height: auto;
    max-width: 440px;
}

.accordion-toggle.featured:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary);
}

.accordion-toggle.featured .badge-live {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    overflow: hidden;
    max-width: 100%;
    border: 0;
}

/* ===== DATE RANGE PICKER ===== */
.date-range-input {
    cursor: pointer !important;
    background: var(--glass-bg-active) !important;
}

.date-range-input:hover {
    background: var(--glass-bg-hover) !important;
    border-color: var(--color-primary);
}

.date-range-picker-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(2px);
    z-index: 999;
}

.date-range-picker-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 650px;
    background: var(--glass-border-light);
    border: 1px solid var(--glass-border-heavy);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.date-range-picker-header {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.picker-tabs {
    display: flex;
    gap: 0.5rem;
}

.picker-tab {
    flex: 1;
    padding: 0.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-all);
}

.picker-tab:hover {
    background: var(--glass-bg-hover);
    color: var(--color-text);
}

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

.picker-content {
    padding: 1rem;
}

.calendars-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding-bottom: 1rem;
}

.calendar-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calendar-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.calendar-grid {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    padding: 0.5rem;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.calendar-nav-btn {
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: var(--transition-all);
}

.calendar-nav-btn:hover {
    color: var(--color-primary);
}

.calendar-month {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-text);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    padding: 0.25rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--color-text);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-all);
}

.calendar-day:hover:not(.empty):not(.past) {
    background: var(--glass-bg-hover);
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.past {
    color: var(--color-text-disabled);
}

.calendar-day.today {
    border: 1px solid var(--color-primary);
}

.calendar-day.selected {
    background: var(--color-primary);
    color: var(--color-text);
}

.calendar-day.in-range {
    background: var(--color-primary-lighter);
}

.time-selector {
    margin-top: 0.5rem;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.time-select {
    padding: 0.5rem;
    background: var(--glass-bg-active);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    min-width: 60px;
    cursor: pointer;
}

.time-select option {
    background: var(--color-bg-dark);
    color: var(--color-text);
    padding: 0.25rem;
}

.time-select option:hover,
.time-select option:checked {
    background: var(--color-primary);
    color: var(--color-text);
}

.time-select:hover {
    background: var(--glass-bg-hover);
    border-color: var(--color-primary);
}

.time-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-light);
}

.time-separator {
    color: var(--color-text);
    font-size: 1.2rem;
    font-weight: bold;
}

.picker-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
}

.selected-range {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-text);
}

.picker-actions {
    display: flex;
    gap: 0.5rem;
}

.picker-actions .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.presets-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preset-option {
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-all);
    text-align: left;
}

.preset-option:hover {
    background: var(--glass-bg-hover);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.accordion-toggle.featured svg:last-child {
    width: 16px;
    height: 16px;
}

.accordion-toggle.featured .stream-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 80px);
    color: rgba(255, 255, 255, 0.85);
}