/**
 * INDIGO CLARITY DESIGN SYSTEM
 * Version: 1.0.0
 * ContentGo Modern Theme Framework
 *
 * Design Philosophy:
 * - Modern, bold, high-contrast, soft UI
 * - Glassmorphism + Dark gradients
 * - Pill-shaped elements (signature feature)
 */

/* ==========================================================================
   CSS VARIABLES (Design Tokens)
   ========================================================================== */

:root {
    /* Colors - Primary */
    --color-primary-purple: #1D1578;
    --color-primary-purple-light: #3A3095;
    --color-primary-purple-dark: #0A0E27;

    --color-primary-blue: #0088FF;
    --color-primary-blue-variant: #3967FF;
    --color-primary-blue-light: #60A5FA;
    --color-primary-blue-hover: #0066CC;

    --color-accent-mint: #10B981;
    --color-accent-mint-light: rgba(16, 185, 129, 0.15);

    /* Colors - Neutrals */
    --color-gray-50: #FAFBFC;
    --color-gray-100: #F7F8FA;
    --color-gray-200: #EEF0F3;
    --color-gray-300: #C4C7D0;
    --color-gray-400: #A0A4B0;
    --color-gray-500: #677489;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-900: #18191A;

    --color-white: #FFFFFF;
    --color-black: #000000;

    /* Typography */
    --font-display: 'Degular Display', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Font Sizes */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 32px;
    --text-4xl: 48px;
    --text-5xl: 64px;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Border Radius */
    --radius-pill: 50px;
    --radius-full: 9999px;
    --radius-2xl: 24px;
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-button: 0 4px 12px rgba(57, 103, 255, 0.3);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease-in-out;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-gray-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: var(--space-lg);
    color: var(--color-gray-900);
}

h1, .h1 {
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2, .h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3, .h3 {
    font-size: clamp(24px, 3vw, 32px);
    line-height: 1.3;
}

h4, .h4 {
    font-family: var(--font-body);
    font-size: var(--text-2xl);
    font-weight: 600;
    line-height: 1.4;
}

h5, .h5 {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.4;
}

h6, .h6 {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gray-500);
}

/* Body Text */
.text-lg {
    font-size: var(--text-lg);
    line-height: 1.6;
}

.text-base {
    font-size: var(--text-base);
    line-height: 1.6;
}

.text-sm {
    font-size: var(--text-sm);
    line-height: 1.5;
}

.text-xs {
    font-size: var(--text-xs);
    line-height: 1.4;
    font-weight: 500;
}

/* ==========================================================================
   BUTTONS (PILL-SHAPED - SIGNATURE FEATURE) ⭐
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    border-radius: var(--radius-pill); /* PILL-SHAPED! */
}

/* Primary Button */
.btn-primary {
    background: var(--color-primary-blue-variant);
    color: var(--color-white);
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    background: var(--color-primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(57, 103, 255, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(57, 103, 255, 0.2);
}

/* Secondary Button (Outline) */
.btn-secondary {
    background: transparent;
    border: 2px solid var(--color-primary-blue-variant);
    color: var(--color-primary-blue-variant);
}

.btn-secondary:hover {
    background: var(--color-primary-blue-variant);
    color: var(--color-white);
}

/* Ghost Button */
.btn-ghost {
    background: transparent;
    color: var(--color-primary-blue-variant);
}

.btn-ghost:hover {
    background: rgba(57, 103, 255, 0.1);
}

/* Button Sizes */
.btn-sm {
    padding: 10px 24px;
    font-size: var(--text-sm);
}

.btn-lg {
    padding: 18px 40px;
    font-size: var(--text-lg);
}

/* Button with Profile Stack */
.btn-with-profiles {
    padding-left: var(--space-md);
}

.btn-with-profiles .profile-stack {
    margin-right: var(--space-md);
}

/* ==========================================================================
   BADGES (PILL-SHAPED) 🏷️
   ========================================================================== */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-pill); /* PILL-SHAPED! */
    line-height: 1;
}

/* Mint Green Badge (Signature) */
.badge-mint {
    background: var(--color-accent-mint-light);
    color: var(--color-accent-mint);
}

/* Secondary Badge */
.badge-secondary {
    background: rgba(103, 116, 137, 0.15);
    color: var(--color-gray-500);
}

/* Primary Badge */
.badge-primary {
    background: rgba(57, 103, 255, 0.15);
    color: var(--color-primary-blue-variant);
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Glassmorphism Card (Dark Background) ✨ */
.card-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Light Glassmorphism Card */
.card-glass-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   PROFILE PHOTO STACK 👥 (SIGNATURE FEATURE)
   ========================================================================== */

.profile-stack {
    display: flex;
    align-items: center;
}

.profile-stack img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid var(--color-white);
    margin-left: -12px;
    transition: transform var(--transition-fast);
}

.profile-stack img:first-child {
    margin-left: 0;
    z-index: 3;
}

.profile-stack img:nth-child(2) {
    z-index: 2;
}

.profile-stack img:nth-child(3) {
    z-index: 1;
}

.profile-stack img:hover {
    transform: scale(1.1);
    z-index: 10;
}

.profile-stack .more-count {
    margin-left: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-gray-500);
}

/* ==========================================================================
   HERO SECTION (DARK GRADIENT) 🌑 (SIGNATURE FEATURE)
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, #0A0E27 0%, #1E1B4B 100%);
    padding: 120px 0;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.hero-section .hero-title {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.hero-section .hero-description {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: var(--space-2xl);
}

.hero-section .hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* ==========================================================================
   SECTIONS & LAYOUTS
   ========================================================================== */

.section {
    padding: var(--space-4xl) 0;
}

.section-sm {
    padding: var(--space-3xl) 0;
}

.section-lg {
    padding: 120px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-wide {
    max-width: 1400px;
}

.container-narrow {
    max-width: 800px;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Text Colors */
.text-primary { color: var(--color-primary-blue-variant); }
.text-mint { color: var(--color-accent-mint); }
.text-gray { color: var(--color-gray-500); }
.text-white { color: var(--color-white); }

/* Background Colors */
.bg-white { background: var(--color-white); }
.bg-gray-50 { background: var(--color-gray-50); }
.bg-gray-100 { background: var(--color-gray-100); }

/* Spacing */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Animations */
.hover-lift {
    transition: transform var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-scale {
    transition: transform var(--transition-base);
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0;
    }

    .section {
        padding: var(--space-3xl) 0;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}
