/* Typography - Inspired by Coro Musicanova */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --primary-color: #2c5f8d; /* Deep blue */
  --primary-dark: #1e4568;
  --primary-light: #4a7ba7;
  --accent-color: #5eb3d6; /* Sky blue */
  --accent-hover: #4a9dc4;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #ffffff;
  --bg-gray: #f8f9fa;
  --border-color: #e0e0e0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  color: var(--text-dark);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Navbar - Modern blue style */
.navbar {
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.bg-dark {
  background-color: var(--primary-color) !important;
  border-bottom: none;
}

.navbar-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: white !important;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.navbar-brand:hover {
  color: var(--accent-color) !important;
  transform: translateY(-2px);
}

.navbar-logo {
  height: 80px;
  width: 80px;
  object-fit: cover;
  object-position: center;
  margin-right: 15px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.navbar-brand:hover .navbar-logo {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(94, 179, 214, 0.4);
  background: rgba(255, 255, 255, 0.15);
}

.navbar-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

@media (max-width: 992px) {
  .navbar-logo {
    height: 60px;
    width: 60px;
    margin-right: 12px;
  }
  
  .navbar-title {
    font-size: 0.95rem;
  }
}

@media (max-width: 576px) {
  .navbar-logo {
    height: 50px;
    width: 50px;
    margin-right: 10px;
  }
  
  .navbar-title {
    font-size: 0.85rem;
  }
}

.navbar .nav-link {
  color: white !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  color: var(--accent-color) !important;
}

/* User greeting - no hover effect */
.navbar .nav-link:has(strong) {
  cursor: default;
}

.navbar .nav-link:has(strong):hover {
  color: white !important;
}

/* Admin dropdown menu - two columns */
.dropdown-menu-admin {
  min-width: 500px;
  padding: 0.5rem;
}

.dropdown-menu-admin .dropdown-header {
  font-weight: 600;
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  margin-bottom: 0.25rem;
  border-bottom: 2px solid var(--accent-color);
}

.dropdown-menu-admin .dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.dropdown-menu-admin .dropdown-item:hover {
  background-color: var(--bg-gray);
  color: var(--primary-color);
}

/* Home link highlight */
.navbar .nav-link-home {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
  color: white !important;
  font-weight: 600;
  padding: 0.5rem 1.25rem !important;
  border-radius: 25px;
  box-shadow: 0 2px 8px rgba(94, 179, 214, 0.3);
}

.navbar .nav-link-home:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 100%);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(94, 179, 214, 0.5);
}

.navbar .dropdown-menu {
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

.navbar .dropdown-item {
  padding: 0.625rem 1.5rem;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.navbar .dropdown-item:hover {
  background-color: var(--bg-gray);
  color: var(--primary-color);
  padding-left: 1.75rem;
}

.navbar .btn-outline-light {
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  background-color: rgba(94, 179, 214, 0.15);
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.navbar .btn-outline-light:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(94, 179, 214, 0.5);
}

/* Removed sidebar styles - now using header navigation */

/* Buttons - Modern style */
.btn {
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  border-width: 2px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn:active {
  transform: translateY(0);
}

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

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

.btn-outline-secondary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-outline-danger {
  border-color: #dc3545;
  color: #dc3545;
}

.btn-outline-danger:hover {
  background: #dc3545;
  color: white;
}

.btn-sm {
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
}

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Cards - Clean modern design */
.card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.card-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--text-dark);
}

/* Carousel - Modern style with fade animation */
.carousel {
  border-radius: 8px;
  overflow: visible;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.carousel-fade .carousel-item {
  opacity: 0;
  transition-duration: 1.5s;
  transition-property: opacity;
  transition-timing-function: ease-in-out;
}

.carousel-fade .carousel-item.active,
.carousel-fade .carousel-item-next.carousel-item-start,
.carousel-fade .carousel-item-prev.carousel-item-end {
  z-index: 1;
  opacity: 1;
}

.carousel-fade .active.carousel-item-start,
.carousel-fade .active.carousel-item-end {
  z-index: 0;
  opacity: 0;
  transition: opacity 0s 1.5s;
}

.carousel-item img {
  object-fit: cover;
  height: 450px;
  border-radius: 8px;
}

.carousel-caption {
  position: static !important;
  background: transparent;
  padding: 1.5rem 0 0 0;
  color: var(--text-dark);
  text-align: center;
}

.carousel-caption h5 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.carousel-caption p {
  color: var(--text-light);
  margin-bottom: 0;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

/* Footer - Modern clean design */
footer {
  background-color: var(--primary-dark) !important;
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  border-top: 4px solid var(--accent-color);
}

footer h5 {
  font-family: 'Montserrat', sans-serif;
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  font-weight: 600;
}

footer a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

footer .text-secondary {
  color: rgba(255,255,255,0.6) !important;
  margin-top: 2rem;
}

footer ul {
  padding-left: 0;
}

footer li {
  margin-bottom: 0.5rem;
}

/* List groups */
.list-group-item {
  background: transparent;
  border: 1px solid var(--border-color);
  margin-bottom: 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.list-group-item:hover {
  background: var(--bg-gray);
  border-color: var(--primary-color);
}

.announcement-content {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* Utilities */
.border-end {
  border-right-width: 1px !important;
}

small.text-muted {
  color: var(--text-light) !important;
}

.text-muted {
  color: var(--text-light) !important;
}

/* Content sections */
section {
  margin-bottom: 3rem;
}

section h2 {
  border-bottom: 3px solid var(--accent-color);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  
  .carousel-item img {
    height: 300px;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  section h2 {
    font-size: 1.5rem;
  }
}

/* Album cards */
.album-card {
  transition: all 0.3s ease;
}

.album-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15) !important;
}

.album-card .card-title {
  color: var(--text-dark);
}

/* Gallery lightbox styles */
.gallery-item {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2) !important;
}

.gallery-item::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.gallery-item:hover::after {
  opacity: 0.9;
}

.gallery-item:hover img {
  filter: brightness(0.7);
}

#imageModal .modal-content {
  background-color: transparent !important;
  border: none;
}

#imageModal .modal-body {
  padding: 0;
  background: rgba(0, 0, 0, 0.95);
}

#imageModal .modal-backdrop {
  background-color: rgba(0, 0, 0, 0.9);
}

#imageModal img {
  transition: transform 0.3s ease, cursor 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.8);
}

#imageModal img.zoomed {
  transform: scale(2.5);
  cursor: zoom-out;
  transition: transform 0.4s ease;
}

#imageModal .modal-footer {
  background: rgba(0, 0, 0, 0.7);
  padding: 1rem;
}

#imageModal .modal-footer p {
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  font-size: 0.95rem;
}

/* Carousel styling */
#homeCarousel .carousel-inner {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

#homeCarousel .carousel-item img {
  height: 450px;
  object-fit: cover;
}

/* Slow fade transition */
#homeCarousel.carousel-fade .carousel-item {
  transition: opacity 2s ease-in-out !important;
}

/* Event cards */
.event-card-home {
  transition: all 0.3s ease;
  background: linear-gradient(180deg, rgba(44,95,141,0.06) 0%, rgba(44,95,141,0.02) 100%);
  border: 1px solid var(--border-color);
  border-left: 6px solid var(--accent-color);
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}

.event-card-home .card-body {
  padding: 1.25rem 1.25rem 1rem 1.25rem;
}

.event-card-home h5.card-title {
  color: var(--primary-color);
  font-weight: 700;
}

.event-card-home .event-date-small .badge {
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(44,95,141,0.25);
}

.event-card-home::before {
  content: "";
  position: absolute;
  top: 0;
  right: -20%;
  width: 50%;
  height: 8px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
  box-shadow: 0 6px 10px rgba(0,0,0,0.08);
}

.event-card-home:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
