/* =============================================
   KALAVITHIKA - RESPONSIVE STYLESHEET
   ============================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(to right, #10b981, #064e3b);
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* =============================================
   NAVBAR STYLES
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #064e3b;
  font-size: 24px;
  font-weight: bold;
}

.site-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.site-name {
  display: inline-block;
}

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 20px;
}

.nav-links a {
  text-decoration: none;
  color: #064e3b;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 10px;
  transition: background 0.3s;
}

.nav-links a:hover {
  background: rgba(6, 78, 59, 0.1);
}

.nav-links a.active {
  background: rgba(6, 78, 59, 0.2);
  font-weight: bold;
}

/* Hamburger Menu - Hidden on desktop */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #064e3b;
  padding: 5px 10px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 100vh;
  margin-top: 0;
  padding: 80px 5%;
  gap: 40px;
}

.hero-text {
  flex: 1;
  padding: 20px;
}

.hero-text h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: #064e3b;
}

.hero-text p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 500px;
}

.hero-image {
  flex: 1;
  height: 80vh;
  max-height: 600px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
}

/* Gallery Hero specific styles */
#gallery-hero {
  padding-top: 80px;
  text-align: center;
  min-height: 30vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#gallery-hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
  color: #064e3b;
}

#gallery-hero p {
  font-size: 18px;
  color: #333;
}

/* =============================================
   FEATURED SECTION
   ============================================= */
.featured {
  padding: 60px 5%;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
}

.featured h2 {
  margin-bottom: 40px;
  font-size: 32px;
  color: #064e3b;
}

.gallery {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 20px 5%;
}

.art-item {
  width: 300px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.art-item img {
  width: 100%;
  height: auto;
  display: block;
}

.art-info {
  padding: 15px;
}

.art-info h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #064e3b;
}

.art-info p {
  font-size: 14px;
  color: #666;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta {
  text-align: center;
  padding: 60px 20px;
  background: #f4f4f4;
}

.cta h2 {
  margin-bottom: 20px;
  color: #064e3b;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  background: #064e3b;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.btn:hover {
  background: #10b981;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-section {
  padding: 120px 5% 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.about-image {
  flex: 0 0 400px;
  max-width: 100%;
}

.about-image img {
  width: 100%;
  max-width: 400px;
  border-radius: 75px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text h1 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #064e3b;
  text-align: center;
}

.about-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #000000;
}

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact {
  padding: 120px 20px 60px;
  text-align: center;
}

.contact h1 {
  font-size: 36px;
  margin-bottom: 15px;
  color: #064e3b;
}

.contact p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #333;
}

.qr-codes {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.qr-code {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.qr-code h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #064e3b;
}

.qr-code img {
  width: 350px;
  height: 350px;
  object-fit: contain;
}

.qr-code p {
  margin-top: 10px;
  font-size: 14px;
  color: #666;
}

/* =============================================
   LOGIN PAGE
   ============================================= */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #1d2671, #c33764);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  padding-top: 80px;
}

.login-container {
  background-color: #ffffff;
  padding: 30px 25px;
  width: 100%;
  max-width: 380px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.login-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.form-group input:focus {
  outline: none;
  border-color: #1d2671;
}

.login-btn {
  width: 100%;
  padding: 10px;
  background-color: #1d2671;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  margin-top: 10px;
}

.login-btn:hover {
  background-color: #16205a;
}

.extra-links {
  text-align: center;
  margin-top: 15px;
  font-size: 13px;
}

.extra-links a {
  color: #1d2671;
  text-decoration: none;
}

.extra-links a:hover {
  text-decoration: underline;
}

.admin-notice {
  background: #ffeeba;
  color: #856404;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 15px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
}

#loginError {
  min-height: 1.2em;
  margin: 8px 0;
  font-size: 0.95rem;
  color: #c33;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  text-align: center;
  padding: 20px;
  background: #064e3b;
  color: white;
  margin-top: auto;
}

/* =============================================
   RESPONSIVE STYLES - TABLET (max-width: 1024px)
   ============================================= */
@media (max-width: 1024px) {
  /* Navbar adjustments */
  .navbar {
    padding: 10px 15px;
  }

  .logo {
    font-size: 22px;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-links a {
    padding: 8px 15px;
    font-size: 14px;
  }

  /* Hero section */
  .hero {
    padding: 100px 4% 40px;
    gap: 30px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .hero-image {
    height: 60vh;
  }

  /* Gallery */
  .gallery {
    gap: 20px;
  }

  .art-item {
    width: 280px;
  }

  /* About */
  .about-section {
    padding: 100px 4% 40px;
    gap: 30px;
  }

  .about-image {
    flex: 0 0 350px;
  }

  .about-text h1 {
    font-size: 32px;
  }
}

/* =============================================
   RESPONSIVE STYLES - MOBILE (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {
  /* Navbar - Mobile */
  .hamburger {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 80px;
    gap: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
  }

  .nav-links.show {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 15px 20px;
    border-radius: 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-links a:hover {
    background: rgba(6, 78, 59, 0.1);
  }

  /* Hero section - Mobile */
  .hero {
    flex-direction: column-reverse;
    padding: 100px 20px 40px;
    min-height: auto;
    text-align: center;
  }

  .hero-text {
    padding: 20px 0;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 15px;
    max-width: 100%;
  }

  .hero-image {
    width: 100%;
    height: 40vh;
    max-height: 300px;
  }

  /* Featured section - Mobile */
  .featured {
    padding: 40px 20px;
  }

  .featured h2 {
    font-size: 26px;
    margin-bottom: 30px;
  }

  .gallery {
    flex-direction: column;
    align-items: center;
  }

  .art-item {
    width: 100%;
    max-width: 350px;
  }

  .art-item img {
    height: 200px;
  }

  /* CTA section - Mobile */
  .cta {
    padding: 40px 20px;
  }

  .cta h2 {
    font-size: 24px;
  }

  /* About section - Mobile */
  .about-section {
    padding: 100px 20px 40px;
    flex-direction: column;
  }

  .about-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 300px;
  }

  .about-image img {
    max-width: 280px;
    border-radius: 50px;
  }

  .about-text {
    width: 100%;
  }

  .about-text h1 {
    font-size: 28px;
  }

  .about-text p {
    font-size: 15px;
    text-align: left;
  }

  /* Contact section - Mobile */
  .contact {
    padding: 100px 20px 40px;
  }

  .contact h1 {
    font-size: 28px;
  }

  .contact p {
    font-size: 16px;
  }

  .qr-codes {
    gap: 20px;
  }

  .qr-code {
    width: 100%;
    max-width: 280px;
  }

  .qr-code img {
    width: 180px;
    height: 180px;
  }

  /* Login page - Mobile */
  .login-page {
    padding: 100px 15px 20px;
  }

  .login-container {
    padding: 25px 20px;
  }

  .login-container h2 {
    font-size: 24px;
  }

  /* Gallery page - Mobile */
  #gallery-hero {
    padding: 100px 20px 40px;
  }

  #gallery-hero h1 {
    font-size: 28px;
  }

  #gallery-hero p {
    font-size: 16px;
  }

  #gallery {
    padding: 20px;
  }

  /* Footer - Mobile */
  footer {
    padding: 15px;
    font-size: 14px;
  }
}

/* =============================================
   RESPONSIVE STYLES - SMALL MOBILE (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {
  /* Navbar */
  .logo {
    font-size: 18px;
  }

  .hamburger {
    font-size: 24px;
  }

  /* Hero */
  .hero-text h1 {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .hero-text p {
    font-size: 14px;
  }

  .hero-image {
    height: 35vh;
    max-height: 250px;
  }

  /* Featured */
  .featured h2 {
    font-size: 22px;
  }

  .art-item {
    max-width: 100%;
  }

  .art-info h3 {
    font-size: 16px;
  }

  .art-info p {
    font-size: 13px;
  }

  /* About */
  .about-text h1 {
    font-size: 24px;
  }

  .about-text p {
    font-size: 14px;
  }

  /* Contact */
  .contact h1 {
    font-size: 24px;
  }

  .qr-code h2 {
    font-size: 18px;
  }

  /* CTA */
  .cta h2 {
    font-size: 20px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* =============================================
   CHATBOT STYLES
   ============================================= */
.chatbot-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #064e3b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1001;
  transition: transform 0.3s, background 0.3s;
}

.chatbot-button:hover {
  transform: scale(1.1);
  background: #10b981;
}

.chatbot-button svg {
  color: white;
  width: 28px;
  height: 28px;
}

.chatbot-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  max-width: 90vw;
  height: 450px;
  max-height: 80vh;
  background: white;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chatbot-header {
  background: #064e3b;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.chatbot-close:hover {
  opacity: 0.8;
}

.chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f5f5f5;
}

.chatbot-message {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.chatbot-message.user {
  align-self: flex-end;
  background: #064e3b;
  color: white;
  border-bottom-right-radius: 5px;
}

.chatbot-message.bot {
  align-self: flex-start;
  background: #e5e7eb;
  color: #333;
  border-bottom-left-radius: 5px;
}

.suggested-questions {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #e5e7eb;
  background: white;
}

.suggested-btn {
  background: #10b981;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.suggested-btn:hover {
  background: #059669;
}

.chatbot-input-area {
  display: flex;
  padding: 10px;
  gap: 10px;
  border-top: 1px solid #e5e7eb;
  background: white;
}

#chatbot-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 25px;
  outline: none;
  font-size: 14px;
}

#chatbot-input:focus {
  border-color: #064e3b;
}

.chatbot-send {
  width: 40px;
  height: 40px;
  background: #064e3b;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
}

.chatbot-send:hover {
  background: #10b981;
}

.chatbot-send svg {
  color: white;
}

/* Mobile responsiveness for chatbot */
@media (max-width: 480px) {
  .chatbot-button {
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
  }

  .chatbot-button svg {
    width: 24px;
    height: 24px;
  }

  .chatbot-window {
    bottom: 75px;
    right: 10px;
    left: 10px;
    width: auto;
    height: 60vh;
  }
}

/* =============================================
   IMAGE CONTAINER
   ============================================= */
.image-container {
  text-align: left;
  padding: 20px 20px 20px 0;
  width: 100%;
}

.image-container img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.hidden {
  display: none;
}

.show {
  display: flex !important;
}
