@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

html {
    overscroll-behavior-y: contain; /* Prevent pull-to-refresh on html element as well */
}

body {
    background-color: #000000; /* Slightly off-black for depth */
    background-image: radial-gradient(circle at top center, rgba(50, 50, 70, 0.15) 0%, transparent 50%);
    color: #E0E0E0; /* Light gray for primary text */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scrollbars by default */
    -webkit-font-smoothing: antialiased; /* Smoother fonts on WebKit browsers */
    -moz-osx-font-smoothing: grayscale; /* Smoother fonts on Firefox */
    overscroll-behavior-y: contain; /* Prevent pull-to-refresh */
}

/* General link styling */
a {
    color: #B0B0B0; /* Medium-light gray for links */
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: #FFFFFF; /* White for hover, max contrast on black */
    text-decoration: none; 
}

/* Utility class for visually hidden elements (for accessibility) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Define a consistent container for centered content */
.container-main {
    width: 100%;
    max-width: 1280px; /* Example max-width, adjust as needed */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;  /* Consistent padding */
    padding-right: 1.5rem; 
}

@media (min-width: 640px) {
    .container-main {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .container-main {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

/* Add any other global styles, custom properties, or utility classes here */
/* For example, a common button style base if not fully covered by Tailwind */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem; /* py-2.5 px-5 - adjusted for iOS feel */
    border-radius: 0.625rem; /* 10px rounded corners */
    font-weight: 500; /* Medium weight common in iOS */
    text-align: center;
    transition: background-color 0.2s ease-in-out, transform 0.1s ease-in-out;
    cursor: pointer;
    border: none; /* iOS buttons often don't have borders by default */
    min-height: 44px; /* Minimum tap target size */
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-image: linear-gradient(to bottom, rgba(75, 75, 85, 0.8), rgba(55, 55, 65, 0.9));
    color: #FFFFFF; /* White text for high contrast */
    border: 1px solid rgba(100, 100, 110, 0.5);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 1px 3px rgba(0,0,0,0.3);
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background-image: linear-gradient(to bottom, rgba(85, 85, 95, 0.85), rgba(65, 65, 75, 0.95));
    border-color: rgba(120, 120, 130, 0.6);
}

.btn-secondary {
    background-color: rgba(40, 40, 45, 0.6); 
    color: #CCCCCC; /* Lighter gray text */
    border: 1px solid rgba(80, 80, 90, 0.4);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background-color: rgba(55, 55, 60, 0.7);
    border-color: rgba(100, 100, 110, 0.5);
}

/* Add further cosmos.so inspired global styles here as identified */
/* E.g., subtle background gradients, specific text styles not easily done with Tailwind utilities alone */

/* Glassmorphism card base (can be applied with Tailwind or as a component) */
.glass-card {
  background: rgba(20, 20, 22, 0.65); /* Darker, more translucent base */
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: 1rem; /* 16px, common for larger elements like cards */
  border-top: 1px solid rgba(180, 180, 200, 0.2); /* Lighter top border for edge highlight */
  border-left: 1px solid rgba(180, 180, 200, 0.1); /* Lighter left border for edge highlight */
  border-right: 1px solid rgba(60, 60, 70, 0.3); 
  border-bottom: 1px solid rgba(60, 60, 70, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 
              inset 0 1px 0px rgba(255, 255, 255, 0.03); /* Subtle inner top highlight */
}

/* Refined Form Input Style (inspired by .form-input-new from upload ) */
.form-input-refined {
    display: block;
    width: 100%;
    min-height: 44px; /* Min tap target */
    border-radius: 0.5rem; /* 8px, common for iOS text fields */
    border-top: 1px solid rgba(150, 150, 170, 0.15); /* Subtle top highlight */
    border-left: 1px solid rgba(70, 70, 70, 0.25);
    border-right: 1px solid rgba(50, 50, 50, 0.3);
    border-bottom: 1px solid rgba(50, 50, 50, 0.3);
    background-color: rgba(15, 15, 17, 0.7); /* Darker, more translucent */
    padding: 0.625rem 0.875rem; 
    color: #E0E0E0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2), /* Inner shadow for depth */
                0 1px 0px rgba(255,255,255,0.02); /* Very subtle outer top highlight */
    transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    font-size: 1rem; /* Standard font size for inputs */
}

.form-input-refined::placeholder {
    color: #757575; /* Medium-dark gray for placeholders */
}

.form-input-refined:focus {
    outline: none;
    border-color: rgba(100, 100, 120, 0.5); 
    background-color: rgba(25, 25, 28, 0.8); 
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3), 
                0 0 0 2px rgba(80, 80, 100, 0.3), /* Focus ring */
                0 1px 0px rgba(255,255,255,0.03);
}

/* Textarea specific adjustments if needed, often inherits well from .form-input-refined */
.form-textarea-refined {
    min-height: 88px; /* At least two lines of tap target height */
}

/* Monochrome tag style */
.tag-monochrome {
    background-color: rgba(50, 50, 50, 0.7);
    color: #B0B0B0;
    padding: 0.25em 0.6em;
    border-radius: 0.375rem; /* 6px */
    font-size: 0.75rem; /* 12px */
    display: inline-block;
}

/* Avatar border style */
.avatar-border-gray {
    border: 2px solid #444444;
}

/* Dimmer text color */
.text-gray-dim {
    color: #757575;
}

/* Border for selected file input */
.border-gray-selected {
    border-color: #666666 !important; /* Use !important to override Tailwind if needed for specificity */
}

/* Styles for the Start Page Hero Section - Background Image Carousel */
/* #heroSection { /* Commenting out old hero styles that might conflict, will re-evaluate if needed */
/*   min-height: 100vh;
   display: flex;
   align-items: center;
    justify-content: center;
   position: relative; 
   overflow: hidden; /* Keep images contained */
/*   background-color: #000000; /* Fallback if images don't load */ /* } */

#heroBgCarouselContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Behind hero-content */
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire area */
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Fade transition */
    background-color: #000000; /* Prevents white flash if image is slow */
}

.hero-bg-image.active {
    opacity: 0.3; /* Dimmed active image */
}

#heroSection .hero-content {
    position: relative; /* Ensure content is above the z-index:0 carousel */
    z-index: 1;
    /* Text shadow for better readability on dynamic backgrounds - already present, ensure it's effective */
}

/* Remove old gradient animation */
/* @keyframes gradientBG { ... } */

#heroSection .hero-content h1 {
    text-shadow: 0px 2px 8px rgba(0,0,0,0.5); /* Adjusted for potentially busier bg */
}
#heroSection .hero-content p {
    text-shadow: 0px 1px 6px rgba(0,0,0,0.4);
}

/* Entrance Animations for Start Page Hero Content */
.animate-target {
    opacity: 0;
    transform: translateY(20px);
    transition-property: opacity, transform;
    transition-duration: 0.6s;
    transition-timing-function: ease-out;
}

.animate-target.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays - can be applied via JS or by adding more specific CSS rules if elements are fixed */
/* For JS application, these would be inline styles or classes toggled with delays */

/* Custom utility for title text shadow effect */
.title-text-shadow {
    text-shadow: 0px 2px 8px rgba(0,0,0,0.5);
}

/* --- Dynamic Toast Message Styles --- */
.toast-message-container {
    position: fixed;
    bottom: 20px; /* Position at the bottom */
    right: 20px;
    z-index: 1000; /* Ensure it's above other content */
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end; /* Messages stack from bottom right */
}

.toast-message {
    min-width: 280px;
    max-width: 350px;
    background: rgba(30, 30, 30, 0.85); /* Darker glass for messages */
    backdrop-filter: blur(15px) saturate(120%);
    -webkit-backdrop-filter: blur(15px) saturate(120%);
    border-radius: 0.75rem; /* 12px */
    border: 1px solid rgba(70, 70, 70, 0.5);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    color: #E0E0E0;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    pointer-events: auto; /* Allow interaction when visible */
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-message.hide {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    /* Transition handled by .toast-message, removal by JS after animation */
}

.toast-icon {
    flex-shrink: 0;
    width: 20px; /* Adjust size as needed */
    height: 20px;
}

.toast-icon svg {
    width: 100%;
    height: 100%;
}

.toast-message-content {
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}

.toast-close-button {
    background: transparent;
    border: none;
    color: #A0A0A0;
    padding: 4px;
    margin-left: 8px; /* Spacing from text */
    cursor: pointer;
    transition: color 0.2s ease;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close-button:hover {
    color: #FFFFFF;
    background-color: rgba(80, 80, 80, 0.5);
}

.toast-close-button svg {
    width: 16px;
    height: 16px;
}

/* Type-specific styling */
.toast-message.success .toast-icon {
    color: #4CAF50; /* Green */
}
/* Consider a subtle left border for success */
/* .toast-message.success { border-left: 3px solid #4CAF50; } */

.toast-message.error .toast-icon {
    color: #F44336; /* Red */
}
/* .toast-message.error { border-left: 3px solid #F44336; } */

.toast-message.info .toast-icon {
    color: #2196F3; /* Blue */
}
/* .toast-message.info { border-left: 3px solid #2196F3; } */

.toast-message.warning .toast-icon {
    color: #FBBF24; /* Amber-400 */
}
/* .toast-message.warning { border-left: 3px solid #FF9800; } */

/* === Profile Dropdown Menu === */
#imageSearchInput {
    background-color: rgba(20, 20, 22, 0.65);
    border: 1px solid rgba(100, 100, 110, 0.5);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

#imageSearchInput::-webkit-search-cancel-button,
#imageSearchInput::-webkit-search-decoration {
    -webkit-appearance: none;
    appearance: none;
}

#searchClearButton {
    /* Tailwind classes in HTML handle most of this, but can add transitions here */
    transition: color 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

#imageSearchInput::placeholder {
    color: #8f8f8f;
    transition: color 0.3s ease;
}

#imageSearchInput:focus {
    background-color: rgba(30, 30, 33, 0.8);
    border-color: rgba(130, 140, 150, 0.7);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3), 0 0 15px rgba(100, 110, 140, 0.3);
}

#imageSearchInput:not(:placeholder-shown):not(:focus):hover {
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2), 0 0 10px rgba(100, 110, 140, 0.15);
}

.profile-button-container {
    position: relative; /* Keep this for dropdown positioning */
}

.profile-dropdown-trigger {
    /* Use existing .btn styles, or add specific ones if needed */
    /* Example: add a user icon */
}

.profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px); /* Spacing from the button */
    min-width: 220px;
    background: rgba(28, 28, 32, 0.85); 
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border-radius: 0.75rem; /* 12px */
    border-top: 1px solid rgba(180, 180, 200, 0.15);
    border-left: 1px solid rgba(180, 180, 200, 0.08);
    border-right: 1px solid rgba(50, 50, 55, 0.25);
    border-bottom: 1px solid rgba(50, 50, 55, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35),
                inset 0 1px 0px rgba(255, 255, 255, 0.02);
    opacity: 0;
    transform-origin: top right;
    transform: scale(0.95) translateY(-10px);
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
    z-index: 50;
    padding: 0.5rem 0; 
}

.profile-dropdown.open {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 1rem; 
    font-size: 0.875rem; 
    color: #C0C0C0; 
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
    white-space: nowrap;
}

.profile-dropdown-item:hover {
    background-color: rgba(70, 70, 80, 0.5); 
    color: #FFFFFF;
}

.profile-dropdown-item.profile-link-item {
    /* Flex properties are handled by .profile-dropdown-item */
    /* Specific padding or other layout needs can go here if .profile-dropdown-item is not enough */
}

.profile-dropdown-item.profile-link-item img {
    width: 24px; 
    height: 24px;
    border-radius: 50%;
    margin-right: 0.75rem; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
}

.profile-dropdown-item.profile-link-item span {
    /* Inherits color and transition from .profile-dropdown-item */
}

.profile-dropdown-divider {
    height: 1px;
    background-color: rgba(80, 80, 90, 0.25); 
    margin: 0.5rem 0; 
}

/* === NSFW Toggle Switch === */
.nsfw-toggle-item { 
    display: flex; /* Ensure it behaves like other flex items */
    justify-content: space-between; /* Align label and switch */
    align-items: center;
    padding: 0.6rem 1rem; /* Match other items */
    cursor: default; /* Overall item not clickable, only switch */
}

.nsfw-toggle-item:hover {
     background-color: transparent; /* No hover for the item itself, only its interactive parts */
}

.nsfw-toggle-item .toggle-label {
    color: #C0C0C0; 
    font-size: 0.875rem; /* Match item font size */
    /* transition is fine from original if any */
}

.nsfw-toggle-item:hover .toggle-label {
    /* No color change on item hover, label is not directly interactive */
    /* color: #FFFFFF; /* If we want label to change with item hover (but item hover is off) */
}

.nsfw-toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px; /* Slightly smaller */
  height: 22px; /* Slightly smaller */
}

.nsfw-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.nsfw-toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #4B5563; /* gray-600 for off state */
  transition: .3s;
  border-radius: 22px; /* Fully rounded */
}

.nsfw-toggle-switch .slider:before {
  position: absolute;
  content: "";
  height: 16px; /* Smaller circle */
  width: 16px;  /* Smaller circle */
  left: 3px;    /* Adjusted left for smaller size */
  bottom: 3px;  /* Adjusted bottom */
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.nsfw-toggle-switch input:checked + .slider {
  background-color: #10B981; /* Tailwind green-500 for on state */
}

.nsfw-toggle-switch input:focus + .slider {
  box-shadow: 0 0 1px #10B981; /* Optional focus outline */
}

.nsfw-toggle-switch input:checked + .slider:before {
  transform: translateX(18px); /* Adjusted translation for smaller size */
}

/* === NSFW Guest Image Blurring === */
.nsfw-guest-blur img { /* Assuming the img is the direct child to be blurred */
  filter: blur(16px) grayscale(50%);
  transform: scale(1.05); /* Optional: to hide blurred edges */
  transition: filter 0.3s ease-out, transform 0.3s ease-out;
}

.nsfw-guest-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.65); /* Darker overlay for better text contrast */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.3s ease-in-out;
  border-radius: inherit; /* Inherit from parent image container if it has one */
  pointer-events: none; /* Allow clicks to pass through unless on the button */
}

.nsfw-guest-blur .nsfw-guest-overlay {
  opacity: 1;
  pointer-events: auto; /* Make overlay interactive when visible */
}

.nsfw-guest-overlay p {
  color: #FFFFFF;
  font-weight: 500;
  margin-bottom: 0.75rem;
  font-size: 0.875rem; /* text-sm */
}

.nsfw-guest-overlay .btn-login-to-view {
  /* Using existing btn styles, ensure .btn-primary or .btn-secondary is also applied */
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  /* Add any specific overrides if needed */
}

/* Scroll-triggered animation (can be reused) */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0.2s; /* Optional default delay */
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Featured Creations Section - Gradient Transition & Carousel */
#featuredCreationsSection {
    position: relative; /* For pseudo-element positioning */
    /* py-16 sm:py-20 bg-neutral-900 already in HTML */
}

#featuredCreationsSection::before {
    content: '';
    position: absolute;
    top: 0; /* Align with the very top of the section */
    left: 0;
    right: 0;
    height: 30vh; /* Increased height for a more gradual fade, viewport-relative */
    max-height: 300px; /* Max height to prevent excessive overlap on very tall viewports */
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.7) 0%,  /* Darker, assuming hero might be image-based */
        rgba(17, 24, 39, 0.5) 50%, /* Mid-point, blending towards section bg */
        rgba(17, 24, 39, 0) 100% /* Fades to transparent, revealing section bg */
    );
    z-index: 1; 
    pointer-events: none;
}

#featuredCreationsContainer {
    overflow-x: visible; /* Allow cards to be partially visible for JS scroll, parent has overflow:hidden */
    padding-bottom: 1rem; 
}

#featuredCarouselTrack {
    display: flex;
    gap: 1.5rem; 
    padding-bottom: 1rem; /* Add padding for any shadow/hover effects on cards */
    /* No CSS animation here anymore */
}

.featured-card {
    display: block; 
    width: 240px; /* Approx w-60 in Tailwind */
    height: 320px; /* Approx h-80 in Tailwind */
    border-radius: 0.75rem; /* rounded-xl */
    overflow: hidden;
    position: relative;
    flex-shrink: 0; /* Prevent cards from shrinking */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1), 0 10px 20px rgba(0,0,0,0.2);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out;
}

.featured-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15), 0 15px 30px rgba(0,0,0,0.25);
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); /* Slower, smoother zoom for Ken Burns */
}

.featured-card:hover img {
    transform: scale(1.15); /* Slightly more zoom */
}

.featured-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 40%, transparent 70%);
    pointer-events: none; /* Allow hover on card image */
}

.featured-card .card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem; /* p-3 */
    color: white;
    font-size: 0.875rem; /* text-sm */
    font-weight: 600; /* semibold */
    /* Text shadow for better readability */
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    /* Truncate/ellipsis handled by Tailwind/JS if needed for multi-line, this is single line */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fallback/Test Keyframes for Featured Carousel */
@keyframes scrollFeatured {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* Scroll one half of the duplicated track */
  }
}

/* Apply this animation to the track for testing */
/* This might be overridden or not picked up if JS also tries to set it, but good for base testing */
#featuredCarouselTrack {
    /* display: flex; gap: 1.5rem; padding-bottom: 1rem;  -- These are already defined */
    animation: scrollFeatured 30s linear infinite; /* Example duration */
}

/* === Start Page Redesign: Minimalist, Dark & Moody === */

/* Reset body background for start page if needed, or ensure it's consistent */
/* body specific to start might need a class if global bg is different */

/* --- New Hero Section --- */
#newHeroSection {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background-color: #0a0a0a; /* Simple background, particles will be on top */
    overflow: hidden; /* Important to contain canvas */
    position: relative; /* For positioning canvas and content */
    box-sizing: border-box;
}

.hero-bg-image-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Below particles and content */
    overflow: hidden;
}

.hero-bg-image-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2.5s ease-in-out; /* Slow fade for subtlety */
    background-color: #0a0a0a; /* Fallback for image load, matches hero bg */
}

.hero-bg-image-carousel img.active {
    opacity: 0.15; /* Very subtle visibility */
}

.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Above image carousel, below content */
    pointer-events: none; /* So it doesn't block interactions with content */
}

#heroMainContent {
    position: relative; /* To ensure it's above the canvas */
    z-index: 2; /* Above image carousel and particles */
    /* text-align, color, etc., should be handled by Tailwind or existing styles */
    /* Add any specific layout/sizing for heroMainContent if it was previously defined directly */
    /* For example, if it had a max-width: */
    /* max-width: 800px; */
    /* width: 100%; */
}

#heroMainContent.animate-target { /* Keep existing animation classes */
    opacity: 0;
    transform: translateY(30px);
    /* Transition defined in .animate-target.visible in main.css */
}

#heroMainContent.animate-target.visible {
    opacity: 1;
    transform: translateY(0);
}

#heroBrandTitle {
    font-size: clamp(3rem, 10vw, 6rem); /* Responsive font size */
    font-weight: 800; /* Extra-bold */
    color: #e0e0e0; /* Light gray, almost white */
    letter-spacing: -0.025em; /* Slightly tighter letter spacing */
    margin-bottom: 0.75rem; /* Reduced margin */
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(224, 224, 224, 0.1), 0 0 30px rgba(224, 224, 224, 0.05);
}

#heroBrandTagline {
    font-size: clamp(1rem, 2.5vw, 1.375rem); /* Responsive font size */
    color: #9ca3af; /* Tailwind gray-400 */
    margin-bottom: 2.5rem;
    max-width: 550px; /* Slightly wider */
    line-height: 1.6;
    font-weight: 400;
}

#heroActionButtons {
    /* Uses flex from HTML, gap is fine */
}

.new-cta-button {
    display: inline-block; /* Ensure proper padding and border */
    padding: 0.875rem 1.75rem; /* Slightly more padding */
    border: 1px solid #404040; /* Neutral dark border (Tailwind neutral-700) */
    color: #a3a3a3; /* Tailwind neutral-400 */
    background-color: transparent;
    text-decoration: none;
    border-radius: 0.375rem; /* rounded-md */
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 500; /* Medium weight */
    letter-spacing: 0.01em;
}

.new-cta-button:hover {
    background-color: rgba(229, 231, 235, 0.05); /* Very subtle light bg on hover (Tailwind gray-200/5) */
    border-color: #737373; /* Tailwind neutral-500 */
    color: #e5e5e5; /* Tailwind neutral-200 */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Optional: Scroll down indicator (example) */
#newHeroSection::after {
    content: '';
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 40px;
    background-color: rgba(163, 163, 163, 0.3); /* #a3a3a3 with opacity */
    animation: scrollHintBounce 2s infinite cubic-bezier(0.5, 0, 0.1, 1);
}

@keyframes scrollHintBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.3; }
    50% { transform: translateX(-50%) translateY(10px); opacity: 0.8; }
}

/* --- New Featured Section --- */
#newFeaturedSection {
    background-color: #0a0a0a; /* Consistent dark background */
    padding: 4rem 1rem; /* py-16 px-4 */
    position: relative; /* For pseudo-elements or z-indexing if needed */
}

#featuredCreationsGrid { /* New ID for clarity, or reuse #newFeaturedGrid */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* Responsive grid */
    gap: 2.5rem; /* Spacing between cards */
    max-width: 1400px;
    margin: 3rem auto 0; /* Margin above the grid */
}

.showcase-item { /* New class name for these cards */
    background-color: #181818; /* Dark card background, slightly lighter than section */
    border-radius: 0.75rem; /* Slightly larger radius for a softer look (12px) */
    overflow: hidden;
    border: 1px solid #2a2a2a; /* Subtle border */
    transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    opacity: 0; /* For scroll animation */
    transform: translateY(30px); /* Initial state for scroll animation */
    aspect-ratio: 4 / 5; /* Or 3/4 or 9/12, adjust for desired portrait emphasis */
}

.showcase-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.showcase-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.35), 0 8px 12px rgba(0,0,0,0.3);
}

.showcase-item a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color if we add text inside link */
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.showcase-item:hover img {
    transform: scale(1.08);
}

/* Optional: Title overlay for showcase items, if desired */
.showcase-item .item-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem; /* More padding */
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 500; /* Medium */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.showcase-item:hover .item-title-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure #featuredTitle (new-section-title) is styled well */
/* This was already defined, confirming it fits */

/* New: Minimalist Footer */
.minimal-footer {
    padding: 3rem 1rem; /* Increased padding */
    text-align: center;
    font-size: 0.875rem; /* text-sm */
    color: #525252; /* Tailwind neutral-600 */
    background-color: #0a0a0a; /* Consistent with hero for a bounded feel */
    border-top: 1px solid #1c1c1c; /* Subtle top border */
}

/* General Animation Classes (confirm if .animate-target and .animate-on-scroll are still used and style them) */
/* .animate-target, .animate-on-scroll are defined in start's inline script and old main.css */
/* Ensure they are effective or restyled as needed */

/* Removing old specific styles for #heroSection, #featuredCreationsSection, etc. as they are replaced */
/* ... (if any specific old IDs need explicit removal/override, do it here) ... */

/* Make sure to remove the temporary <style> block from start after these are applied */

/* --- Logo Image Styles --- */

/* Logo on the Hero section of start */
.hero-brand-logo-link {
    display: block; /* Or inline-block */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem; /* Space below logo, adjust from old #heroBrandTitle margin */
}

.hero-brand-logo {
    display: block; /* Or inline-block */
    /* Attempting to match the visual weight of: clamp(3rem, 10vw, 6rem) which is quite large */
    /* Let's try a max-height approach, assuming the image is wider than tall or square */
    /* max-height: clamp(3rem, 10vw, 6rem); */ /* Removed this to focus on width */
    /* max-width: 80%; */ /* Will be superseded by the clamp's max and a new max-width % */
    width: clamp(12rem, 35vw, 22rem); /* Increased min, vw factor, and max width */
    max-width: 90%; /* Allow more horizontal space if viewport is very wide */
    height: auto; /* Maintain aspect ratio */
    margin-left: auto;
    margin-right: auto;
    /* margin-bottom: 1.5rem; /* Space below logo, adjust from old #heroBrandTitle margin */
    /* Add any transitions or filter effects if desired */
}

/* General Site Logo (for headers on index, login, etc.) */
.site-logo-link {
    display: inline-block; /* Allows margin and prevents taking full width if not desired */
    text-decoration: none;
}

.site-logo {
    display: block;
    height: 3.25rem; /* 52px for mobile */
    width: auto; /* Maintain aspect ratio */
    transition: filter 0.3s ease-in-out;
}

.site-logo:hover {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.1));
}

@media (min-width: 640px) {
    .site-logo {
        height: 4.25rem; /* 68px for sm and up */
    }
}

/* Ensure title-text-shadow is removed or not applied if it was on the h1 */
/* .title-text-shadow { text-shadow: none !important; } */ /* If needed, but better to just not have it on the img */


/* Style adjustments for #heroBrandTitle if it was used for other things before like text-shadow */
/* Commenting out as it's replaced by an image. */
/*
#heroBrandTitle {
    font-size: clamp(3rem, 10vw, 6rem); 
    font-weight: 800; 
    color: #e0e0e0; 
    letter-spacing: -0.025em; 
    margin-bottom: 0.75rem; 
    line-height: 1.1;
    text-shadow: 0 0 15px rgba(224, 224, 224, 0.1), 0 0 30px rgba(224, 224, 224, 0.05);
}
*/ 

/* Feed Tab Navigation */
#feedTabsContainer {
    /* Styles for the sticky container are mostly via Tailwind in index */
    /* Consider adding a subtle bottom border here if not covered by shadow */
    /* border-bottom: 1px solid rgba(50, 50, 50, 0.3); */
}

#feedTabs {
    /* Styles for the tab group itself are mostly via Tailwind in index */
    /* bg-neutral-800/80 p-1 rounded-lg ring-1 ring-neutral-700/60 */
}

/* New Feed Tab Button Styles */
.feed-tab-button {
    padding: 0.6rem 1.5rem; /* Increased padding */
    border-radius: 9999px;   /* Pill shape */
    font-weight: 500;
    font-size: 0.95rem; /* Increased font size */
    line-height: 1.25rem;
    color: #B0B0B0;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    border: 1px solid rgba(80, 80, 90, 0.4);
    background-color: rgba(40, 40, 45, 0.6);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.03), 0 1px 2px rgba(0,0,0,0.1);
}

.feed-tab-button:hover {
    color: #E0E0E0;
    background-color: rgba(55, 55, 60, 0.7);
    border-color: rgba(100, 100, 110, 0.5);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 2px 4px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.feed-tab-button.active {
    color: #FFFFFF;
    background-image: linear-gradient(to bottom, rgba(80, 85, 95, 0.85), rgba(60, 65, 75, 0.95));
    border: 1px solid rgba(110, 115, 125, 0.5);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 
                0 1px 3px rgba(0,0,0,0.3), 
                0 0 10px rgba(120, 125, 135, 0.25); /* Added subtle glow */
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    transform: translateY(0);
}

/* If using <a> tags, ensure they behave like buttons */
#feedTabs a.feed-tab-button {
    display: inline-block; /* or flex if content needs alignment */
}

/* Spinner update */
.custom-spinner {
    width: 2.5rem; /* h-10 equivalent */
    height: 2.5rem; /* w-10 equivalent */
    margin-left: auto;
    margin-right: auto;
    color: #7F8C8D; /* A blueish-grey color */
}

/* Targeting the SVG parts for stroke-width, assuming default structure */
.custom-spinner circle {
    stroke: currentColor; /* Use the color from .custom-spinner */
    stroke-width: 2.5;  /* Thinner than Tailwind's default stroke-width="4" */
    opacity: 0.25; /* Match Tailwind's opacity for the track */
}

.custom-spinner path {
    fill: currentColor; /* Use the color from .custom-spinner */
    opacity: 0.75; /* Match Tailwind's opacity for the moving part */
} 

/* New Loading Dots Animation */
.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem; /* 12px */
    height: 4rem; /* 64px, to give it space */
}

.loading-dot {
    width: 0.75rem; /* 12px */
    height: 0.75rem; /* 12px */
    background-color: #7F8C8D; /* Use the same blueish-grey */
    border-radius: 50%;
    animation: fade-in-out 1.4s infinite ease-in-out both;
}

.loading-dot:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dot:nth-child(3) {
    animation-delay: -0.32s;
}

@keyframes fade-in-out {
    0%, 80%, 100% {
        opacity: 0.2;
    }
    40% {
        opacity: 1;
    }
}

/* Custom Blueish-Grey Utilities */
.text-blueish-grey-custom { color: #7F8C8D; }
.bg-blueish-grey-custom { background-color: #7F8C8D; }
.border-blueish-grey-custom { border-color: #7F8C8D; }

.focus-ring-blueish-grey-custom:focus {
    --tw-ring-color: rgba(127, 140, 141, 0.5); /* Using the color with opacity */
    box-shadow: 0 0 0 3px var(--tw-ring-color);
}

/* Styles for Force Install Overlay */
#force-install-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 5, 7, 0.85); /* Dark, highly opaque overlay */
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    color: #E0E0E0; /* Default text color for the overlay */
    display: flex;
    flex-direction: column; /* Align content panel vertically */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem; /* Padding for smaller screens, content panel will have its own */
    overflow-y: auto; /* Allow scrolling if content overflows on small screens */
}

/* Content Panel within the Force Install Overlay */
#force-install-content { /* This ID needs to be added to the HTML structure */
    background: rgba(28, 28, 32, 0.85); /* Dark glass base */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 2rem 2.5rem;
    border-radius: 0.875rem; /* 14px */
    border-top: 1px solid rgba(180, 180, 200, 0.15);
    border-left: 1px solid rgba(180, 180, 200, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    max-width: 520px;
    width: 100%;
    text-align: center;
    /* display: flex; flex-direction: column; align-items: center; */ /* Handled by text-align and block elements */
}

#force-install-content img.logo {
    width: 70px; /* Slightly smaller logo */
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 12px; /* Optional: if logo benefits from rounded corners */
}

#force-install-content h2 {
    font-size: 1.75rem; /* 28px */
    font-weight: 700; /* Bolder */
    color: #FFFFFF;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.3;
}

#force-install-content p.message {
    font-size: 1rem; /* 16px */
    line-height: 1.65;
    color: #C8C8C8; /* Lighter gray */
    margin-bottom: 2rem;
    max-width: 420px; /* Ensure readability */
    margin-left: auto;
    margin-right: auto;
}

#force-install-button-container { /* This existing ID can be used for button spacing */
    margin-bottom: 1.5rem;
    display: flex; /* For centering if there's one button, or spacing if multiple */
    justify-content: center;
    gap: 1rem; /* If multiple buttons are ever added */
}

/* Ensure buttons inside use global .btn styles */
#force-install-content .btn {
    padding: 0.75rem 1.75rem; /* Slightly larger buttons */
    font-size: 1rem;
}

/* iOS Specific Instructions Box */
#force-install-ios-instructions {
    display: none; /* JS will show it */
    background-color: rgba(15, 15, 18, 0.75); /* Darker inset box */
    padding: 1.25rem 1.5rem;
    border-radius: 0.625rem; /* 10px */
    margin-top: 2rem;
    border: 1px solid rgba(80, 80, 90, 0.25);
    text-align: left; /* Override parent center for list items */
}

#force-install-ios-instructions p.instructions-title { /* Assuming a title for instructions block */
    font-size: 1rem;
    font-weight: 500;
    color: #D0D0D0;
    margin-top: 0;
    margin-bottom: 1rem;
}

#force-install-ios-instructions ol {
    list-style-position: outside; /* Better for custom styling */
    padding-left: 1.25rem; /* Space for numbers */
    margin-bottom: 0;
}

#force-install-ios-instructions li {
    font-size: 0.9rem; /* 14.4px */
    color: #B0B0B0;
    margin-bottom: 0.625rem; /* 10px */
    line-height: 1.5;
}

#force-install-ios-instructions img.share-icon {
    display: inline-block;
    vertical-align: middle;
    width: 18px; /* Reduced size */
    height: 18px; /* Reduced size */
    margin: -2px 3px 0 2px; /* Adjusted margin */
    filter: invert(80%) sepia(10%) saturate(200%) hue-rotate(180deg) brightness(100%) contrast(90%);
}


/* Standard A2HS Modal (User-dismissible prompt) */
#a2hs-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 12, 0.65); /* Refined overlay color */
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  display: none; /* Hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem; /* Padding for the overlay itself */
}

#a2hs-modal-content {
  background: rgba(30, 30, 35, 0.85); /* Slightly adjusted background */
  backdrop-filter: blur(25px) saturate(180%); /* Consistent blur */
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  color: #E0E0E0; /* Consistent text color */
  padding: 2rem 2.5rem; /* Consistent padding */
  border-radius: 0.875rem; /* 14px */
  border-top: 1px solid rgba(190, 190, 210, 0.15); /* Adjusted border */
  border-left: 1px solid rgba(190, 190, 210, 0.1);  /* Adjusted border */
  border-right: 1px solid rgba(40, 40, 45, 0.35); /* Adjusted border */
  border-bottom: 1px solid rgba(40, 40, 45, 0.35); /* Adjusted border */
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45); /* Consistent shadow */
  text-align: center;
  max-width: 480px; /* Adjusted max-width */
  width: 100%;
}

#a2hs-modal-content h2 {
  font-size: 1.6rem; /* Adjusted font size */
  font-weight: 600; /* Adjusted font-weight */
  color: #FFFFFF;
  margin-top: 0;
  margin-bottom: 1.25rem; /* Adjusted margin */
  line-height: 1.3;
}

#a2hs-modal-content p {
  font-size: 0.95rem; /* Adjusted font size for body */
  line-height: 1.65;
  color: #B5B5B5; /* Softer text color */
  margin-bottom: 2.5rem; /* Adjusted space before buttons */
}

/* Button container for A2HS modal to manage layout */
/* Using individual button classes directly now, can remove this if not needed by JS structure */
#a2hs-modal-buttons { 
    display: flex;
    flex-direction: column;
    gap: 0.85rem; /* Adjusted space */
}

/* Ensure modal buttons inherit global .btn styles and apply specific ones */
/* The JS applies .a2hs-modal-install-button and .a2hs-modal-close-button */
.a2hs-modal-install-button,
.a2hs-modal-close-button,
.ios-a2hs-modal-close-button { /* Added iOS button here for consistency */
    width: 100%;
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 0.5rem; /* 8px */
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.a2hs-modal-install-button {
    /* Inherits .btn-primary from global styles or define here */
    background-image: linear-gradient(to right, var(--color-primary-accent), var(--color-secondary-accent));
    color: var(--color-text-on-primary, #FFFFFF);
    border: 1px solid transparent; /* Or a subtle border */
}

.a2hs-modal-install-button:hover {
    background-image: linear-gradient(to right, var(--color-primary-accent-hover), var(--color-secondary-accent-hover));
    transform: translateY(-1px);
}

.a2hs-modal-close-button,
.ios-a2hs-modal-close-button { /* Added iOS button here */
    /* Inherits .btn-secondary from global styles or define here */
    background-color: rgba(80, 80, 90, 0.5); /* Adjusted for glassmorphism */
    color: #D0D0D0;
    border: 1px solid rgba(100, 100, 110, 0.3);
}

.a2hs-modal-close-button:hover,
.ios-a2hs-modal-close-button:hover { /* Added iOS button here */
    background-color: rgba(90, 90, 100, 0.6);
    color: #FFFFFF;
    transform: translateY(-1px);
}

/* Styles for iOS A2HS Fallback Modal */
#ios-a2hs-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 12, 0.65);
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    display: flex; /* JS will control this */
    align-items: center;
    justify-content: center;
    z-index: 9998; /* Slightly below standard A2HS if they could overlap */
    padding: 1rem;
}

#ios-a2hs-modal-content {
    background: rgba(30, 30, 35, 0.85);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    color: #E0E0E0;
    padding: 2rem 2.5rem;
    border-radius: 0.875rem;
    border-top: 1px solid rgba(190, 190, 210, 0.15);
    border-left: 1px solid rgba(190, 190, 210, 0.1);
    border-right: 1px solid rgba(40, 40, 45, 0.35);
    border-bottom: 1px solid rgba(40, 40, 45, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    text-align: center;
    max-width: 480px;
    width: 100%;
}

#ios-a2hs-modal-content .ios-a2hs-modal-title { /* Use class from JS */
    font-size: 1.6rem;
    font-weight: 600;
    color: #FFFFFF;
    margin-top: 0;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}

#ios-a2hs-modal-content .ios-a2hs-modal-text { /* Use class from JS */
    font-size: 0.95rem;
    line-height: 1.65;
    color: #B5B5B5;
    margin-bottom: 2.5rem;
}

#ios-a2hs-modal-content .ios-a2hs-modal-share-icon { /* Use class from JS */
    display: inline-block;
    vertical-align: middle;
    width: 18px; /* Reduced size */
    height: 18px; /* Reduced size */
    margin: -2px 3px 0 2px; /* Adjusted margin */
    /* Consider a filter if the icon color doesn't match, or use an SVG that can take `fill: currentColor` */
}

/* .ios-a2hs-modal-close-button is already styled above with .a2hs-modal-close-button */

/* End of Modal Styles */

/* Image Gallery Item Styling */
.image-gallery > a {
    display: inline-block; /* Or block, depending on structure */
    margin-bottom: 1.5rem; /* Equivalent to space-y-6 */
    border-radius: 0.5rem; /* 8px */
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-gallery > a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.image-gallery > a img {
    transition: transform 0.3s ease;
}

.image-gallery > a:hover img {
    transform: scale(1.05);
}

/* Footer Styling */
.main-footer {
    text-align: center;
    margin-top: 4rem; /* 64px */
    padding-top: 2.5rem; /* 40px */
    padding-bottom: 2.5rem; /* 40px */
    border-top: 1px solid;
    border-image-source: linear-gradient(to right, rgba(80, 80, 90, 0.1), rgba(80, 80, 90, 0.4), rgba(80, 80, 90, 0.1));
    border-image-slice: 1;
}

.main-footer p {
    color: #909090; /* Slightly lighter and cleaner gray */
    font-size: 0.875rem; /* 14px */
    margin: 0;
}

/* Start Page Specific Container */
.main-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.5rem;
}

/* Auth Pages Footer */
.auth-footer {
    text-align: center;
    padding-top: 1.5rem; /* 24px */
    color: #a0a0a0;
    font-size: 0.875rem; /* 14px */
}

.auth-footer a {
    color: #cccccc;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.auth-footer a:hover {
    color: #ffffff;
}

/* Shard Detail Page */
.shard-detail-page {
    background-color: #121212;
    color: #E0E0E0;
}

.shard-detail-page .container-main {
    max-width: 900px;
    margin: 2rem auto;
}

.shard-detail-page #pageImage {
    max-height: 75vh;
}

.shard-detail-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #A0AEC0;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.shard-detail-page .back-link:hover {
    color: #E2E8F0;
}

/* Offline Page */
.offline-page {
    background-color: #0a0a0a;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 20px;
    box-sizing: border-box;
}

.offline-container {
    max-width: 500px;
}

.offline-icon svg {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
    color: #555;
}

.offline-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.offline-message {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #b0b0b0;
}

.online-status {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #777;
}

.online-status.is-online {
    color: #4CAF50;
} 