/* ============================================
   Collective Legal - Premium Dark Theme
   ============================================ */

/* CSS Variables */
:root {
    --color-bg-primary: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-bg-card: rgba(20, 20, 30, 0.8);
    --color-bg-card-hover: rgba(30, 30, 45, 0.9);
    
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0b0;
    --color-text-muted: #6a6a7a;
    
    --color-accent-primary: #6366f1;
    --color-accent-secondary: #8b5cf6;
    --color-accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    
    --color-warning: #f59e0b;
    --color-warning-bg: rgba(245, 158, 11, 0.1);
    
    --color-success: #10b981;
    
    --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 60px rgba(99, 102, 241, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 0%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 0%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 40%);
    pointer-events: none;
    z-index: -2;
}

.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

.bg-glow-1 {
    top: -200px;
    left: -100px;
    background: var(--color-accent-primary);
    animation: float 20s ease-in-out infinite;
}

.bg-glow-2 {
    bottom: -200px;
    right: -100px;
    background: var(--color-accent-secondary);
    animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(30px, -30px); }
    66% { transform: translate(-20px, 20px); }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--color-accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: var(--shadow-glow);
}

.logo-text {
    font-weight: 600;
    font-size: 1.25rem;
    background: var(--color-accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-normal);
    position: relative;
}

.nav-link:hover {
    color: var(--color-text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--color-text-primary);
    background: rgba(99, 102, 241, 0.15);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 2px;
    background: var(--color-accent-gradient);
    border-radius: 2px;
}

/* Hero */
.hero {
    padding: 140px 0 60px;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #a0a0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Main Content */
.main {
    padding-bottom: 100px;
}

/* Mobile Tabs */
.tabs-mobile {
    display: none;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.tab-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-card);
    color: var(--color-text-secondary);
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.tab-btn:hover {
    border-color: var(--color-border-hover);
    color: var(--color-text-primary);
}

.tab-btn.active {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--color-accent-primary);
    color: var(--color-text-primary);
}

/* Content Sections */
.content-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.content-section.active {
    display: block;
}

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

/* Card */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.card-header {
    padding: 32px 40px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.05) 0%, transparent 100%);
}

.card-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
}

.update-date {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
}

.card-body {
    padding: 40px;
}

/* Typography */
.card-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body h3:first-child {
    margin-top: 0;
}

.card-body h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--color-accent-gradient);
    border-radius: 2px;
}

.card-body h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--color-text-secondary);
}

.card-body p {
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.card-body .subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 24px;
}

/* Lists */
.card-body ul {
    list-style: none;
    margin-bottom: 16px;
}

.card-body ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--color-text-secondary);
}

.card-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--color-accent-primary);
    border-radius: 50%;
}

.check-list li::before {
    content: '✓';
    background: none;
    color: var(--color-success);
    font-weight: 600;
    top: 0;
}

/* Links */
.card-body a {
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.card-body a:hover {
    color: var(--color-accent-secondary);
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background: rgba(99, 102, 241, 0.1);
    font-weight: 600;
    color: var(--color-text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    color: var(--color-text-secondary);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Alert Box */
.alert {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin: 20px 0;
    color: var(--color-text-primary);
}

.alert strong {
    color: var(--color-accent-primary);
}

/* Warning Box */
.warning {
    background: var(--color-warning-bg);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 24px 0;
}

.warning h4 {
    margin: 0 0 12px;
    color: var(--color-warning);
    font-size: 1.1rem;
}

.warning p {
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.warning ul {
    margin-bottom: 0;
}

/* Legal Note */
.legal-note {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--color-text-muted);
    margin-top: 12px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-accent-primary);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        height: auto;
        padding: 16px 24px;
        gap: 16px;
    }
    
    .nav {
        display: none;
    }
    
    .tabs-mobile {
        display: flex;
    }
    
    .hero {
        padding: 140px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .card-header {
        padding: 24px;
    }
    
    .card-body {
        padding: 24px;
    }
    
    .card-body h3 {
        font-size: 1.1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    th, td {
        padding: 12px;
        font-size: 0.85rem;
    }
}
