/**
 * Versana Theme - Pattern Styles
 * 
 * Professional styling for block patterns
 * 
 * @package Versana
 * @since 1.0.0
 */

/* ============================================
   SHADOWS
   ============================================ */

.has-shadow {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.has-shadow:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.has-shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.has-shadow-sm:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.has-shadow-md {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.has-shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.has-shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

.wp-block-column:has(.has-shadow) {
    transition: transform 0.3s ease;
}

/* ============================================
   BUTTONS
   ============================================ */

.wp-block-button__link {
    transition: all 0.3s ease;
}

.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.wp-block-button__link:active {
    transform: translateY(0);
}

/* ============================================
   FOOTER LINKS
   ============================================ */

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.is-style-no-bullets {
    list-style: none;
}

/* ============================================
   CONTACT SECTION ICONS
   ============================================ */

.wp-block-group:has([style*="📧"]) .wp-block-group:first-child,
.wp-block-group:has([style*="📞"]) .wp-block-group:first-child,
.wp-block-group:has([style*="📍"]) .wp-block-group:first-child {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 781px) {
    /* Stack columns on mobile */
    .wp-block-columns {
        flex-direction: column;
    }
    
    /* Smaller headings on mobile */
    .has-4-xl-font-size {
        font-size: 2.5rem !important;
    }
    
    .has-3-xl-font-size {
        font-size: 2rem !important;
    }
    
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .has-shadow,
    .has-shadow-sm,
    .has-shadow-md,
    .has-shadow-lg {
        border: 2px solid currentColor;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .has-shadow,
    .has-shadow-sm,
    .has-shadow-md,
    .has-shadow-lg {
        box-shadow: none !important;
        border: 1px solid #000;
    }
    
    .wp-block-button {
        display: none;
    }
    
    .wp-block-social-links {
        display: none;
    }
}

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

.text-balance {
    text-wrap: balance;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

/* Loading states */
.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================
   GRADIENT OVERLAYS
   ============================================ */

.wp-block-cover.has-background-gradient::before {
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}

/* ============================================
   ENHANCED SEPARATORS
   ============================================ */

.wp-block-separator.is-style-wide {
    max-width: 100%;
}

.wp-block-separator:not(.is-style-dots) {
    height: 1px;
    background-color: currentColor;
}

/* ============================================
   IMAGE EFFECTS
   ============================================ */

.wp-block-image img {
    transition: transform 0.3s ease;
}

.wp-block-image:hover img {
    transform: scale(1.02);
}

/* ============================================
   LINK UNDERLINE EFFECTS
   ============================================ */

.wp-block-paragraph a {
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.3s ease;
}

.wp-block-paragraph a:hover {
    text-decoration-color: currentColor;
}

/* ============================================
   SMOOTH PAGE TRANSITIONS
   ============================================ */

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* ============================================
   CONTACT FORM PLACEHOLDER
   ============================================ */

.wp-block-paragraph:has(strong:contains("Contact Form")) {
    text-align: center;
    color: #666;
    font-style: italic;
}