/* Caffene Landing Plugin Frontend Styles */

/* Additional responsive improvements */
@media screen and (max-width: 1400px) {
    .iframe-container {
        max-width: 95%;
        max-height: 90%;
    }
}

@media screen and (max-width: 1200px) {
    .left-column, .right-column {
        min-width: 250px;
    }
    
    .middle-column {
        width: 400px;
        min-width: 400px;
        max-width: 400px;
    }
}

@media screen and (max-width: 1024px) {
    .left-column, .right-column {
        min-width: 200px;
        padding: 1.5vh 1.5vw;
    }
    
    .middle-column {
        width: 350px;
        min-width: 350px;
        max-width: 350px;
    }
    
    .iframe-container {
        max-width: 98%;
        max-height: 95%;
    }
}

/* Enhanced loading animation */
.loading-overlay {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.loading-spinner {
    position: relative;
}

.loading-spinner::after {
    content: 'Loading...';
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Smooth transitions */
.thumbnail-item,
.btn-primary,
.btn-secondary,
.tech-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced hover effects */
.thumbnail-item:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.tech-icon:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Custom scrollbar improvements for Firefox */
.right-column {
    scrollbar-width: thin;
    scrollbar-color: #6c757d #e9ecef;
}

/* Focus states for accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.thumbnail-item:focus,
.tech-icon:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .container {
        display: none !important;
    }
    
    body::after {
        content: "This page is optimized for desktop viewing. Please visit the website to see the full experience.";
        display: block;
        text-align: center;
        padding: 50px;
        font-size: 18px;
        color: #333;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .left-column,
    .right-column {
        border: 2px solid #000;
    }
    
    .thumbnail-item {
        border: 2px solid #000;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid #000;
    }
}

/* 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;
    }
    
    .loading-spinner {
        animation: none;
    }
}

/* Dark mode support (if theme supports it) */
@media (prefers-color-scheme: dark) {
    .left-column,
    .right-column {
        background: #1a1a1a;
        color: #e0e0e0;
    }
    
    .left-column h1,
    .left-column h3,
    .right-column h2,
    .right-column h3 {
        color: #ffffff;
    }
    
    .left-column p {
        color: #b0b0b0;
    }
    
    .thumbnail-item {
        background: #2a2a2a;
        border-color: #404040;
    }
    
    .right-column::-webkit-scrollbar-track {
        background: #2a2a2a;
    }
    
    .right-column::-webkit-scrollbar-thumb {
        background: #555555;
    }
    
    .right-column::-webkit-scrollbar-thumb:hover {
        background: #777777;
    }
}

