/**
 * Arkodach - Custom Stylesheet
 * Dodatkowe style uzupełniające Tailwind CSS
 */

/* ======================
   CUSTOM SCROLLBAR
   ====================== */
::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: #1e3a8a; /* navy */
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af; /* navy-dark */
}

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

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out;
}

/* Emergency pulse animation */
.animate-pulse-slow {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* ======================
   CUSTOM UTILITIES
   ====================== */

/* Line clamp for text truncation */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* ======================
   HOVER EFFECTS
   ====================== */

/* Card hover lift */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Image zoom on hover */
.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.7s ease;
}

.hover-zoom:hover img {
    transform: scale(1.1);
}

/* ======================
   GRADIENT OVERLAYS
   ====================== */
.gradient-overlay-dark {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
}

.gradient-overlay-navy {
    background: linear-gradient(to right, rgba(30, 58, 138, 0.95) 0%, rgba(30, 58, 138, 0.7) 50%, transparent 100%);
}

/* ======================
   MOBILE OPTIMIZATIONS
   ====================== */
@media (max-width: 768px) {
    /* Prevent horizontal scroll on mobile */
    body {
        overflow-x: hidden;
    }
    
    /* Better tap targets */
    button, a {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ======================
   PRINT STYLES
   ====================== */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
}

/* ======================
   ACCESSIBILITY
   ====================== */

/* Focus styles */
*:focus-visible {
    outline: 2px solid #1e3a8a;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #1e3a8a;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ======================
   UTILITY CLASSES
   ====================== */

/* Text shadow for better readability on images */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Backdrop blur fallback */
.backdrop-blur-fallback {
    background-color: rgba(255, 255, 255, 0.95);
}

@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-fallback {
        backdrop-filter: blur(10px);
        background-color: rgba(255, 255, 255, 0.8);
    }
}

/* ======================
   LOADING SPINNER
   ====================== */
.spinner {
    border: 3px solid rgba(30, 58, 138, 0.1);
    border-top-color: #1e3a8a;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* ======================
   CUSTOM COLORS
   ====================== */
:root {
    --color-navy: #1e3a8a;
    --color-navy-dark: #1e40af;
    --color-graphite: #2d2d2d;
    --color-graphite-dark: #1a1a1a;
    --color-soft-blue: #60a5fa;
}
