/* Custom Styles for VHK Frontend */

/* ==============================================
   REMOVE FOCUS OUTLINES
   ============================================== */
*:focus,
*:active,
button:focus,
button:active,
a:focus,
a:active,
input:focus,
textarea:focus,
select:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove blue border from Tailwind focus rings */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* ==============================================
   FLOATING INPUT LABELS
   ============================================== */
.floating-input {
    position: relative;
}

.floating-input input,
.floating-input textarea {
    width: 100%;
    padding: 1.25rem 1rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.3s;
}

.floating-input input:focus,
.floating-input textarea:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 1px #f97316;
}

.floating-input label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 600;
    pointer-events: none;
    transition: all 0.3s;
}

.floating-input input:focus + label,
.floating-input input:not(:placeholder-shown) + label,
.floating-input textarea:focus + label,
.floating-input textarea:not(:placeholder-shown) + label {
    top: 0.375rem;
    font-size: 0.75rem;
    color: #f97316;
}

.floating-input textarea {
    padding-top: 1.5rem;
    resize: none;
}

/* ==============================================
   HERO SLIDER
   ============================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
}

.hero-slide {
    transition: opacity 1s ease-in-out, z-index 0s 1s;
}

.hero-slide.active {
    transition: opacity 1s ease-in-out, z-index 0s 0s;
}

.hero-slide .bg-cover {
    transition: transform 8s ease-out;
}

.hero-slide.active .bg-cover {
    transform: scale(1.1);
}

/* Slider Controls */
.hero-prev, .hero-next {
    transition: all 0.3s ease;
}

.hero-prev:hover, .hero-next:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Slider Indicators */
.hero-indicator {
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-indicator:hover {
    transform: scale(1.2);
    background-color: rgba(255, 255, 255, 0.8) !important;
}

/* ==============================================
   SMOOTH SCROLLING
   ============================================== */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #f97316;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}

/* Backdrop Blur Support */
@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-lg {
        backdrop-filter: blur(16px);
    }
}

/* Custom Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #0ea5e9 0%, #d946ef 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Loading Spinner */
.spinner {
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #0ea5e9;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Focus Styles for Accessibility */
button:focus,
a:focus {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* Glass Morphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    header,
    footer,
    .no-print {
        display: none;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Add dark mode styles here if needed */
}

/* Custom Utilities */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.shadow-soft {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

/* Loading State */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

/* Button Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Parallax Effect Helper */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Custom Select Dropdown */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Image Lazy Loading Fade In */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Utility Classes */
.blur-text {
    color: transparent;
    text-shadow: 0 0 8px rgba(0,0,0,0.5);
}

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

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