/* Huplok Design System - Based on Madge Template */

/* ============================================
   Typography - Playfair Display for Headings
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* Font Families */
.serif, h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

/* ============================================
   Glass Card Effects
   ============================================ */
.glass-card {
    background: rgba(28, 25, 23, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.glass-card:hover {
    background: rgba(28, 25, 23, 0.7);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ============================================
   Selection Styling
   ============================================ */
::selection {
    background-color: #dc2626;
    color: white;
}

/* ============================================
   Custom Text Utilities
   ============================================ */
.text-stone-50 { color: #fafaf9; }
.text-stone-100 { color: #f5f5f4; }
.text-stone-200 { color: #e7e5e4; }
.text-stone-300 { color: #d6d3d1; }
.text-stone-400 { color: #a8a29e; }
.text-stone-500 { color: #78716c; }
.text-stone-600 { color: #57534e; }
.text-stone-700 { color: #44403c; }
.text-stone-800 { color: #292524; }
.text-stone-900 { color: #1c1917; }
.text-stone-950 { color: #0c0a09; }

/* Red Utilities */
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }

/* ============================================
   Custom Background Utilities
   ============================================ */
.bg-stone-50 { background-color: #fafaf9; }
.bg-stone-100 { background-color: #f5f5f4; }
.bg-stone-200 { background-color: #e7e5e4; }
.bg-stone-300 { background-color: #d6d3d1; }
.bg-stone-400 { background-color: #a8a29e; }
.bg-stone-500 { background-color: #78716c; }
.bg-stone-600 { background-color: #57534e; }
.bg-stone-700 { background-color: #44403c; }
.bg-stone-800 { background-color: #292524; }
.bg-stone-900 { background-color: #1c1917; }
.bg-stone-950 { background-color: #0c0a09; }

/* Red Backgrounds */
.bg-red-600 { background-color: #dc2626; }
.bg-red-700 { background-color: #b91c1c; }

/* ============================================
   Custom Border Utilities
   ============================================ */
.border-stone-50 { border-color: #fafaf9; }
.border-stone-100 { border-color: #f5f5f4; }
.border-stone-200 { border-color: #e7e5e4; }
.border-stone-300 { border-color: #d6d3d1; }
.border-stone-400 { border-color: #a8a29e; }
.border-stone-500 { border-color: #78716c; }
.border-stone-600 { border-color: #57534e; }
.border-stone-700 { border-color: #44403c; }
.border-stone-800 { border-color: #292524; }
.border-stone-900 { border-color: #1c1917; }

/* ============================================
   Button Styles - Red CTAs
   ============================================ */
.btn-primary {
    background-color: #dc2626;
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background-color: #b91c1c;
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.625rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Card Styles
   ============================================ */
.card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid #e7e5e4;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Gradient Overlays
   ============================================ */
.gradient-overlay-dark {
    background: linear-gradient(to right, rgba(28, 25, 23, 0.9), rgba(28, 25, 23, 0.4), transparent);
}

.gradient-overlay-vertical {
    background: linear-gradient(to bottom, #1c1917, rgba(28, 25, 23, 0.9), #1c1917);
}

/* ============================================
   Typography Enhancements
   ============================================ */
.heading-xl {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 0.9;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.heading-lg {
    font-size: clamp(2rem, 4vw, 3.75rem);
    line-height: 0.9;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.heading-md {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.2;
    font-weight: 500;
}

.body-sm {
    font-size: 0.875rem;
    line-height: 1.6;
    font-weight: 300;
}

/* ============================================
   Navigation Utilities
   ============================================ */
.nav-link {
    font-size: 0.75rem;
    font-weight: 500;
    color: #78716c;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #dc2626;
}

/* ============================================
   Smooth Scroll
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* ============================================
   Backdrop Blur Utilities
   ============================================ */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(8px);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
}

/* ============================================
   Responsive Utilities
   ============================================ */
@media (max-width: 768px) {
    .heading-xl {
        font-size: 2.5rem;
    }
    
    .heading-lg {
        font-size: 2rem;
    }
    
    .heading-md {
        font-size: 1.5rem;
    }
}

/* ============================================
   Focus States - Red Accent
   ============================================ */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* ============================================
   Image Overlay Effects
   ============================================ */
.image-overlay {
    position: relative;
}

.image-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(12, 10, 9, 0.2);
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 0;
}

/* ============================================
   Hover Effects for Red Buttons
   ============================================ */
.hover\:bg-red-700:hover {
    background-color: #b91c1c;
}

.hover\:bg-red-600:hover {
    background-color: #dc2626;
}