/*
  This file contains custom styles for the Omnia blog layout.
  It works in conjunction with Tailwind CSS.
*/

/* Main layout container for sidebar and main content */
.omnia-layout-container {
  display: flex;
  flex-direction: column; /* Mobile-first: stack vertically */
  gap: 2rem;
  padding: 1.25rem 1rem;
}

/* Sidebar styles */
.omnia-sidebar {
  width: 100%; /* Full width on mobile */
  transition: all 0.3s ease-in-out;
}

/* Main content area styles */
.omnia-main-content {
  width: 100%; /* Full width on mobile */
  transition: all 0.3s ease-in-out;
  min-width: 0; /* Important for flexbox to prevent content from overflowing */
}

/* Desktop layout adjustments */
@media (min-width: 768px) {
  .omnia-layout-container {
    flex-direction: row; /* Side-by-side on desktop */
  }
  .omnia-sidebar {
    width: 16.666667%; /* 2/12 of the container */
    flex-shrink: 0; /* Prevent sidebar from shrinking */
    border-right: 1px solid #e5e7eb;
    padding-right: 2rem;
  }
  .omnia-main-content {
    flex-grow: 1; /* Allow main content to take up remaining space */
  }
  .dark .omnia-sidebar {
    border-right-color: #374151; /* Dark mode border */
  }
}

/* Hero Section Styles */
#hero-section {
    margin-bottom: 6rem;
    min-height: 600px;
    /* Use an absolute path from the static root for reliability */
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('/static/images/Space.png');
}

/* Explore Section Spacing */
#explore-section {
    margin-top: 6rem;
}

/* Styles moved from base.html */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-search button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-search button:hover {
    transform: translateY(-50%) scale(1.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Input */
.hero-section input[type="text"] {
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-section input[type="text"]:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero-section button[type="submit"] {
    transition: all 0.3s ease;
}

.hero-section button[type="submit"]:hover {
    transform: scale(1.05);
}

.featured-post-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
