/* City of Charles Sturt Brand Colors */
:root {
  --ccs-teal: #007B84;
  --ccs-orange: #FF6B35;
  --ccs-purple: #6B4C9A;
  --ccs-yellow: #FFB81C;
  --ccs-pink: #E91E63;
  --ccs-dark: #2C3E50;
  --ccs-light: #F8F9FA;
  --ccs-gray: #6C757D;
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--ccs-light);
}

/* City of Charles Sturt Header */
.ccs-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--ccs-teal);
}

.ccs-header .navbar {
  padding: 0.75rem 1rem;
}

.ccs-header .navbar-toggler {
  border-color: rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.05);
}

.ccs-header .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Logo Styling */
.ccs-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.logo-image {
  height: 60px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logo-text {
  display: flex;
  flex-direction: column;
  color: black;
}

.logo-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--ccs-dark);
}

.logo-tagline {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ccs-gray);
}

/* Navigation Links */
.ccs-header .nav-link {
  color: var(--ccs-dark) !important;
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.ccs-header .nav-link:hover {
  background: var(--ccs-light);
  color: var(--ccs-teal) !important;
  transform: translateY(-1px);
}

/* Main Content Area */
.ccs-main {
  min-height: calc(100vh - 200px);
  padding-top: 2rem;
}

/* Footer */
.ccs-footer {
  background: white;
  color: var(--ccs-dark);
  padding: 2rem 0;
  margin-top: 3rem;
  border-top: 3px solid var(--ccs-teal);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--ccs-dark);
}

.footer-tagline {
  font-style: italic;
  color: var(--ccs-teal);
  margin: 0;
  font-weight: 500;
}

.footer-section p {
  margin: 0;
  color: var(--ccs-gray);
}

@media (max-width: 768px) {
  .logo-title {
    font-size: 1.1rem;
  }
  
  .logo-tagline {
    font-size: 0.75rem;
  }
  
  .logo-image {
    height: 50px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Photo Gallery Styles */

.gallery-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.infringement-info {
  font-size: 1.4rem;
  color: var(--ccs-dark);
  margin-bottom: 10px;
  margin-top: 0;
  font-weight: 600;
}

.infringement-info strong {
  color: var(--ccs-teal);
  font-weight: 700;
}

.photo-count {
  font-size: 1rem;
  color: var(--ccs-gray);
  margin-bottom: 30px;
  padding: 10px 20px;
  background: white;
  border-left: 4px solid var(--ccs-orange);
  border-radius: 4px;
  display: inline-block;
}

/* Responsive Grid Layout */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
}

/* Photo Item Styles */
.photo-item {
  position: relative;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 163, 173, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.photo-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 163, 173, 0.25);
  border-color: var(--ccs-teal);
}

/* Thumbnail Styles */
.thumbnail {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--ccs-light) 0%, #e0e0e0 100%);
}

@media (max-width: 768px) {
  .thumbnail {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .thumbnail {
    height: 150px;
  }
}

/* Photo Info Overlay */
.photo-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 163, 173, 0.95), transparent);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-item:hover .photo-info {
  opacity: 1;
}

.sequence-number {
  color: white;
  font-weight: bold;
  font-size: 1.3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.year-badge {
  background: var(--ccs-orange);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Terms and Conditions */
.terms-conditions {
  margin-top: 40px;
  padding: 25px;
  background: white;
  border-radius: 12px;
  border-left: 5px solid var(--ccs-teal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.terms-conditions h3 {
  color: var(--ccs-teal);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
  margin-top: 0;
}

.terms-conditions p {
  color: var(--ccs-dark);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
}

@media (max-width: 768px) {
  .terms-conditions {
    padding: 20px;
    margin-top: 30px;
  }
  
  .terms-conditions h3 {
    font-size: 1.1rem;
  }
  
  .terms-conditions p {
    font-size: 0.9rem;
    text-align: left;
  }
}

/* Error Container Styles */
.error-container {
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
}

.error-content {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 163, 173, 0.15);
  text-align: center;
  border-top: 5px solid var(--ccs-orange);
}

.error-content h1 {
  color: var(--ccs-purple);
  margin-bottom: 20px;
}

.error-icon {
  font-size: 4rem;
  margin: 20px 0;
  color: var(--ccs-orange);
}

.error-message {
  font-size: 1.2rem;
  color: var(--ccs-dark);
  margin: 20px 0;
  padding: 20px;
  background: var(--ccs-light);
  border-radius: 8px;
  border-left: 4px solid var(--ccs-orange);
}

.error-actions {
  margin: 30px 0;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.error-actions .btn {
  background: var(--ccs-teal);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.error-actions .btn:hover {
  background: var(--ccs-purple);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 76, 154, 0.3);
}

.error-help {
  margin-top: 40px;
  text-align: left;
  background: var(--ccs-light);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid var(--ccs-teal);
}

.error-help h3 {
  color: var(--ccs-teal);
  margin-bottom: 15px;
  font-size: 1.1rem;
  font-weight: 700;
}

.error-help ul {
  margin: 0;
  padding-left: 20px;
}

.error-help li {
  margin-bottom: 8px;
  color: var(--ccs-dark);
}

/* Buttons */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--ccs-teal);
}

/* Photo Modal Styles */
.photo-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 62, 80, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.photo-modal-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.photo-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: white;
  border-bottom: 3px solid var(--ccs-teal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.photo-modal-info {
  color: var(--ccs-dark);
  font-size: 1.1rem;
  font-weight: 600;
}

.photo-modal-controls {
  display: flex;
  gap: 10px;
}

.nav-btn,
.zoom-btn,
.close-btn {
  background: var(--ccs-light);
  border: 2px solid var(--ccs-gray);
  color: var(--ccs-dark);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled),
.zoom-btn:hover,
.close-btn:hover {
  background: var(--ccs-teal);
  border-color: var(--ccs-teal);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 132, 0.3);
}

.nav-btn:active:not(:disabled),
.zoom-btn:active,
.close-btn:active {
  transform: scale(0.95);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.photo-modal-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 20px;
  background: radial-gradient(circle at center, rgba(0, 163, 173, 0.1) 0%, transparent 70%);
}

.modal-photo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
  cursor: move;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Keyboard shortcuts hint */
.photo-modal-header::after {
  content: 'Keyboard: ← → to navigate, +/- to zoom, 0 to reset, ESC to close';
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--ccs-dark);
  font-size: 0.9rem;
  white-space: nowrap;
  background: white;
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid var(--ccs-teal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .photo-modal-header::after {
    display: none;
  }
  
  .photo-modal-info {
    font-size: 0.95rem;
  }
  
  .nav-btn,
  .zoom-btn,
  .close-btn {
    width: 38px;
    height: 38px;
  }
  
  .photo-modal-controls {
    gap: 6px;
  }
}
