/* ==========================================================================
   TemplateHub Core Architecture Stylesheet 
   ========================================================================== */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6610f2;
    --accent-color: #ff9800;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --primary-soft: rgba(13, 110, 253, 0.12);
    --secondary-soft: rgba(102, 16, 242, 0.12);
    --success-soft: rgba(25, 135, 84, 0.12);
    --info-soft: rgba(13, 202, 240, 0.12);
    --warning-soft: rgba(255, 152, 0, 0.12);
    --danger-soft: rgba(220, 53, 69, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --card-radius: 20px;
    --transition-speed: cubic-bezier(0.4, 0, 0.2, 1);
    --glow-shadow: 0 0 20px rgba(13, 110, 253, 0.35);
}

[data-bs-theme="dark"] {
    --light-color: #1e1e24;
    --dark-color: #f8f9fa;
    --glass-bg: rgba(30, 30, 36, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    background-color: #121214;
}

/* Base Typographic Systems & Global Utilities */
body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    transition: background-color 0.4s var(--transition-speed), color 0.4s var(--transition-speed);
}
.font-poppins { font-family: 'Poppins', sans-serif; }
.font-inter { font-family: 'Inter', sans-serif; }
.fw-extrabold { font-weight: 800; }
.tracking-tight { letter-spacing: -0.03em; }
.tracking-wider { letter-spacing: 0.08em; }
.max-w-600 { max-w: 600px; }
.max-w-800 { max-w: 800px; }
.max-w-500 { max-w: 500px; }
.max-w-300 { max-w: 300px; }
.z-3000 { z-index: 3000; }
.z-2000 { z-index: 2000; }
.z-1000 { z-index: 1000; }
.z-10 { z-index: 10; }
.z-2 { z-index: 2; }
.line-height-0 { line-height: 0; }
.height-60 { height: 60px; }

/* Custom Scroll Progress Engine Overlay */
#scrollProgressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* Linear Gradient Typography Elements styling */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Interactive Luxury Glassmorphism Utilities */
.glass-navbar {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}
.glass-morphism {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
}

/* Action Control Components (Buttons) Layout Configuration */
.btn-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white-color) !important;
    border: none;
    transition: all 0.3s var(--transition-speed);
}
.btn-gradient-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-shadow);
    opacity: 0.95;
}
.btn-gradient-secondary {
    background: linear-gradient(135deg, #343a40 0%, var(--dark-color) 100%);
    color: var(--white-color) !important;
    border: none;
    transition: all 0.3s var(--transition-speed);
}
.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s var(--transition-speed);
}
.btn-outline-custom:hover {
    background: var(--primary-color);
    color: var(--white-color) !important;
    transform: translateY(-2px);
}
.btn-icon-radial {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-color);
    transition: all 0.3s var(--transition-speed);
}
.btn-icon-radial:hover {
    background: var(--primary-color);
    color: var(--white-color);
    transform: scale(1.05);
}

/* Section Architecture Canvas & Floating Shapes Elements */
.hero-canvas {
    background: radial-gradient(circle at 80% 20%, rgba(102, 16, 242, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(13, 110, 253, 0.05) 0%, transparent 40%);
    padding: 140px 0 100px 0;
    min-height: 85vh;
}
.wave-fill-canvas {
    fill: var(--light-color);
    transition: fill 0.4s var(--transition-speed);
}
[data-bs-theme="dark"] .wave-fill-canvas {
    fill: #121214;
}

/* Micro Interaction Animations Layout Core */
.shape-floating {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-soft), var(--secondary-soft));
    z-index: 1;
    animation: floatingEngine 12s infinite alternate ease-in-out;
}
.style-circle-1 { width: 140px; height: 140px; top: 15%; left: 5%; animation-delay: 0s; }
.style-circle-2 { width: 220px; height: 220px; bottom: 10%; right: 8%; animation-delay: -3s; }
.style-circle-3 { width: 90px; height: 90px; top: 45%; left: 45%; animation-delay: -6s; }

@keyframes floatingEngine {
    0% { transform: translateY(0px) rotate(0deg) scale(1); }
    50% { transform: translateY(-25px) rotate(90deg) scale(1.05); }
    100% { transform: translateY(0px) rotate(180deg) scale(1); }
}

/* Complex Premium Template Card Matrix Configurations */
.template-card-canvas {
    border-radius: var(--card-radius);
    overflow: hidden;
    background: var(--white-color);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.4s var(--transition-speed);
}
[data-bs-theme="dark"] .template-card-canvas {
    background: #1e1e24;
    border: 1px solid rgba(255,255,255,0.05);
}
.template-card-canvas:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}
.card-preview-viewport {
    position: relative;
    padding-top: 62%;
    overflow: hidden;
    background-color: var(--light-color);
}
.card-preview-viewport img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--transition-speed);
}
.template-card-canvas:hover .card-preview-viewport img {
    transform: scale(1.06) rotate(0.5deg);
}
.image-overlay-curtain {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.75) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}
.template-card-canvas:hover .image-overlay-curtain {
    opacity: 1;
}

/* Category Structural Node Blocks Styling */
.category-micro-card {
    background: var(--white-color);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    transition: all 0.3s var(--transition-speed);
    cursor: pointer;
}
[data-bs-theme="dark"] .category-micro-card {
    background: #1e1e24;
    border: 1px solid rgba(255,255,255,0.04);
}
.category-micro-card:hover {
    background: var(--primary-color);
    color: var(--white-color) !important;
    transform: translateY(-4px);
    box-shadow: var(--glow-shadow);
}
.category-micro-card:hover .btn-icon-radial {
    background: rgba(255,255,255,0.2) !important;
    color: var(--white-color) !important;
}

/* Swiper Carousel Layer Adjustments overrides */
.unique-swiper-padding {
    padding: 25px 5px !important;
}

/* Transition Utilities Faders */
.transition-all { transition: all 0.3s var(--transition-speed); }
.transition-fade { transition: opacity 0.4s ease; }
.hover-lift:hover { transform: translateY(-6px); }
.glow-border { border: 1px solid var(--primary-color) !important; box-shadow: var(--glow-shadow); }
.shadow-glow { box-shadow: 0 10px 25px rgba(13, 110, 253, 0.4); }
.shadow-inner { box-shadow: inset 0 2px 8px rgba(0,0,0,0.06); }
.hover-left-span:hover { transform: translateX(5px); color: var(--primary-color) !important; display: inline-block; }

/* System Status Loading Skeletons */
.skeleton-loader-card-mock {
    animation: flashSkeleton 1.5s infinite ease-in-out;
}
@keyframes flashSkeleton {
    0% { opacity: 0.4; }
    50% { opacity: 0.8; }
    100% { opacity: 0.4; }
}