/* Elvara by NASIA - Main CSS Styles */

/* ===== MEDIA PROTECTION - DISABLED FOR PERFORMANCE ===== */
/* Media protection disabled to prevent rendering issues and flashing */

/* Hero Section Styling */
.hero-standard-height {
    min-height: 500px;
}

@media (min-width: 640px) {
    .hero-standard-height {
        min-height: 600px;
    }
}

@media (min-width: 1024px) {
    .hero-standard-height {
        min-height: 650px;
    }
}

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

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

/* Smooth transitions for all interactive elements */
a, button, .transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #4ca87a;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid #5DBB8A;
    outline-offset: 2px;
}

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

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

.backdrop-blur {
    backdrop-filter: blur(8px);
}

/* Glass effects - DISABLED (using circular header system) */

/* Video container enhancements */
.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.video-container video {
    transition: transform 0.3s ease;
}

.video-container:hover video {
    transform: scale(1.05);
}

/* Custom Video Player Styles */
.custom-video-player {
    position: relative;
    cursor: pointer;
}

.custom-video-player video {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    border-radius: 12px;
    /* Hide default controls */
    -webkit-media-controls: none;
    -webkit-media-controls-panel: none;
    -webkit-media-controls-play-button: none;
    -webkit-media-controls-timeline: none;
    -webkit-media-controls-current-time-display: none;
    -webkit-media-controls-time-remaining-display: none;
    -webkit-media-controls-mute-button: none;
    -webkit-media-controls-volume-slider: none;
    -webkit-media-controls-fullscreen-button: none;
}

/* Hide all default video controls */
video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-panel {
    display: none !important;
}

video::-webkit-media-controls-play-button {
    display: none !important;
}

video::-webkit-media-controls-timeline {
    display: none !important;
}

video::-webkit-media-controls-current-time-display {
    display: none !important;
}

video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

video::-webkit-media-controls-mute-button {
    display: none !important;
}

video::-webkit-media-controls-volume-slider {
    display: none !important;
}

video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

video::-webkit-media-controls-overlay-play-button {
    display: none !important;
}


/* Standard video player styling */
video {
    background: #000;
    border-radius: 12px;
}

/* Ensure no transforms are applied to video elements */
.acemannan-video {
    transform: none;
}

/* Video container improvements */
.video-container {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Product card hover effects */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Mobile menu styles - DISABLED (using circular header system) */

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-charcoal {
        color: #000000;
    }
    
    .bg-porcelain {
        background-color: #ffffff;
    }
}

/* 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;
    }
}

/* ===== RESEARCH PAGE FIXES - PERFORMANCE OPTIMIZED ===== */
/* Targeted fixes only - minimal CSS for maximum performance */

/* Fix oversized search icons - specific selector for better performance */
.research-search-icon {
    width: 1rem;
    height: 1rem;
    max-width: 1rem;
    max-height: 1rem;
}

/* Fix text rendering issues - only on research page elements */
.research-page-text {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Prevent SVG oversizing - lightweight rule */
.research-search-container svg {
    max-width: 1rem;
    height: auto;
}

/* ===== BLOG PAGE STYLES ===== */

/* Blog post card enhancements */
.blog-post-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Pagination styling */
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #111111;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.page-numbers:hover {
    background-color: #5DBB8A;
    color: white;
    border-color: #5DBB8A;
}

.page-numbers.current {
    background-color: #5DBB8A;
    color: white;
    border-color: #5DBB8A;
}

.page-numbers.prev,
.page-numbers.next {
    width: auto;
    padding: 0 1rem;
}

.page-numbers.dots {
    border: none;
    pointer-events: none;
}

/* Blog list view adjustments */
.blog-posts-list-view .blog-post-card {
    display: flex;
    flex-direction: row;
    max-width: 100%;
}

.blog-posts-list-view .blog-post-card > a {
    flex: 0 0 300px;
}

.blog-posts-list-view .blog-post-card > div {
    flex: 1;
}

@media (max-width: 768px) {
    .blog-posts-list-view .blog-post-card {
        flex-direction: column;
    }
    
    .blog-posts-list-view .blog-post-card > a {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* ===== SINGLE POST STYLES ===== */

/* Prose styling for blog content */
.prose {
    color: #394149;
    max-width: 65ch;
}

.prose h2 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-size: 1.75em;
    line-height: 1.3;
}

.prose h3 {
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    font-size: 1.4em;
    line-height: 1.4;
}

.prose p {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    line-height: 1.75;
}

.prose ul, .prose ol {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose img {
    margin-top: 2em;
    margin-bottom: 2em;
    border-radius: 1rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}

.prose blockquote {
    font-style: italic;
    color: #5d6b74;
    margin-top: 1.6em;
    margin-bottom: 1.6em;
}

.prose code {
    background-color: #f7f7f7;
    padding: 0.2em 0.4em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    color: #111111;
}

.prose pre {
    background-color: #111111;
    color: #f7f7f7;
    padding: 1.25em 1.5em;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin-top: 1.75em;
    margin-bottom: 1.75em;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
}

/* Social share buttons hover effects */
.single-post a[href*="facebook"]:hover {
    transform: scale(1.1) rotate(5deg);
}

.single-post a[href*="twitter"]:hover {
    transform: scale(1.1) rotate(-5deg);
}

.single-post a[href*="linkedin"]:hover {
    transform: scale(1.1) rotate(5deg);
}