/* Page-specific styles for enhanced performance */

/* Utility classes */
.h-14 { height: 3.5rem; }
.h-34 { height: 8.5rem; }
.bg-primary\/5 { background-color: rgba(1, 153, 0, 0.05); }
.border-gray-200\/60 { border-color: rgba(229, 231, 235, 0.6); }
.pt-8 { padding-top: 2rem; }
.pt-12 { padding-top: 3rem; }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.bg-white\/80 { background-color: rgba(255, 255, 255, 0.8); }
.group { /* For hover states */ }
.hover\:text-primary:hover { color: var(--primary); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }

/* List styling fixes - Remove all bullets from navigation and social lists */
ul[role="list"], 
nav ul, 
.social-section ul,
header ul,
footer ul {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

ul[role="list"] li, 
nav ul li, 
.social-section ul li,
header ul li,
footer ul li {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure flex containers don't show bullets */
.flex ul, .flex ul li {
    list-style: none !important;
    list-style-type: none !important;
}

/* Typography enhancements */
.tracking-tight {
    letter-spacing: -0.025em;
}

.accent {
    color: var(--primary);
}

/* Gradient utilities */
.bg-gradient-to-b {
    background: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-br {
    background: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-transparent {
    --tw-gradient-from: transparent;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.via-gray-50\/30 {
    --tw-gradient-stops: var(--tw-gradient-from), rgba(249, 250, 251, 0.3), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.to-gray-100\/50 {
    --tw-gradient-to: rgba(243, 244, 246, 0.5);
}

/* Layout optimizations */
.site-header {
    background: none !important;
}

.main-content {
    contain: layout style;
    will-change: contents;
}

.flyer-navigation-section {
    contain: layout;
}

.flyer-display-section {
    contain: layout style;
}

/* Layout specific styles */
#flyerTabNavContainer {
    position: relative;
    z-index: 20;
    padding-top: 2rem;
    margin-bottom: 2rem;
}

#iframeContainer {
    position: relative;
    z-index: 10;
    margin-top: 0;
}

/* Enhanced loading state */
.loading-state {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.9);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(1, 153, 0, 0.1);
    border-left: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Social media enhancements */
.social-link {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link:hover {
    transform: translateY(-2px);
}

.social-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Brand optimizations */
.brand-logo {
    transition: transform 0.2s ease;
}

.brand-content {
    max-width: 600px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .px-6 { padding-left: 1rem; padding-right: 1rem; }
    .text-2xl { font-size: 1.25rem; line-height: 1.75rem; }
    .space-x-6 > * + * { margin-left: 1rem; }
    .flex-col { flex-direction: column; }
    
    /* Mobile optimizations */
    #flyerTabNavContainer {
        padding-top: 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    #iframeContainer {
        margin-top: 0 !important;
    }
    
    .main-content {
        padding: 8px 16px !important;
    }
    
    .relative.mb-6 {
        margin-bottom: 0.5rem !important;
    }
    
    .brand-content h1 {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .social-section {
        margin-bottom: 2rem;
    }
    
    .social-section ul {
        gap: 1rem;
    }
    
    .social-link {
        padding: 0.75rem;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .skip-to-main:focus {
        outline: 3px solid;
        outline-offset: 3px;
    }
    
    .social-link:focus {
        outline: 3px solid;
        outline-offset: 3px;
    }
}

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

/* Print styles */
@media print {
    .skip-to-main,
    .social-section,
    #flyerTabNavContainer,
    .floating-decoration {
        display: none !important;
    }
    
    .site-header {
        margin-bottom: 2rem;
    }
    
    body {
        background: white !important;
    }
}