@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
}

.header-content {
    display: flex;
    flex-wrap: wrap;            /* Allow items to wrap on narrow screens */
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;       /* Use design system spacing */
}
.header-content .logo img {
  max-height: 50px;           /* Keep logo height reasonable */
}
.header-content .search-bar {
  flex: 1 1 50%;              /* Grow/shrink with a base width of 50% */
  max-width: 50%;
  margin: 0 1rem;             /* Horizontal spacing */
}
.header-content .auth-buttons {
  display: flex;
  gap: 0.5rem;                /* Space between login/register buttons */
  white-space: nowrap;        /* Prevent buttons from wrapping internally */
}
  
/* Header Styles */
.header {
    background-color: #25262B;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo img {
    height: 46px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
}

/* Search Bar Styles */
.search-bar {
    display: flex;
    align-items: center;
    background-color: #333;
    padding: 0.5rem;
    border-radius: 4px;
    width: 40%;
}

.search-bar input,
.image-generator-bar input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    padding: 0.25rem;
}

/* Navigation Styles */
.nav-buttons,
.auth-nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.auth-button {
    background-color: #2b5797;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.auth-button:hover {
    background-color: #1e3c6e;
    color: rgba(255, 255, 255, 0.8);
}

.auth-button.outline {
    background-color: transparent;
    border: 1px solid #2b5797;
    color: #2b5797;
}

.auth-button.outline:hover {
    background-color: rgba(43, 87, 151, 0.1);
}

.menu-text {
    margin-bottom: 10px;
}

.main-nav {
    background-color: #25262B;
    padding: 0.5rem 1rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.main-nav a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem;
}

.main-nav a.active {
    color: #4f46e5;
    border-bottom: 2px solid #4f46e5;
}

/* Layout Utilities */
.blank-space {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.image-generator-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.generate-button-container {
    background-color: #2b5797;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.generate-button-container:hover {
    background-color: #1e3c6e;
}

.image-generator-bar {
    display: flex;
    align-items: center;
    background-color: #333;
    padding: 0.5rem;
    border-radius: 4px;
    width: 100%;
    max-width: 800px;
}

/* Content Sections */
.notification-banner,
.border-container {
    background-color: #1a1a1a;
    border: 1px solid #0066cc;
    margin: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.generated-image-section {
    background-color: #1a1a1a;
    margin: 1rem;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    height: 512px;
}

.placeholder-text {
    color: #666;
    font-style: italic;
}

/* Featured Section */
.featured-section {
    padding: 2rem;
}

.featured-section h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #ffffff;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.featured-item {
    background-color: #333;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-item:hover img {
    transform: scale(1.05);
}

.featured-item-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-item:hover .featured-item-info {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.featured-item:hover .video-overlay {
    opacity: 1;
}

/* Footer */
.footer {
    background-color: #222222;
    padding: 1rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #333;
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Swiper Styles */
.featured-swiper {
    width: 100%;
    height: 400px;
}

.featured-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
}

.featured-swiper .swiper-pagination-bullet {
    background-color: #ffffff;
}

.featured-swiper .swiper-button-prev,
.featured-swiper .swiper-button-next {
    color: #ffffff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-content {
      flex-direction: column;
      align-items: stretch;
      text-align: center;
    }
    .header-content .logo,
    .header-content .search-bar,
    .header-content .auth-buttons {
        width: 100%;
        margin: 0.5rem 0;
    }
    .header-content .search-bar {
        margin: 0.5rem auto;  /* Center the search bar horizontally */
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo img {
        height: 36px;
    }

    .search-bar {
        width: 100%;
        margin: 0.5rem 0;
        order: 3;
    }

    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .footer {
        position: relative;
        padding: 1rem 0.5rem;
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 0.5rem;
        gap: 0.5rem;
    }

    .footer-links a {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Utility classes */
.hidden {
    display: none !important;
}

@media (min-width: 768px) {
    .md\:hidden {
        display: none !important;
    }

    .md\:flex {
        display: flex !important;
    }
}

.faster {
  font-size: 0.6em;
  vertical-align: super;
  font-weight: bold;
  background: linear-gradient(90deg, #ff4500, #ffd700, #ff4500);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}