/* Custom base styles and component overrides that work with Tailwind */

/* Font loading optimization */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@300;400;500;600;700;800&display=swap');

/* Ensure font loads properly */
body {
  font-display: swap;
}

/* Font loading overlay */
#font-loading-overlay {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Add a subtle text shadow for readability on complex backgrounds */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Spinner Animation */
.spinner {
  border: 8px solid #334155; /* slate-700 */
  border-top: 8px solid #22d3ee; /* cyan-400 */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1.5s linear infinite;
}

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

/* The 'hidden' class from Tailwind sets 'display: none', which prevents
  CSS transitions. We will control visibility in JS by toggling opacity 
  and the 'invisible' class for smoother fade effects.
*/

/* --- Gallery Hover Effect --- */

/* Target the individual gallery item containers */
#gallery-grid > div {
    /* Ensures the change in size is smoothly animated */
    transition: all 0.4s ease-in-out;
}

#gallery-grid > div:hover {
    /* When a user hovers over the item, we let the content's
       natural aspect ratio take over from the fixed 'aspect-video'. */
    aspect-ratio: none;

    /* We also bring the hovered item to the front to ensure
       its shadow and borders are not overlapped by adjacent items. */
    z-index: 10;
    transform: scale(1.02);
}

/* Target the image or iframe inside the hovered container */
#gallery-grid > div:hover .h-full {
    /* This changes the image from 'cover' (which crops)
       to 'contain' (which shows the full image). */
    object-fit: contain;
}

/* Chat styles */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Call to Action Animations */
.call-to-action-container {
    animation: fadeInDown 1s ease-out;
}

.floating-text {
    animation: float 3s ease-in-out infinite;
}

.bouncing-arrow {
    animation: bounceGlow 2s ease-in-out infinite;
}

.witty-subtitle {
    animation: slideInFromBottom 1.2s ease-out 0.5s both;
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounceGlow {
    0%, 100% {
        transform: translateY(0px) scale(1);
        filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.5));
    }
    50% {
        transform: translateY(-15px) scale(1.1);
        filter: drop-shadow(0 0 20px rgba(34, 211, 238, 0.8));
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes animate-fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: animate-fade-in-up 1s ease-out 0.8s both;
}

/* Responsive adjustments for call to action */
@media (max-width: 640px) {
    .call-to-action-container {
        margin-bottom: 1.5rem;
    }

    .floating-text h1 {
        font-size: 2rem;
    }

    .bouncing-arrow {
        font-size: 1.5rem;
    }

    .witty-subtitle p {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Markdown content styling */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    color: #06b6d4;
    font-weight: bold;
    margin: 0.5rem 0;
}

.markdown-content h1 { font-size: 1.25rem; }
.markdown-content h2 { font-size: 1.125rem; }
.markdown-content h3 { font-size: 1rem; }

.markdown-content p {
    margin: 0.5rem 0;
    line-height: 1.4;
}

.markdown-content ul,
.markdown-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.markdown-content li {
    margin: 0.25rem 0;
}

.markdown-content code {
    background-color: #374151;
    color: #fbbf24;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

.markdown-content pre {
    background-color: #1f2937;
    color: #e5e7eb;
    padding: 0.75rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    margin: 0.5rem 0;
    border: 1px solid #374151;
}

.markdown-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.markdown-content blockquote {
    border-left: 4px solid #06b6d4;
    padding-left: 1rem;
    margin: 0.5rem 0;
    color: #9ca3af;
    font-style: italic;
}

.markdown-content a {
    color: #06b6d4;
    text-decoration: underline;
}

.markdown-content a:hover {
    color: #0891b2;
}

.markdown-content strong {
    font-weight: bold;
    color: #f3f4f6;
}

.markdown-content em {
    font-style: italic;
    color: #d1d5db;
}

.markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.5rem 0;
}

.markdown-content th,
.markdown-content td {
    border: 1px solid #374151;
    padding: 0.5rem;
    text-align: left;
}

.markdown-content th {
    background-color: #374151;
    font-weight: bold;
}

/* Loading spinner */
.spinner {
    border: 4px solid rgba(0, 255, 255, 0.1);
    border-left: 4px solid #00ffff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

/* Footer adjustments */
body {
    padding-bottom: 4rem; /* Add space for footer */
}

main {
    padding-bottom: 0; /* Remove extra padding from main since body has it */
}

/* Footer positioning - mobile-first approach */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    /* Ensure footer stays visible on mobile browsers */
    min-height: 3rem;
    /* Prevent mobile Safari from hiding footer behind home indicator */
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Footer responsive design */
@media (max-width: 640px) {
    body {
        padding-bottom: 5rem; /* Extra space on mobile for two-line footer */
        /* Account for safe area on mobile */
        padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0));
    }
    
    footer {
        /* Ensure consistent positioning on mobile */
        position: fixed;
        bottom: 0;
        width: 100%;
        /* Add safe area padding for notched devices */
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
    }
}
</replit_final_file>