/* CSS Custom Properties */
:root {
    /* Colors */
    --primary: #00f0ff;
    --secondary: #ff2d95;
    --bg-main: #050507;
    --bg-alt: #0a0a0f;
    --text-main: #ffffff;
    --text-muted: #a0a0b0;
    
    /* Border Radius */
    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-neon: 0 0 40px rgba(0, 240, 255, 0.3);
    --shadow-glow: 0 10px 40px -10px rgba(0, 240, 255, 0.2);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    
    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 200ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tailwind Custom Classes */
.bg-main { background-color: var(--bg-main); }
.bg-alt { background-color: var(--bg-alt); }
.text-main { color: var(--text-main); }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.border-primary { border-color: var(--primary); }
.border-secondary { border-color: var(--secondary); }
.rounded-custom { border-radius: var(--radius); }

/* Shadow Utilities */
.shadow-neon {
    box-shadow: var(--shadow-neon);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

/* Grid Layouts */
.grid-custom {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-custom {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas: 
            "featured featured"
            "small-top small-bottom";
    }
    
    .card-featured {
        grid-area: featured;
    }
    
    .card-small-top {
        grid-area: small-top;
    }
    
    .card-small-bottom {
        grid-area: small-bottom;
    }
}

@media (min-width: 1024px) {
    .grid-custom {
        grid-template-columns: 1.5fr 1fr;
        grid-template-rows: 1fr 1fr;
        grid-template-areas: 
            "featured small-top"
            "featured small-bottom";
    }
}

/* Avatar Styles - Strict Requirements */
.squad-img-container {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-alt), var(--bg-alt)) padding-box,
                linear-gradient(135deg, var(--primary), var(--secondary)) border-box;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15),
                0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all var(--transition-base);
}

.squad-img-container:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3),
                0 0 60px rgba(255, 45, 149, 0.2),
                0 4px 20px rgba(0, 0, 0, 0.4);
}

.squad-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.squad-img-container:hover img {
    transform: scale(1.1);
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Background Pattern */
.bg-hero-pattern {
    background-image: 
        radial-gradient(circle at 20% 50%, var(--primary) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--secondary) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 240, 255, 0.1) 0%, transparent 30%);
    filter: blur(60px);
}

/* Animations */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.1);
    }
}

.animate-pulse-slow {
    animation: pulse-slow 4s ease-in-out infinite;
}

.delay-1000 {
    animation-delay: 1s;
}

/* Card Hover Effects */
article {
    transition: all var(--transition-base);
}

article:hover {
    border-color: rgba(0, 240, 255, 0.3);
}

/* Prose Customization */
.prose {
    max-width: none;
}

.prose p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.prose h2 {
    font-family: var(--font-display);
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-alt);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Selection */
::selection {
    background-color: var(--primary);
    color: var(--bg-main);
}

/* Focus States */
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

/* Button Hover Glow */
button:hover,
a[href]:hover {
    transition: all var(--transition-base);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Typography */
@media (max-width: 768px) {
    :root {
        --radius: 12px;
    }
    
    .squad-img-container {
        width: 100px;
        height: 100px;
    }
}

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

section {
    animation: fadeIn 0.6s ease-out;
}

/* Discussion Section Specifics */
.discussion-card {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(255, 45, 149, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Neon Border Effect */
.neon-border {
    position: relative;
}

.neon-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.neon-border:hover::before {
    opacity: 1;
}

/* Typography Utilities */
.font-display {
    font-family: var(--font-display);
}

.tracking-tighter {
    letter-spacing: -0.03em;
}

/* Image Hover Zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform var(--transition-slow);
}

.img-zoom:hover img {
    transform: scale(1.08);
}

/* Custom Checkboxes */
input[type="checkbox"] {
    accent-color: var(--primary);
}

/* Disabled States */
button:disabled,
input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Print Styles */
@media print {
    .bg-main {
        background: white !important;
        color: black !important;
    }
    
    .squad-img-container {
        border: 2px solid #000;
    }
}