/* ===================== ROOT VARIABLES ===================== */
:root {
    --background: #f8fafc;
    --foreground: #0f172a;
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
}

/* ===================== GRADIENTS ===================== */
.gradient-primary {
    background: linear-gradient(
        135deg,
        #f43f5e 0%,
        #ec4899 50%,
        #f43f5e 100%,
        #ec4899 150%
    );
}

.text-gradient {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.animated-gradient-text {
    background: linear-gradient(270deg, #f43f5e, #ec4899, #f43f5e, #ec4899);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

/* ===================== GLASS ===================== */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===================== BUTTONS ===================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    color: white;
    transition: all 0.2s ease;
    background: linear-gradient(
        135deg,
        #f43f5e 0%,
        #ec4899 50%,
        #f43f5e 100%,
        #ec4899 150%
    );
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    color: #334155;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: #a5b4fc;
    color: #6366f1;
    transform: translateY(-1px);
}

/* ===================== SECTION BADGE ===================== */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(
        135deg,
        rgba(99, 102, 241, 0.08),
        rgba(139, 92, 246, 0.08)
    );
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

/* ===================== FORM INPUT ===================== */
.form-input-style {
    display: block;
    width: 100%;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background-color: white;
    color: #1e293b;
    padding: 12px 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    outline: none;
    font-size: 14px;
}

.form-input-style:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px #6366f1;
}

select.form-input-style {
    appearance: auto;
}

textarea.form-input-style {
    resize: vertical;
}

/* ===================== LEGACY / PRIMARY BUTTON ===================== */
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.primary-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ===================== ADMIN SIDEBAR ===================== */
.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 12px;
    color: #94a3b8;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.admin-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.07);
    color: white;
}

.admin-sidebar-link.active {
    color: white;
}

/* ===================== PROSE (typography for content) ===================== */
.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.prose p {
    color: #475569;
    line-height: 1.75;
    margin-bottom: 1rem;
}

.prose a {
    color: #6366f1;
    text-decoration: underline;
}

.prose ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ===================== ANIMATIONS ===================== */
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

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

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
