/**
 * HostPanel - Main Stylesheet
 * Hostie-Inspired Design System
 */

:root {
    --hp-primary: #5b4dff;
    --hp-secondary: #7c3aed;
    --hp-accent: #06b6d4;
    --hp-dark: #0a0e27;
    --hp-darker: #060918;
    --hp-success: #10b981;
    --hp-warning: #f59e0b;
    --hp-danger: #ef4444;
    --hp-info: #3b82f6;
    --hp-light: #f8fafc;
    --hp-text: #475569;
    --hp-text-light: #94a3b8;
    --hp-gradient: linear-gradient(135deg, #5b4dff 0%, #7c3aed 100%);
    --hp-gradient-wide: linear-gradient(135deg, #5b4dff 0%, #7c3aed 50%, #06b6d4 100%);
    --hp-radius: 14px;
    --hp-radius-lg: 20px;
    --hp-radius-xl: 24px;
    --hp-shadow: 0 2px 12px rgba(91, 77, 255, 0.06);
    --hp-shadow-md: 0 8px 30px rgba(91, 77, 255, 0.1);
    --hp-shadow-lg: 0 20px 60px rgba(91, 77, 255, 0.12);
    /* Legacy variables for admin panel compatibility */
    --primary: #5b4dff;
    --primary-light: #7c3aed;
    --primary-dark: #4c3fd9;
    --secondary: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --light: #f8fafc;
    --dark: #0a0e27;
    --text: #475569;
    --text-light: #94a3b8;
    --border-radius: 14px;
    --border-radius-lg: 20px;
    --gradient-primary: linear-gradient(135deg, #5b4dff 0%, #7c3aed 100%);
    --gradient-hero: linear-gradient(135deg, #0a0e27 0%, #1a1145 50%, #0a0e27 100%);
    --shadow: 0 2px 12px rgba(91, 77, 255, 0.06);
    --shadow-md: 0 8px 30px rgba(91, 77, 255, 0.1);
    --shadow-lg: 0 20px 60px rgba(91, 77, 255, 0.12);
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--hp-light);
    color: var(--hp-text);
    line-height: 1.7;
}

/* ================================================================
   NAVIGATION - Hostie Style (Transparent → White on scroll)
   ================================================================ */
.navbar {
    background: transparent !important;
    padding: 1rem 0;
    transition: all 0.4s ease;
    z-index: 1050;
}
.navbar.scrolled {
    background: rgba(10, 14, 39, 0.95) !important;
    backdrop-filter: blur(20px);
    padding: 0.6rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #5b4dff, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}
.navbar-brand i {
    -webkit-text-fill-color: #5b4dff;
}

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: white !important;
}

.navbar .dropdown-menu {
    background: white;
    border: none;
    border-radius: 14px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
    padding: 0.75rem;
    margin-top: 0.5rem;
}
.navbar .dropdown-item {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 500;
    color: #0a0e27;
    transition: all 0.2s;
}
.navbar .dropdown-item i {
    color: #5b4dff;
}
.navbar .dropdown-item:hover {
    background: rgba(91, 77, 255, 0.08);
    color: #5b4dff;
}

.navbar-toggler {
    color: white;
    border: none;
}
.navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

/* Hostie Primary Button */
.btn-hostie-primary {
    background: linear-gradient(135deg, #5b4dff, #7c3aed) !important;
    color: white !important;
    border: none !important;
    font-weight: 600;
    transition: all 0.3s;
}
.btn-hostie-primary:hover {
    background: linear-gradient(135deg, #4c3fd9, #6a2ec5) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 77, 255, 0.3);
}

/* ================================================================
   CARDS
   ================================================================ */
.card {
    border: 1px solid #e2e8f0;
    border-radius: var(--hp-radius);
    box-shadow: var(--hp-shadow);
    transition: all 0.3s;
}
.card:hover {
    box-shadow: var(--hp-shadow-md);
}
.card-header {
    background: transparent;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}

/* ================================================================
   STAT CARDS (Admin)
   ================================================================ */
.stat-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e2e8f0;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow-md);
}
.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn-primary {
    background: var(--hp-gradient);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    padding: 10px 24px;
    transition: all 0.3s;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #4c3fd9, #6a2ec5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(91, 77, 255, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--hp-primary);
    color: var(--hp-primary);
    border-radius: 50px;
    font-weight: 600;
    padding: 8px 24px;
}
.btn-outline-primary:hover {
    background: var(--hp-gradient);
    border-color: transparent;
    color: #fff;
}

/* ================================================================
   TABLES
   ================================================================ */
.table { margin-bottom: 0; }
.table thead th {
    border-top: none;
    font-weight: 600;
    color: var(--hp-text-light);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* ================================================================
   SIDEBAR (Admin Panel)
   ================================================================ */
.sidebar {
    background: var(--hp-dark);
    min-height: 100vh;
    position: fixed;
    width: 250px;
}
.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.7);
    padding: 0.75rem 1.25rem;
    border-radius: var(--hp-radius);
    margin: 0.25rem 0.75rem;
    transition: all 0.3s;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    color: white;
    background: rgba(91, 77, 255, 0.2);
}
.sidebar .nav-link i { width: 24px; }

/* ================================================================
   MAIN CONTENT (Admin Panel)
   ================================================================ */
.main-content {
    margin-left: 250px;
    padding: 2rem;
}

/* ================================================================
   STATUS BADGES
   ================================================================ */
.badge-status {
    padding: 0.35em 0.65em;
    font-weight: 500;
    border-radius: 20px;
}

/* ================================================================
   FORMS
   ================================================================ */
.form-control, .form-select {
    border-radius: var(--hp-radius);
    border: 1px solid #e2e8f0;
    padding: 10px 16px;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--hp-primary);
    box-shadow: 0 0 0 0.2rem rgba(91, 77, 255, 0.12);
}

/* ================================================================
   HERO SECTION
   ================================================================ */
.hero {
    background: var(--gradient-hero);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

/* ================================================================
   PAGE HEADER
   ================================================================ */
.page-header {
    background: var(--gradient-hero);
    color: white;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(91, 77, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}
.page-header h1 {
    font-weight: 900;
    font-size: 2.8rem;
    position: relative;
    z-index: 2;
}
.page-header p {
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 2;
}

/* ================================================================
   PRICING CARDS
   ================================================================ */
.pricing-card {
    border-radius: var(--hp-radius-lg);
    border: 2px solid #e2e8f0;
    transition: all 0.4s;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hp-shadow-lg);
    border-color: var(--hp-primary);
}
.pricing-card.featured {
    border: 2px solid var(--hp-primary);
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    background: var(--hp-darker);
    color: rgba(255, 255, 255, 0.7);
    padding: 4rem 0 2rem;
}
.footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: all 0.3s;
}
.footer a:hover {
    color: white;
    padding-left: 4px;
}
.footer h5, .footer h6 {
    color: #fff;
    font-weight: 700;
}

/* ================================================================
   UTILITIES
   ================================================================ */
.text-primary { color: var(--hp-primary) !important; }
.bg-primary { background-color: var(--hp-primary) !important; }
.border-primary { border-color: var(--hp-primary) !important; }

/* ================================================================
   SOCIAL LINKS
   ================================================================ */
.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(91, 77, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5b4dff;
    text-decoration: none;
    transition: all 0.3s;
    margin-right: 8px;
}
.social-links a:hover {
    background: var(--hp-gradient);
    color: #fff;
    transform: translateY(-3px);
    padding-left: 0;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 991px) {
    .sidebar {
        width: 100%;
        position: relative;
        min-height: auto;
    }
    .main-content {
        margin-left: 0;
    }
    .page-header h1 {
        font-size: 2rem;
    }
    .navbar .navbar-collapse {
        background: rgba(10, 14, 39, 0.98);
        border-radius: 16px;
        padding: 1rem;
        margin-top: 0.5rem;
    }
}
