/* ============================================
   KATIKA WEB SERVICES - Shared Page Styles
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --primary: #4F46E5;
    --primary-light: #818CF8;
    --primary-dark: #3730A3;
    --secondary: #F97316;
    --secondary-light: #FB923C;
    --accent-teal: #14B8A6;
    --accent-pink: #EC4899;
    --accent-yellow: #FBBF24;
    --dark: #0F172A;
    --dark-light: #1E293B;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-500: #6B7280;
    --gray-300: #D1D5DB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;
    --gradient-1: linear-gradient(135deg, #4F46E5 0%, #7C3AED 50%, #EC4899 100%);
    --gradient-2: linear-gradient(135deg, #F97316 0%, #FBBF24 100%);
    --gradient-3: linear-gradient(135deg, #14B8A6 0%, #06B6D4 100%);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 50px;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--gray-700);
    line-height: 1.6;
    background: var(--white);
}
h1, h2, h3, h4, h5 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--dark);
    line-height: 1.2;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---- NAV (inner pages) ---- */
.nav-inner-page {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 40px;
    width: auto;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-actions a {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-500);
    transition: color 0.2s;
}
.nav-actions a:hover { color: var(--primary); }
.cart-badge,
.nav-actions a.cart-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary);
    color: #FFFFFF;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.cart-badge:hover,
.nav-actions a.cart-badge:hover { background: var(--primary-dark); color: #FFFFFF; }
.cart-count {
    background: var(--secondary);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

/* ---- PAGE HEADER ---- */
.page-header {
    background: linear-gradient(135deg, #1E0A3C 0%, #2D1B69 25%, #4F46E5 60%, #7C3AED 100%);
    padding: 80px 0 60px;
    text-align: center;
}
.page-header h1 {
    color: white;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.page-header p {
    color: rgba(255,255,255,0.65);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}
.btn-primary { background: var(--gradient-1); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79,70,229,0.35); }
.btn-secondary { background: var(--secondary); color: white; }
.btn-secondary:hover { background: #EA580C; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-ghost { background: var(--gray-50); color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-100); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---- FORM ELEMENTS ---- */
.input-group {
    display: flex;
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s;
}
.input-group:focus-within { border-color: var(--primary); }
.input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 20px;
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
}
.input-group button {
    border: none;
    background: var(--gradient-1);
    color: white;
    padding: 16px 32px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

/* ---- CARDS ---- */
.card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius);
    padding: 24px;
    transition: all 0.3s;
}
.card:hover { box-shadow: var(--shadow-md); }

/* ---- BADGES ---- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge-success { background: rgba(16,185,129,0.1); color: var(--success); }
.badge-danger { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-warning { background: rgba(245,158,11,0.1); color: var(--warning); }
.badge-primary { background: rgba(79,70,229,0.1); color: var(--primary); }

/* ---- LOADING ---- */
.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--gray-100);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px;
    color: var(--gray-500);
    font-size: 0.95rem;
}

/* ---- EMPTY STATE ---- */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.4rem; margin-bottom: 8px; }
.empty-state p { color: var(--gray-500); margin-bottom: 24px; }

/* ---- FOOTER MINI ---- */
.footer-mini {
    background: var(--dark);
    padding: 32px 0;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    margin-top: 80px;
}
.footer-mini a { color: rgba(255,255,255,0.6); }
.footer-mini a:hover { color: var(--primary-light); }

/* ---- AUTH NAV ---- */
.nav-auth-link {
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    color: var(--primary) !important;
    padding: 8px 16px;
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-full);
    transition: all 0.2s;
}
.nav-auth-link:hover {
    background: var(--primary) !important;
    color: #FFFFFF !important;
}
#clerk-user {
    display: inline-flex;
    align-items: center;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .page-header h1 { font-size: 1.8rem; }
    .nav-actions { gap: 12px; }
    .nav-actions a:not(.cart-badge) { display: none; }
}
