﻿/* ===== GENERAL STYLES ===== */
html, body {
  height: 100%;
  font-size: 14px;
  scroll-behavior: smooth;
}

/* Prevent Bootstrap modal from shifting page layout (scrollbar compensation) */
html {
  overflow-y: scroll;
}


@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 0; /* remove extra bottom margin so sticky footer works */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
}

/* ===== NAVBAR STYLES ===== */
.bg-gradient-primary {
  background: linear-gradient(135deg, #8B5E3C 0%, #6B4226 100%) !important;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: #fff;
  background-color: rgba(255,255,255,0.1);
  border-radius: 5px;
}

/* ===== CARDS ===== */
.card {
  border: none;
  border-radius: 15px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.card-img-top {
  border-radius: 15px 15px 0 0;
}

/* ===== BUTTONS ===== */
.btn {
  border-radius: 10px;
  font-weight: 500;
  padding: 0.5rem 1.5rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #8B5E3C 0%, #6B4226 100%);
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #6B4226 0%, #8B5E3C 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(139, 94, 60, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  border: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, #38ef7d 0%, #11998e 100%);
  transform: translateY(-2px);
}

.btn-warning {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border: none;
  color: white;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
  transform: translateY(-2px);
}

.btn-danger {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  border: none;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #fee140 0%, #fa709a 100%);
  transform: translateY(-2px);
}

/* ===== FORMS ===== */
.form-control, .form-select {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
  border-color: #8B5E3C;
  box-shadow: 0 0 0 0.2rem rgba(139, 94, 60, 0.25);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ===== BADGES ===== */
.badge {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loading-overlay .spinner-border {
  width: 3rem;
  height: 3rem;
}

/* ===== ALERTS ===== */
.alert {
  border-radius: 10px;
  border: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ===== FOOTER (base — overridden by full block below) ===== */

/* ===== FEATURE BOXES ===== */
.feature-box {
  padding: 2rem;
  border-radius: 15px;
  background: white;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.feature-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, #8B5E3C 0%, #6B4226 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== TABLES ===== */
.table {
  border-radius: 10px;
  overflow: hidden;
}

.table thead th {
  background: linear-gradient(135deg, #8B5E3C 0%, #6B4226 100%);
  color: white;
  font-weight: 600;
  border: none;
}

/* ===== IMAGE HOVER EFFECTS ===== */
.img-hover-zoom {
  overflow: hidden;
  border-radius: 10px;
}

.img-hover-zoom img {
  transition: transform 0.3s ease;
}

.img-hover-zoom:hover img {
  transform: scale(1.1);
}

/* ===== PAGINATION ===== */
.pagination .page-link {
  border-radius: 8px;
  margin: 0 5px;
  border: none;
  color: #8B5E3C;
}

.pagination .page-item.active .page-link {
  background: linear-gradient(135deg, #8B5E3C 0%, #6B4226 100%);
  border: none;
}

/* ===== SEARCH BOX ===== */
.search-box {
  position: relative;
}

.search-box input {
  padding-left: 3rem;
}

.search-box i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
}

/* ===== DROPDOWN ===== */
.dropdown-menu {
  border-radius: 10px;
  border: none;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.dropdown-item {
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  padding-left: 1.75rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .card {
    margin-bottom: 1rem;
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}

/* ===== MOBILE NAVBAR DROPDOWN ===== */
@media (max-width: 991.98px) {
  /* Dropdown trong collapse hiá»ƒn thá»‹ nhÆ° flat list, khÃ´ng cÃ³ há»™p tráº¯ng */
  .navbar-nav .dropdown-menu {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 0 0 1rem;
  }
  .navbar-nav .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.75) !important;
    padding: 0.4rem 0.75rem;
  }
  .navbar-nav .dropdown-menu .dropdown-item:hover,
  .navbar-nav .dropdown-menu .dropdown-item:focus {
    color: #fff !important;
    background: transparent !important;
  }
  .navbar-nav .dropdown-menu .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.2);
  }
  /* ÄÄƒng nháº­p / ÄÄƒng kÃ½ khi chÆ°a login */
  .navbar-nav .nav-link.text-dark {
    color: rgba(255, 255, 255, 0.75) !important;
  }
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-btn {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.2s;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { color: #fff; border-bottom: 2px solid #fff; }

/* ===== HERO SLIDER ===== */
.hero-slider-img {
  height: 520px;
  object-fit: cover;
  object-position: center;
}
.carousel-caption {
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  bottom: 0; left: 0; right: 0;
  padding: 2rem 2rem 1.5rem;
  text-align: left;
  border-radius: 0;
}
.text-shadow {
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
@@media (max-width: 767px) {
  .hero-slider-img { height: 220px; }
}

/* ===== HOMEPAGE INTRO SECTION ===== */
.dongho-intro-section {
  background: linear-gradient(135deg, #fdf6ee 0%, #faeee0 100%);
  border-top: 2px solid #C8892A;
  border-bottom: 2px solid #C8892A;
}
.intro-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8B5E3C;
  margin-bottom: 0.5rem;
}
.intro-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1rem;
}
.intro-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #8B5E3C, #C8892A);
  border-radius: 2px;
  margin-bottom: 2rem;
}

/* ===== RICH TEXT CONTENT ===== */
.painting-description {
  line-height: 1.9;
  font-size: 1rem;
  color: #333;
}
.painting-description img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.5rem 0;
}
.painting-description p { margin-bottom: 1rem; }
.painting-description h1, .painting-description h2 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.painting-description ul, .painting-description ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #8B5E3C 0%, #6B4226 100%);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6B4226;
}

/* ===== FOOTER STYLES ===== */
.footer {
  background: linear-gradient(160deg, #6B4226 0%, #8B5E3C 100%);
  color: #f0ddc4;
  position: relative;
  margin-top: 0;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #C8892A 0%, #8B5E3C 50%, #C8892A 100%);
}

.footer-title {
  color: #fff;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #C8892A, #8B5E3C);
  border-radius: 2px;
}

.footer-text {
  color: rgba(255, 235, 205, 0.9);
  line-height: 1.8;
  margin-bottom: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 235, 205, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #f5e6d3;
  padding-left: 5px;
}

.footer-links a i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.footer-links a:hover i {
  transform: translateX(3px);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(200, 137, 42, 0.2);
  color: #f0ddc4;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(200, 137, 42, 0.3);
}

.social-link:hover {
  background: linear-gradient(135deg, #C8892A, #8B5E3C);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(139, 94, 60, 0.4);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: start;
  color: rgba(255, 235, 205, 0.9);
  font-size: 0.95rem;
}

.contact-item i {
  width: 20px;
  color: #C8892A;
  margin-right: 0.75rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item span {
  line-height: 1.6;
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 1.25rem 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 235, 205, 0.8);
  font-size: 0.9rem;
}

.footer-bottom strong {
  color: #fff;
  font-weight: 600;
}

.footer-bottom .text-danger {
  animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10%, 30% { transform: scale(1.1); }
  20%, 40% { transform: scale(1); }
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-section {
    margin-bottom: 2rem;
  }

  .footer-title {
    font-size: 1rem;
  }

  .social-links {
    justify-content: center;
    margin-top: 1rem;
  }

  .footer-bottom .row > div {
    text-align: center !important;
    margin-bottom: 0.5rem;
  }
}



/* Keyword tags */
.kw-tag { transition: background .15s, color .15s; }
.kw-tag:hover { background: #8B5E3C !important; color: white !important; }
