/* ================================================
   MIMI SQUAD PLANNING - PUBLIC PAGE STYLES
   ================================================ */

/* CSS Variables */
:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --secondary: #8b5cf6;
    --accent: #c084fc;
    
    --bg-dark: #0a0a0f;
    --bg-card: rgba(20, 20, 30, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    --twitch: #9146FF;
    --discord: #5865F2;
    --twitter: #1DA1F2;
    --youtube: #FF0000;
    
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --live: #ef4444;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(124, 58, 237, 0.3);
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0a0a0f 100%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: blobFloat 20s infinite ease-in-out;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--twitch) 0%, var(--primary) 100%);
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.95);
    }
    75% {
        transform: translate(-50px, -30px) scale(1.05);
    }
}

.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-glow);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: currentColor;
    opacity: 0.2;
    transition: opacity var(--transition-fast);
}

.social-btn:hover::before {
    opacity: 0.3;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-btn.twitch { color: var(--twitch); }
.social-btn.discord { color: var(--discord); }
.social-btn.twitter { color: var(--twitter); }

/* Main Content */
.main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: calc(100vh - 200px);
}

/* Week Navigation */
.week-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 40px;
}

.week-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--bg-glass);
    color: var(--primary-light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.week-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
}

.week-info {
    text-align: center;
}

.week-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.week-dates {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Planning Grid */
.planning-container {
    perspective: 1000px;
}

.planning-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Day Card */
.day-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all var(--transition-normal);
    animation: cardAppear 0.5s ease forwards;
    animation-delay: calc(var(--index) * 0.1s);
    opacity: 0;
    transform: translateY(20px);
}

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.day-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary);
}

.day-card.today {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.day-card.today .day-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.day-header {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.day-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.day-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.day-content {
    padding: 16px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Event Card */
.event-card {
    background: linear-gradient(135deg, var(--event-color, var(--primary)) 0%, var(--event-color-dark, var(--primary-dark)) 100%);
    border-radius: var(--radius-md);
    padding: 14px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.event-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    pointer-events: none;
}

.event-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.event-emoji {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: block;
}

.event-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    line-height: 1.3;
}

.event-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.event-time i {
    font-size: 0.7rem;
}

/* Event Participants Avatars */
.event-participants {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.event-avatar {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.event-avatar.guest {
    background: rgba(245, 158, 11, 0.3);
    border-color: rgba(245, 158, 11, 0.5);
}

.event-avatar.all-squad {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.5) 0%, rgba(236, 72, 153, 0.5) 100%);
    border-color: rgba(236, 72, 153, 0.6);
    font-weight: bold;
    font-size: 1rem;
    width: 30px;
    height: 30px;
}

/* No Events */
.no-events {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    padding: 20px;
}

.no-events i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.no-events span {
    font-size: 0.9rem;
}

/* Live Banner */
.live-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--live) 0%, #dc2626 100%);
    padding: 16px 32px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(239, 68, 68, 0.4);
    animation: livePulse 2s infinite ease-in-out, slideUp 0.5s ease;
    z-index: 1000;
}

@keyframes livePulse {
    0%, 100% {
        box-shadow: var(--shadow-lg), 0 0 40px rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: var(--shadow-lg), 0 0 60px rgba(239, 68, 68, 0.6);
    }
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

.live-pulse {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

.live-text {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.live-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    transition: background var(--transition-fast);
}

.live-link:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Next Stream Countdown */
.next-stream {
    margin-top: 48px;
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.next-stream-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.countdown-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-top: 8px;
}

.countdown-separator {
    font-size: 2.5rem;
    color: var(--text-muted);
    font-weight: 300;
}

.next-stream-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.next-stream-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Footer */
.footer {
    text-align: center;
    padding: 32px 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer i {
    color: var(--live);
    animation: heartbeat 1s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

/* Tablet Large */
@media (max-width: 1200px) {
    .planning-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .day-content {
        min-height: 180px;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .planning-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .week-title {
        font-size: 1.8rem;
    }
    
    .week-dates {
        font-size: 1rem;
    }
    
    .countdown-value {
        font-size: 2.5rem;
    }
    
    .next-stream {
        padding: 30px;
        margin-top: 32px;
    }
    
    .blob {
        filter: blur(60px);
        opacity: 0.4;
    }
    
    .blob-1 {
        width: 400px;
        height: 400px;
    }
    
    .blob-2 {
        width: 350px;
        height: 350px;
    }
    
    .blob-3 {
        width: 300px;
        height: 300px;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .planning-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .header-content {
        padding: 12px 16px;
    }
    
    .logo-img {
        width: 48px;
        height: 48px;
    }
    
    .logo-title {
        font-size: 1.3rem;
    }
    
    .logo-subtitle {
        font-size: 0.75rem;
    }
    
    .social-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .week-nav {
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .week-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .week-title {
        font-size: 1.5rem;
    }
    
    .week-dates {
        font-size: 0.9rem;
    }
    
    .main {
        padding: 20px 12px;
    }
    
    .day-header {
        padding: 12px;
    }
    
    .day-name {
        font-size: 0.95rem;
    }
    
    .day-date {
        font-size: 0.75rem;
    }
    
    .day-content {
        padding: 12px;
        min-height: 150px;
        gap: 10px;
    }
    
    .event-card {
        padding: 12px;
    }
    
    .event-emoji {
        font-size: 1.3rem;
        margin-bottom: 6px;
    }
    
    .event-title {
        font-size: 0.85rem;
    }
    
    .event-time {
        font-size: 0.75rem;
    }
    
    .event-participants {
        gap: 3px;
        margin-top: 8px;
        padding-top: 8px;
    }
    
    .event-avatar {
        width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }
    
    .event-avatar.all-squad {
        width: 26px;
        height: 26px;
        font-size: 0.85rem;
    }
    
    .no-events i {
        font-size: 1.5rem;
    }
    
    .no-events span {
        font-size: 0.8rem;
    }
    
    .next-stream {
        padding: 24px 20px;
        margin-top: 28px;
    }
    
    .next-stream-label {
        font-size: 0.85rem;
        margin-bottom: 16px;
    }
    
    .countdown {
        gap: 10px;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
    }
    
    .next-stream-title {
        font-size: 1.1rem;
    }
    
    .live-banner {
        padding: 12px 20px;
        gap: 10px;
        bottom: 16px;
    }
    
    .live-pulse {
        width: 10px;
        height: 10px;
    }
    
    .live-text {
        font-size: 0.8rem;
    }
    
    .live-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .footer {
        padding: 24px 16px;
        font-size: 0.85rem;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .planning-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .header-content {
        padding: 10px 12px;
    }
    
    .logo {
        gap: 10px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }
    
    .logo-title {
        font-size: 1.1rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .social-btn {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    
    .week-nav {
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .week-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .week-info {
        flex: 1;
        min-width: 0;
    }
    
    .week-title {
        font-size: 1.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .week-dates {
        font-size: 0.85rem;
    }
    
    .main {
        padding: 16px 10px;
    }
    
    .day-card {
        border-radius: var(--radius-md);
    }
    
    .day-card:hover {
        transform: none;
    }
    
    .day-header {
        padding: 10px 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    
    .day-name {
        font-size: 0.9rem;
        letter-spacing: 0.5px;
    }
    
    .day-date {
        font-size: 0.75rem;
        margin-top: 0;
    }
    
    .day-content {
        padding: 10px 12px 12px;
        min-height: auto;
    }
    
    .event-card {
        padding: 10px 12px;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }
    
    .event-card:hover {
        transform: none;
    }
    
    .event-emoji {
        font-size: 1.2rem;
        margin-bottom: 0;
    }
    
    .event-info-mobile {
        flex: 1;
        min-width: 0;
    }
    
    .event-title {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .event-time {
        font-size: 0.7rem;
        margin-top: 4px;
    }
    
    .event-participants {
        width: 100%;
        margin-top: 8px;
        padding-top: 8px;
        justify-content: flex-start;
    }
    
    .event-avatar {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .event-avatar.all-squad {
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
    }
    
    .no-events {
        padding: 16px;
        flex-direction: row;
        gap: 10px;
    }
    
    .no-events i {
        font-size: 1.2rem;
        margin-bottom: 0;
    }
    
    .no-events span {
        font-size: 0.8rem;
    }
    
    .next-stream {
        padding: 20px 16px;
        margin-top: 24px;
        border-radius: var(--radius-md);
    }
    
    .next-stream-label {
        font-size: 0.8rem;
        letter-spacing: 1px;
        margin-bottom: 12px;
    }
    
    .countdown {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .countdown-item {
        min-width: 50px;
    }
    
    .countdown-value {
        font-size: 1.6rem;
    }
    
    .countdown-label {
        font-size: 0.65rem;
        margin-top: 4px;
    }
    
    .countdown-separator {
        font-size: 1.2rem;
    }
    
    .next-stream-info {
        gap: 4px;
    }
    
    .next-stream-title {
        font-size: 0.95rem;
    }
    
    .live-banner {
        left: 10px;
        right: 10px;
        transform: none;
        width: auto;
        padding: 10px 14px;
        gap: 8px;
        bottom: 12px;
        border-radius: var(--radius-md);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .live-pulse {
        width: 8px;
        height: 8px;
    }
    
    .live-text {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
    
    .live-link {
        padding: 6px 12px;
        font-size: 0.75rem;
        width: 100%;
        text-align: center;
        margin-top: 4px;
    }
    
    .footer {
        padding: 20px 12px;
        font-size: 0.8rem;
    }
    
    /* Reduce animation intensity on mobile for performance */
    .blob {
        filter: blur(50px);
        opacity: 0.3;
        animation: none;
    }
    
    .particle {
        display: none;
    }
    
    @keyframes livePulse {
        0%, 100% {
            box-shadow: var(--shadow-md), 0 0 20px rgba(239, 68, 68, 0.3);
        }
        50% {
            box-shadow: var(--shadow-md), 0 0 30px rgba(239, 68, 68, 0.4);
        }
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .day-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .event-card:hover {
        transform: none;
    }
    
    .week-btn:hover {
        transform: none;
    }
    
    .social-btn:hover {
        transform: none;
    }
}

/* Landscape mode on mobile */
@media (max-width: 900px) and (orientation: landscape) {
    .planning-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .day-content {
        min-height: 120px;
    }
    
    .next-stream {
        margin-top: 20px;
        padding: 20px;
    }
    
    .countdown-value {
        font-size: 1.8rem;
    }
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, var(--bg-glass) 25%, rgba(255,255,255,0.1) 50%, var(--bg-glass) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Event Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(135deg, rgba(30, 30, 45, 0.95) 0%, rgba(20, 20, 35, 0.98) 100%);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(124, 58, 237, 0.2);
    -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar for modal */
.modal::-webkit-scrollbar {
    width: 6px;
}

.modal::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.modal::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.4);
    border-radius: 3px;
}

.modal::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.6);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-emoji {
    font-size: 4rem;
    margin-bottom: 16px;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.modal-detail {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-detail i {
    font-size: 1.2rem;
    color: var(--primary-light);
}

.modal-detail span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
}

.modal-btn.primary {
    background: linear-gradient(135deg, var(--twitch) 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(145, 70, 255, 0.4);
}

.modal-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(145, 70, 255, 0.5);
}

/* Participants & Guests Sections */
.modal-participants,
.modal-guests {
    margin-bottom: 24px;
}

.modal-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.participants-list,
.guests-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.participant-chip,
.guest-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 100px;
    transition: all var(--transition-fast);
}

.participant-chip:hover,
.guest-chip:hover {
    background: rgba(124, 58, 237, 0.3);
    transform: translateY(-2px);
}

.participant-chip.all-squad {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(236, 72, 153, 0.3) 100%);
    border-color: rgba(236, 72, 153, 0.4);
}

.participant-chip.all-squad:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.4) 0%, rgba(236, 72, 153, 0.4) 100%);
}

.participant-chip.all-squad .chip-avatar {
    font-size: 1.4rem;
    font-weight: bold;
}

.guest-chip {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.3);
}

.guest-chip:hover {
    background: rgba(245, 158, 11, 0.3);
}

.chip-avatar {
    font-size: 1.2rem;
}

.chip-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Modal Responsive - Tablet */
@media (max-width: 768px) {
    .modal {
        padding: 30px 24px;
        max-width: 95%;
    }
    
    .modal-emoji {
        font-size: 3rem;
    }
    
    .modal-title {
        font-size: 1.4rem;
    }
    
    .modal-section {
        padding: 14px;
    }
    
    .modal-section-title {
        font-size: 0.75rem;
    }
    
    .modal-time,
    .modal-description {
        font-size: 0.95rem;
    }
    
    .participant-chip,
    .guest-chip {
        padding: 8px 12px;
    }
    
    .chip-name {
        font-size: 0.85rem;
    }
}

/* Modal Responsive - Mobile */
@media (max-width: 480px) {
    .modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }
    
    .modal {
        padding: 24px 18px;
        padding-bottom: 28px;
        max-width: 100%;
        width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .modal-close {
        top: 12px;
        right: 12px;
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .modal-emoji {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .modal-title {
        font-size: 1.2rem;
        line-height: 1.3;
    }
    
    .modal-content {
        gap: 14px;
        margin-top: 16px;
    }
    
    .modal-section {
        padding: 12px;
        border-radius: var(--radius-sm);
    }
    
    .modal-section-title {
        font-size: 0.7rem;
        margin-bottom: 6px;
    }
    
    .modal-time,
    .modal-description {
        font-size: 0.9rem;
    }
    
    .modal-participants,
    .modal-guests {
        margin-top: 14px;
    }
    
    .modal-participants h4,
    .modal-guests h4 {
        font-size: 0.75rem;
    }
    
    .participants-list,
    .guests-list {
        gap: 8px;
    }
    
    .participant-chip,
    .guest-chip {
        padding: 8px 12px;
        gap: 6px;
    }
    
    .chip-avatar {
        font-size: 1rem;
    }
    
    .chip-name {
        font-size: 0.8rem;
    }
    
    .participant-chip.all-squad .chip-avatar {
        font-size: 1.1rem;
    }
}
