/* ============================================
   TURKNINJA PRO — PREMIUM DESIGN SYSTEM
   ============================================ */

:root {
    /* ── Brand Colors ── */
    --primary-color: #E63946;
    --primary-hover: #D62839;
    --primary-rgb: 230, 57, 70;
    --primary-light: rgba(230, 57, 70, 0.08);
    --primary-glow: rgba(230, 57, 70, 0.25);
    --secondary-color: #1a1a2e;

    /* ── Accent Palette ── */
    --accent-purple: #764ba2;
    --accent-blue: #667eea;
    --accent-teal: #0d9488;
    --accent-amber: #f59e0b;
    --accent-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
    --accent-blue-gradient: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);

    /* ── Surface & Background ── */
    --background-light: #FAFBFC;
    --background-dim: #F1F3F5;
    --surface-card: #FFFFFF;
    --surface-elevated: #FFFFFF;

    /* ── Text ── */
    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-light: #FFFFFF;

    /* ── Border ── */
    --border-color: rgba(0, 0, 0, 0.06);
    --border-subtle: rgba(0, 0, 0, 0.03);

    /* ── Bootstrap Overrides ── */
    --bs-primary: #E63946;
    --bs-primary-rgb: 230, 57, 70;
    --bs-link-color: #E63946;
    --bs-link-hover-color: #D62839;

    /* ── Hero ── */
    --hero-gradient-start: #0a0a0a;
    --hero-gradient-end: #1a1a2e;
    --hero-gradient: linear-gradient(135deg, var(--hero-gradient-start), var(--hero-gradient-end));
    --hero-accent-gradient: linear-gradient(135deg, var(--hero-gradient-start), var(--primary-color));

    /* ── Navbar ── */
    --navbar-bg: rgba(255, 255, 255, 0.85);
    --navbar-border: rgba(0, 0, 0, 0.04);

    /* ── Dropdown ── */
    --dropdown-bg: #FFFFFF;
    --dropdown-header-start: var(--background-dim);
    --dropdown-header-end: #FFFFFF;

    /* ── Shadows (4 levels) ── */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(230, 57, 70, 0.15);

    /* ── Border Radius ── */
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* ── Transitions ── */
    --ease-out: cubic-bezier(0.165, 0.84, 0.44, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 0.15s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;
}


/* ============================================
   GLOBAL RESET & TYPOGRAPHY
   ============================================ */

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--background-light);
    color: var(--text-main);
    line-height: 1.7;
    transition: background-color var(--duration-normal) ease, color var(--duration-normal) ease;
    padding-top: 80px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Override Tabler body defaults */
    min-height: auto;
    -webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.lead {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-secondary);
}

::selection {
    background: rgba(230, 57, 70, 0.15);
    color: var(--primary-color);
}


/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 2000 !important;
    background-color: var(--navbar-bg) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--navbar-border);
    padding: 0.75rem 0 !important;
    transition: all var(--duration-normal) ease;
}

.navbar-collapse.collapse.show {
    visibility: visible !important;
    display: block !important;
}

@media (min-width: 992px) {
    .navbar-collapse.collapse.show {
        display: flex !important;
    }
    .navbar-expand-lg .navbar-collapse {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

.navbar-brand span {
    color: var(--text-main);
    font-weight: 800;
    letter-spacing: -0.5px;
}
.navbar-brand span .text-light {
    color: var(--primary-color) !important;
    font-weight: 700 !important;
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    transition: color var(--duration-fast) ease;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-color) !important;
}


/* ============================================
   BUTTONS — Premium
   ============================================ */

.btn {
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.6rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: -0.01em;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
    box-shadow: var(--shadow-sm), 0 2px 8px rgba(230, 57, 70, 0.2);
}
.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 4px 16px rgba(230, 57, 70, 0.3);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-xs);
}

/* Gradient CTA Button */
.btn-gradient,
.btn-primary.btn-lg {
    background: linear-gradient(135deg, var(--primary-color) 0%, #c1121f 100%);
    border: none;
    color: white !important;
    box-shadow: var(--shadow-sm), 0 4px 16px rgba(230, 57, 70, 0.25);
}
.btn-gradient:hover,
.btn-primary.btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 8px 32px rgba(230, 57, 70, 0.35);
    filter: brightness(1.05);
}

.btn-outline-light {
    color: var(--text-main);
    border-color: var(--border-color);
    border-width: 1.5px;
}
.btn-outline-light:hover {
    background-color: var(--text-main);
    color: var(--background-light);
    border-color: var(--text-main);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}
.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(230, 57, 70, 0.25);
}

/* Ripple effect on buttons */
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 10%, transparent 10.01%);
    transform: scale(10);
    opacity: 0;
    transition: transform 0.4s, opacity 0.8s;
}
.btn:active::after {
    transform: scale(0);
    opacity: 1;
    transition: 0s;
}


/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: var(--background-light) !important;
    color: var(--text-main) !important;
    padding: 80px 0 120px;
    position: relative;
    overflow: hidden;
    transition: background-color var(--duration-normal) ease;
}

/* Animated mesh gradient background */
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(230, 57, 70, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(102, 126, 234, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(118, 75, 162, 0.03) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
    animation: heroFloat 20s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(20px, -20px) rotate(1deg); }
    66% { transform: translate(-10px, 10px) rotate(-1deg); }
}

.hero-section .display-3 {
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
}


/* ============================================
   CARDS — Premium System
   ============================================ */

.card,
.feature-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--surface-card);
    box-shadow: var(--shadow-xs);
    transition: all var(--duration-normal) var(--ease-out);
    color: var(--text-main);
    overflow: hidden;
}

.card:hover,
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(230, 57, 70, 0.1);
}

.card-header {
    border-bottom: 1px solid var(--border-subtle);
    background: transparent;
    padding: 1.25rem 1.5rem;
    color: var(--text-main);
}

.card-body {
    padding: 1.5rem;
}

.text-muted {
    color: var(--text-muted) !important;
}


/* ============================================
   FEATURE ICONS — Premium
   ============================================ */

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(230, 57, 70, 0.15) 100%);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-3deg);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.3);
}


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

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md), 0 0 0 4px rgba(230, 57, 70, 0.08);
    position: relative;
}

.pricing-card .display-6 {
    color: var(--primary-color);
    font-weight: 900;
}


/* ============================================
   FOOTER — Premium Dark
   ============================================ */

footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%) !important;
    color: #94a3b8 !important;
    border-top: none !important;
    position: relative;
    overflow: hidden;
}

/* Decorative top gradient line */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-purple), var(--accent-blue), var(--primary-color));
    background-size: 200% 100%;
    animation: gradientSlide 4s ease infinite;
}

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

footer h5, footer h6 {
    color: #f1f5f9 !important;
    font-weight: 700;
}
footer a {
    color: #94a3b8 !important;
    transition: color var(--duration-fast), transform var(--duration-fast);
}
footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(3px);
}
footer p {
    color: inherit;
    font-size: 0.9rem;
}

footer .form-control {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #e2e8f0 !important;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm) !important;
    transition: all var(--duration-normal) ease;
}
footer .form-control:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15) !important;
}
footer .form-control::placeholder {
    color: #64748b !important;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.06) !important;
}


/* ============================================
   PREMIUM DROPDOWN (User Menu)
   ============================================ */

.no-caret::after {
    display: none !important;
}

.premium-dropdown {
    width: 280px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin-top: 10px;
    z-index: 1050;
    position: absolute;
    background: var(--dropdown-bg);
}

.premium-dropdown-header {
    background: linear-gradient(135deg, var(--dropdown-header-start), var(--dropdown-header-end));
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.user-avatar-lg {
    width: 48px;
    height: 48px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.premium-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    color: var(--text-main);
    text-decoration: none;
    transition: all var(--duration-fast);
    font-weight: 500;
}
.premium-menu-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding-left: 1.5rem;
}
.premium-menu-item i {
    font-size: 1.1rem;
    opacity: 0.6;
    transition: opacity var(--duration-fast);
}
.premium-menu-item:hover i {
    opacity: 1;
}

.dropdown-divider {
    border-top-color: var(--border-color);
}

/* Responsive Dropdown Fix */
@media (max-width: 991.98px) {
    .premium-dropdown {
        width: 90vw !important;
        max-width: 350px;
        left: 0 !important;
        right: auto !important;
        position: absolute;
        margin-top: 0.5rem;
    }
    .dropdown-menu.premium-dropdown {
        transform: none !important;
    }
}


/* ============================================
   CATEGORY DROPDOWN — Modern UX
   ============================================ */

.category-dropdown {
    min-width: 320px;
    padding: 0.75rem 0;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
}

.dropdown-submenu {
    position: relative;
}
.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -0.5rem;
    margin-left: 0.25rem;
    min-width: 280px;
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
}

.category-dropdown .dropdown-item {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s var(--ease-out);
    cursor: pointer;
    position: relative;
    color: var(--text-main);
    border-radius: var(--radius-xs);
    margin: 0 0.5rem;
}
.category-dropdown .dropdown-item:hover {
    background: linear-gradient(135deg, var(--background-dim) 0%, var(--primary-light) 100%);
    color: var(--primary-color);
    transform: translateX(4px);
    padding-left: 1.5rem;
}
.category-dropdown .dropdown-item:active {
    background-color: var(--primary-color);
    color: white;
}

.category-dropdown .dropdown-item.fw-bold.text-primary {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(230, 57, 70, 0.03) 100%);
    border-left: 3px solid var(--primary-color);
    font-weight: 600;
}
.category-dropdown .dropdown-item.fw-bold.text-primary:hover {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.15) 0%, rgba(230, 57, 70, 0.08) 100%);
}

.dropdown-submenu > .dropdown-toggle::after {
    margin-left: auto;
    content: "\203A";
    font-size: 1.5rem;
    font-weight: 300;
    border: none;
    float: right;
    line-height: 1;
    color: var(--text-muted);
    transition: transform var(--duration-fast) ease;
}
.dropdown-submenu > .dropdown-toggle:hover::after {
    color: var(--primary-color);
    transform: translateX(2px);
}
.dropdown-submenu:hover > .dropdown-menu {
    display: block;
    animation: slideIn 0.2s var(--ease-out);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.category-dropdown .dropdown-divider {
    margin: 0.75rem 1rem;
    border-top: 1px solid var(--border-color);
    opacity: 0.5;
}

/* Scrollbar */
.category-dropdown::-webkit-scrollbar,
.dropdown-submenu .dropdown-menu::-webkit-scrollbar { width: 6px; }
.category-dropdown::-webkit-scrollbar-track,
.dropdown-submenu .dropdown-menu::-webkit-scrollbar-track { background: transparent; }
.category-dropdown::-webkit-scrollbar-thumb,
.dropdown-submenu .dropdown-menu::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}
.category-dropdown::-webkit-scrollbar-thumb:hover,
.dropdown-submenu .dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Mobile responsive */
@media (max-width: 991.98px) {
    .category-dropdown {
        max-width: 90vw;
        min-width: 280px;
    }
    .dropdown-submenu > .dropdown-menu {
        position: static !important;
        margin-left: 1.5rem;
        border-left: 3px solid var(--primary-color);
        box-shadow: none;
        display: none;
        margin-top: 0.5rem;
        background: var(--background-dim);
    }
    .dropdown-submenu.show > .dropdown-menu {
        display: block;
        animation: slideDown 0.3s var(--ease-out);
    }
    @keyframes slideDown {
        from { opacity: 0; max-height: 0; }
        to { opacity: 1; max-height: 500px; }
    }
    .dropdown-submenu > .dropdown-toggle::after {
        content: "\2304";
        transform: rotate(0deg);
    }
    .dropdown-submenu.show > .dropdown-toggle::after {
        transform: rotate(180deg);
    }
    .category-dropdown .dropdown-item {
        margin: 0 0.25rem;
    }
}


/* ============================================
   HOMEPAGE ENHANCEMENTS
   ============================================ */

/* Platform Statistics */
.stat-counter {
    padding: 1.75rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--duration-normal) var(--ease-out);
}
.stat-counter:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Course Cards */
.course-card {
    transition: all var(--duration-normal) var(--ease-out);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}
.course-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg) !important;
    border-color: rgba(230, 57, 70, 0.15);
}
.course-card .card-img-top {
    transition: transform 0.6s var(--ease-out);
}
.course-card:hover .card-img-top {
    transform: scale(1.08);
}

/* Image overlay gradient */
.course-card .card-img-top {
    position: relative;
}

/* Avatar Items */
.avatar-item {
    transition: transform var(--duration-fast) ease;
}
.avatar-item:hover {
    transform: translateY(-3px) scale(1.05);
    z-index: 10;
}
.avatar-item img {
    border: 2.5px solid white;
    box-shadow: var(--shadow-sm);
}

/* Activity Feed */
.activity-feed {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}
.activity-feed::-webkit-scrollbar { width: 4px; }
.activity-feed::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
}
.activity-item {
    border-left: 3px solid transparent;
    transition: all var(--duration-fast) ease;
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}
.activity-item:hover {
    border-left-color: var(--primary-color);
    background-color: var(--primary-light) !important;
    transform: translateX(4px);
}
.activity-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-dim);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}


/* ============================================
   FORM INPUTS — Premium
   ============================================ */

.form-control,
.form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-color);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    transition: all var(--duration-fast) ease;
    background-color: var(--surface-card);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.08);
}


/* ============================================
   BADGES — Premium
   ============================================ */

.badge {
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.35em 0.75em;
    border-radius: var(--radius-full);
}

/* Fix text color for Tabler solid badges */
.badge.bg-primary, .badge.bg-secondary, .badge.bg-success, 
.badge.bg-danger, .badge.bg-warning, .badge.bg-info, .badge.bg-dark {
    color: #ffffff !important;
}

.badge.bg-primary,
.bg-primary {
    background-color: var(--primary-color) !important;
}


/* ============================================
   PROGRESS BARS — Glow
   ============================================ */

.progress {
    border-radius: var(--radius-full);
    height: 8px;
    background-color: var(--background-dim);
    overflow: visible;
}

.progress-bar {
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, var(--primary-color), #ff6b6b);
    position: relative;
    box-shadow: 0 0 8px rgba(230, 57, 70, 0.3);
}


/* ============================================
   ALERTS — Modern
   ============================================ */

.alert {
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 500;
    box-shadow: var(--shadow-xs);
}


/* ============================================
   TABLES — Clean
   ============================================ */

.table {
    --bs-table-hover-bg: var(--primary-light);
}

.table thead th {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom-width: 2px;
}


/* ============================================
   MODALS — Glass Effect
   ============================================ */

.modal-content {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header {
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}


/* ============================================
   UTILITY OVERRIDES
   ============================================ */

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Subtle section dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
    margin: 3rem 0;
}

/* Section title styling */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 48px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: var(--radius-full);
}

/* Smooth link underline animation */
a.animated-link {
    position: relative;
    text-decoration: none;
}
a.animated-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--duration-normal) var(--ease-out);
}
a.animated-link:hover::after {
    width: 100%;
}

/* Glass effect utility */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Gradient text utility */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, var(--background-dim) 25%, rgba(0,0,0,0.04) 50%, var(--background-dim) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-xs);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Smooth page transitions */
.page-enter {
    animation: pageEnter 0.4s var(--ease-out);
}
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Utilities --- */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hover-shadow:hover {
    box-shadow: var(--shadow-lg) !important;
}

.transition {
    transition: all var(--duration-normal) var(--ease-out);
}

.object-fit-cover {
    object-fit: cover;
}
