/**
 * CZINIOS.COM - MODERN ENHANCEMENTS
 * Version 2.0 - 2026
 * Pridėkite šį failą PAPILDOMAI prie esamo CSS
 */

/* ============================================
   MODERN COLOR SCHEME - INDIGO/PURPLE THEME
   ============================================ */
:root {
    /* Override existing colors with modern palette */
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* New additions */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --accent-gradient: linear-gradient(135deg, #ec4899 0%, #f59e0b 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   IMPROVED TYPOGRAPHY
   ============================================ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.02em;
}

/* ============================================
   ENHANCED HEADER
   ============================================ */
.site-header {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-lg);
}

.logo a {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform var(--transition);
}

.logo a:hover {
    transform: scale(1.05);
}

/* Navigation improvements */
.main-nav a {
    position: relative;
    transition: color var(--transition);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

/* ============================================
   MODERN BUTTONS
   ============================================ */
.btn-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-donate {
    background: var(--accent-gradient) !important;
    box-shadow: var(--shadow-md);
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
}

/* ============================================
   HERO SECTION IMPROVEMENTS
   ============================================ */
.hero {
    background: var(--primary-gradient) !important;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    animation: slidePattern 60s linear infinite;
}

@keyframes slidePattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero h1 {
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.search-bar {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

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

/* Enhanced search bar */
.search-form {
    box-shadow: var(--shadow-xl) !important;
    border-radius: 1rem !important;
}

.search-input,
.search-category {
    border-radius: 0.75rem !important;
    transition: all var(--transition);
}

.search-input:focus,
.search-category:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

/* ============================================
   ENHANCED CARDS
   ============================================ */
.category-card,
.listing-card {
    border-radius: 1rem !important;
    border: 2px solid transparent !important;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.category-card:hover,
.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color) !important;
}

/* Category icons with gradient */
.category-icon {
    background: var(--primary-gradient) !important;
    border-radius: 1.5rem !important;
    width: 80px !important;
    height: 80px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2.5rem !important;
    margin: 0 auto 1rem !important;
}

/* Listing images with overlay effect */
.listing-image {
    position: relative;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
}

.listing-image img {
    transition: transform 0.5s ease;
}

.listing-card:hover .listing-image img {
    transform: scale(1.1);
}

/* Featured badge */
.badge-featured {
    background: var(--accent-gradient) !important;
    border-radius: 50px !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* ============================================
   SECTION IMPROVEMENTS
   ============================================ */
.section-title {
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 50px;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--primary-gradient) !important;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

/* ============================================
   FOOTER IMPROVEMENTS
   ============================================ */
.site-footer {
    background: var(--dark-color, #2c3e50) !important;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

/* ============================================
   LOADING ANIMATIONS
   ============================================ */
.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* ============================================
   SMOOTH SCROLLING
   ============================================ */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* ============================================
   FOCUS STYLES (ACCESSIBILITY)
   ============================================ */
*:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.5);
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* ============================================
   RESPONSIVE IMPROVEMENTS
   ============================================ */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0 !important;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 8vw, 3rem) !important;
    }
    
    .category-card,
    .listing-card {
        margin-bottom: 1rem;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .btn,
    .search-bar {
        display: none !important;
    }
    
    .listing-card,
    .category-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ============================================
   DARK MODE SUPPORT (FUTURE)
   ============================================ */
@media (prefers-color-scheme: dark) {
    /* Uncomment when ready to implement dark mode
    :root {
        --bg-primary: #1e293b;
        --text-primary: #f8fafc;
        --border: #334155;
    }
    */
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-in-up {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects */
.hover-lift {
    transition: transform var(--transition);
}

.hover-lift:hover {
    transform: translateY(-4px);
}

/* ============================================
   END OF MODERN ENHANCEMENTS
   ============================================ */
/* ============================================
   SUBSCRIBE BUTTON FIX
   ============================================ */

/* Newsletter/Subscribe form buttons */
.subscribe-button,
.newsletter-button,
input[type="submit"][value*="ubscribe"],
button[type="submit"]:contains("Subscribe"),
.btn-subscribe,
.email-subscribe button,
.newsletter-form button,
form[action*="subscribe"] button,
form[action*="newsletter"] button {
    padding: 12px 30px !important;
    min-width: auto !important;
    width: auto !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    font-size: 0.95rem !important;
}

/* Footer subscribe/newsletter forms */
footer input[type="submit"],
footer button[type="submit"],
.site-footer input[type="submit"],
.site-footer button[type="submit"],
.footer-newsletter button,
.footer-subscribe button {
    padding: 12px 30px !important;
    min-width: auto !important;
    width: auto !important;
    white-space: nowrap !important;
}

/* Generic button fixes for text overflow */
.btn,
button,
input[type="submit"],
input[type="button"] {
    white-space: nowrap !important;
    overflow: visible !important;
}/* ============================================
   NEWSLETTER SUBSCRIBE BUTTON FIX
   Footer newsletter button text overflow fix
   ============================================ */

/* Newsletter section button */
.newsletter form button,
.newsletter button[type="submit"],
.newsletter input[type="submit"],
form button:contains("Subscribe"),
.site-footer form button,
.site-footer input[type="submit"] {
    padding: 12px 35px !important;
    min-width: 140px !important;
    width: auto !important;
    white-space: nowrap !important;
    overflow: visible !important;
    font-size: 1rem !important;
    border-radius: 0.75rem !important;
}

/* Backup fix for all footer buttons */
footer button,
footer input[type="submit"],
.site-footer button,
.site-footer input[type="submit"] {
    padding: 12px 30px !important;
    white-space: nowrap !important;
}

/* Newsletter form layout fix */
.newsletter form,
.newsletter-form {
    display: flex !important;
    gap: 0.5rem !important;
    align-items: center !important;
}

.newsletter input[type="email"],
.newsletter-form input[type="email"] {
    flex: 1 !important;
    min-width: 200px !important;
}