/* Nouvo Studio Styles */

:root {
  --primary-color: #2c3e50;
  --secondary-color: #34495e;
  --accent-color: #e74c3c;
  --text-color: #2c3e50;
  --text-muted: #7f8c8d;
  --bg-light: #f8f9fa;
  --border-color: #dee2e6;
}

/* Typography */
.brand-logo {
    font-family: sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

.section-title {
    font-family: sans-serif;
    font-weight: 600;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  color: white;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/images/1000168400.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.55), rgba(0,0,0,0.0));
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-title {
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.hero-subtitle {
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* Featured artworks carousel */
#featuredCarousel .featured-carousel-image {
  width: 100%;
  height: 60vh;
  max-height: 520px;
  object-fit: cover;
}

@media (max-width: 767.98px) {
  #featuredCarousel .featured-carousel-image {
    height: 55vh;
  }
}

@media (max-width: 767.98px) {
  .hero {
    min-height: 60vh;
    padding: 3rem 0;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }
}

/* Pinterest Masonry Layout */
.masonry-container {
  column-count: 1;
  column-gap: 20px;
  padding: 0;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  display: inline-block;
  width: 100%;
  position: relative;
}

/* Cards */
.art-card {
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: white;
}

.art-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.art-card .thumb {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.art-card:hover .thumb {
  transform: scale(1.05);
}

.art-card .fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.art-card:hover .fav {
  opacity: 1;
}

/* Pinterest-style overlay */
.art-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 20px 15px 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.art-card:hover .overlay {
  transform: translateY(0);
}

.art-card .overlay .artwork-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.art-card .overlay .artwork-details {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 5px 0 0 0;
}

/* Responsive masonry columns */
@media (min-width: 480px) {
  .masonry-container {
    column-count: 2;
  }
}

@media (min-width: 768px) {
  .masonry-container {
    column-count: 3;
  }
}

@media (min-width: 992px) {
  .masonry-container {
    column-count: 4;
  }
}

@media (min-width: 1200px) {
  .masonry-container {
    column-count: 5;
  }
}

.category-card {
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 200px;
  border-radius: 8px;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.category-card .bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-card:hover .bg-img {
  transform: scale(1.1);
}

.category-card .title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  color: white;
  padding: 20px 15px 15px;
  font-weight: 600;
  font-size: 1.1rem;
}

/* Navbar */
/*.navbar {
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95) !important;
}*/

.subtle-blur {
  backdrop-filter: blur(10px);
}

/* Navbar (new) */
.ns-navbar {
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(8px);
}

.ns-navbar-logo {
    height: 200px;
    width: auto;
    margin: -55px;
    transition: transform 0.3s ease;
}

.ns-navbar-logo:hover {
  transform: scale(1.04);
}

.ns-link {
  position: relative;
  color: var(--text-color) !important;
  padding: 0.75rem 1rem !important;
  font-weight: 500;
  transition: color 0.25s ease;
}

.ns-link:hover,
.ns-link:focus,
.ns-link.active {
  color: var(--primary-color) !important;
}

.ns-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 8px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.ns-link:hover::after,
.ns-link:focus::after,
.ns-link.active::after {
  transform: scaleX(1);
}

/* Buttons */
.btn {
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-dark:hover {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

/* Price */
.price {
  font-weight: 600;
  color: var(--accent-color);
}

/* Utilities */
.py-6 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Admin Styles */
.admin-sidebar {
  min-height: 100vh;
  background: #f8f9fa;
  border-right: 1px solid var(--border-color);
  padding: 0;
  transition: transform 0.3s ease-in-out;
}

/* Desktop: Sidebar uses Bootstrap column classes, always visible */
@media (min-width: 768px) {
  .admin-sidebar {
    position: relative;
    z-index: auto;
    transform: none !important;
  }
}

/* Mobile: Sidebar fixed, hidden by default, slides in from left */
@media (max-width: 767.98px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    z-index: 1050;
    transform: translateX(-100%);
    overflow-y: auto;
  }
  
  .admin-sidebar.show {
    transform: translateX(0);
  }
  
  /* Override Bootstrap column classes on mobile */
  .admin-sidebar.col-md-3,
  .admin-sidebar.col-lg-2 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 280px;
  }
  
  /* Overlay for mobile */
  .admin-sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
  }
  
  .admin-sidebar-overlay.show {
    display: block;
    opacity: 1;
  }
  
  /* Prevent body scroll when sidebar is open */
  body.admin-sidebar-open {
    overflow: hidden;
  }
  
  /* Adjust content when sidebar is open */
  .admin-content {
    margin-left: 0;
  }
}

.admin-logo {
  height: 50px;
  width: auto;
}

.admin-content {
  min-height: 100vh;
  background: white;
  transition: margin-left 0.3s ease-in-out;
}

.admin-sidebar-header {
  border-bottom: 1px solid var(--border-color);
  background: white;
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-sidebar .nav-link {
  color: var(--text-color);
  border-radius: 8px;
  margin: 2px 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1rem;
}

.admin-sidebar .nav-link:hover {
  background: rgba(0,0,0,0.05);
  color: var(--primary-color);
}

.admin-sidebar .nav-link.active {
  background: var(--primary-color);
  color: white;
}

.admin-sidebar-text {
  display: inline-block;
}

/* Hide navbar items when admin is active */
body.admin-active .hide-on-admin {
  display: none !important;
}

/* Admin sidebar toggle button */
.admin-sidebar-toggle {
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
}

.admin-sidebar-close {
  padding: 0.5rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Form Styles */
.form-floating > .form-control:focus ~ label {
  color: var(--primary-color);
}

.image-preview {
  max-width: 200px;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .py-6 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  
  .art-card .thumb {
    height: 150px;
  }
  
  .category-card {
    height: 150px;
  }
  
  .ns-navbar-logo {
    height: 200px;
  }
}

@media (max-width: 576px) {
    .ns-navbar-logo {
        height: 200px;
        width: auto;
        margin: -50px 0px;
        transition: transform 0.3s ease;
    }

    .ns-navbar-logo.logo-admin {
        height: 149px !important;
        width: auto;
        margin: -50px 0px !important;
        transition: transform 0.3s ease;
    }
}

/* Carousel */
.carousel-caption {
    background: rgba(0,0,0,0.5);
    border-radius: 8px;
    padding: 15px;
    right: 0px;
    left: 0px;
    bottom: 0px;
    width: 100%;
}

/* Modal */
.modal-content {
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

/* Footer */
footer {
  background: white;
  border-top: 1px solid var(--border-color);
}

.footer-logo {
  height: 40px;
  width: auto;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}
.btn:hover {
    background-color: #212529ad !important;
}

/* Netflix Style Carousel */
.netflix-carousel-section {
  position: relative;
  overflow: hidden;
}

.netflix-carousel-wrapper {
  position: relative;
  padding: 0 40px;
}

.netflix-carousel-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  /* Ensure container shows exactly 4 items on desktop */
  max-width: 100%;
}

.netflix-carousel-track {
  display: flex;
  gap: 12px;
  transition: transform 0.5s ease;
  will-change: transform;
  padding: 0 4px;
}

.netflix-carousel-item {
  flex: 0 0 auto;
  width: calc((100% - 36px) / 4); /* 4 items: 100% - (3 gaps * 12px) / 4 */
  transition: transform 0.3s ease;
  min-width: 300px;
  max-width: 250px;
  margin: 10px;
}

.netflix-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  aspect-ratio: 16 / 9;
  transition: transform 0.3s ease, z-index 0.3s ease;
}

.netflix-card:hover {
  transform: scale(1.1);
  z-index: 10;
}

.netflix-card-image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.netflix-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.netflix-card:hover .netflix-card-image {
  transform: scale(1.05);
}

.netflix-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px 15px 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.netflix-card:hover .netflix-card-overlay {
  transform: translateY(0);
}

.netflix-card-title {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.netflix-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.netflix-carousel-wrapper:hover .netflix-carousel-btn {
  opacity: 1;
  visibility: visible;
}

.netflix-carousel-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: translateY(-50%) scale(1.1);
}

.netflix-carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.netflix-carousel-btn-prev {
  left: 0;
}

.netflix-carousel-btn-next {
  right: 0;
}

.netflix-carousel-btn:disabled {
  opacity: 0;
  cursor: not-allowed;
  pointer-events: none;
}

/* Responsive Netflix Carousel */
@media (max-width: 1200px) {
  .netflix-carousel-item {
    width: calc((100% - 36px) / 4);
    min-width: 180px;
    max-width: 220px;
  }
}

@media (max-width: 992px) {
  .netflix-carousel-item {
    width: calc((100% - 24px) / 3); /* 3 items on tablet */
    min-width: 160px;
    max-width: 200px;
  }
  
  .netflix-carousel-wrapper {
    padding: 0 35px;
  }
  
  .netflix-carousel-btn {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .netflix-carousel-item {
    width: 140px;
  }
  
  .netflix-carousel-wrapper {
    padding: 0 30px;
  }
  
  .netflix-carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.6);
  }
  
  .netflix-carousel-track {
    gap: 8px;
  }
}

@media (max-width: 576px) {
  .netflix-carousel-item {
    width: 120px;
  }
  
  .netflix-carousel-wrapper {
    padding: 0 25px;
  }
  
  .netflix-carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .netflix-card-title {
    font-size: 0.875rem;
  }
  
  .netflix-carousel-track {
    gap: 6px;
  }
}

@media (max-width: 400px) {
  .netflix-carousel-item {
    width: 100px;
  }
  
  .netflix-carousel-wrapper {
    padding: 0 20px;
  }
}

/* Touch scrolling support */
.netflix-carousel-container {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Hide scrollbar but keep functionality */
.netflix-carousel-container::-webkit-scrollbar {
  display: none;
}

.netflix-carousel-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* removed old navbar styles */
