/* ============================================
   hela.studoke.com — Custom Styles
   ============================================ */

/* ── Smooth scrolling ─────────────────────── */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Body ─────────────────────────────────── */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main,
section:first-of-type {
    flex: 1;
}

/* ── Selection ────────────────────────────── */
::selection {
    background: rgba(16, 185, 129, 0.2);
    color: #064e3b;
}

/* ── Scrollbar ────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ── Focus ring ───────────────────────────── */
*:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* ── Glass card ───────────────────────────── */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ── Gradient text ────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #10b981, #059669, #047857);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Animated gradient background ─────────── */
.animated-gradient {
    background: linear-gradient(-45deg, #ecfdf5, #d1fae5, #a7f3d0, #6ee7b7);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
}

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

/* ── Fade-in on scroll ────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Slide-up ─────────────────────────────── */
.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Staggered children ───────────────────── */
.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.10s; }
.stagger > *:nth-child(3) { transition-delay: 0.15s; }
.stagger > *:nth-child(4) { transition-delay: 0.20s; }
.stagger > *:nth-child(5) { transition-delay: 0.25s; }
.stagger > *:nth-child(6) { transition-delay: 0.30s; }

/* ── Pulse glow ───────────────────────────── */
.pulse-glow {
    animation: pulseGlow 2.5s ease-in-out infinite;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50%      { box-shadow: 0 0 20px 10px rgba(16, 185, 129, 0); }
}

/* ── Floating ─────────────────────────────── */
.float {
    animation: floating 3s ease-in-out infinite;
}
@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* ── Card hover ───────────────────────────── */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* ── Range slider ─────────────────────────── */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
    border: 3px solid white;
    transition: transform 0.2s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
input[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
}

/* ── File upload dropzone ─────────────────── */
.dropzone-active {
    border-color: #10b981 !important;
    background: #ecfdf5 !important;
}

/* ── Photo preview grid ───────────────────── */
#photoPreview img {
    object-fit: cover;
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    transition: border-color 0.2s ease;
}
#photoPreview img:hover {
    border-color: #10b981;
}

/* ── Flash messages ───────────────────────── */
.flash-message {
    animation: flashSlideIn 0.4s ease-out;
}
@keyframes flashSlideIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Loading spinner ──────────────────────── */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Responsive typography ────────────────── */
@media (max-width: 640px) {
    h1 { font-size: 1.75rem !important; }
    h2 { font-size: 1.25rem !important; }
}

/* ── Print styles ─────────────────────────── */
@media print {
    nav, footer, .no-print { display: none !important; }
    body { background: white; }
    .shadow-sm, .shadow-lg, .shadow-xl { box-shadow: none !important; }
}
