/* CoastWise Landing Page Styles */
.coastwise-landing {
  min-height: 100vh;
  background-image: url('../images/sea.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #FFFFFF;
  font-family: 'Rubik', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  position: relative;
}

.coastwise-landing::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 77, 151, 0.8) 0%, rgba(161, 45, 41, 0.2) 100%);
  z-index: -1;
}

/* Hero Section */
.hero-section {
  padding: 60px 20px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

/* DeepEarth Digital Logo */
.deepearth-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 200px;
  height: 82px;
  background-image: url('../images/DeepEarth_Digital_logo_white_transparent_1000x409.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
  opacity: 0.9;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.deepearth-logo:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* CoastWise Logo */
.coastwise-logo {
  width: 200px;
  height: auto;
  margin: 0 auto 30px auto;
  display: block;
  opacity: 0.95;
  transition: all 0.3s ease;
}

.coastwise-logo:hover {
  opacity: 1;
  transform: scale(1.02);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="wave" x="0" y="0" width="100" height="20" patternUnits="userSpaceOnUse"><path d="M0,10 Q25,0 50,10 T100,10 V20 H0 Z" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23wave)"/></svg>') repeat-x;
  opacity: 0.5;
}


.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin: 0 0 20px 0;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: #FFFFFF;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  opacity: 0.95;
}

.hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 40px 0;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* System Status Section */
.system-status-section {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  margin: 30px auto;
  max-width: 800px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Safari fallback for glassmorphism */
@supports not (backdrop-filter: blur(10px)) {
  .system-status-section {
    background: rgba(255, 255, 255, 0.2);
  }
  
  .stat-item {
    background: rgba(255, 255, 255, 0.2);
  }
}

.system-status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.system-status-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.system-status-title i {
  color: #f8d447;
  font-size: 1.2rem;
}

.system-status-content {
  margin-top: 16px;
}

.system-status-info {
  margin-top: 12px;
}

.system-status-description {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0.9;
}

.landing-realtime-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #FFFFFF;
}

.landing-realtime-indicator .connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.landing-realtime-indicator .last-updated {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 4px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.2);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0 20px;
}

/* Safari fallback for navigation tabs glassmorphism */
@supports not (backdrop-filter: blur(10px)) {
  .nav-tabs {
    background: rgba(255, 255, 255, 0.2);
  }
}

/* Additional Safari-specific fixes */
@supports not (-webkit-backdrop-filter: blur(10px)) {
  .system-status-section {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .nav-tabs {
    background: rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .stat-item {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
}

.nav-tab {
  padding: 16px 32px;
  border: none;
  background: transparent;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
  position: relative;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.nav-tab.active {
  background: #004d97;
  border-bottom-color: #f8d447;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Admin Tab Styling */
.admin-tab {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%) !important;
  border: 2px solid #ff4757 !important;
  color: white !important;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.admin-tab:hover {
  background: linear-gradient(135deg, #ff5252 0%, #e74c3c 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.admin-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.admin-tab:hover::before {
  left: 100%;
}

/* Main Content */
.main-content {
  background: #FFFFFF;
  color: #1f2937;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #1f2937;
}

.section-header p {
  font-size: 1.2rem;
  color: #6b7280;
  margin: 0;
  opacity: 0.9;
}

/* View Controls */
.view-controls {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.view-toggle {
  display: flex;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border: 2px solid #f8d447;
}

.toggle-btn {
  padding: 12px 24px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-btn:hover {
  background: #e5e7eb;
  color: #374151;
}

.toggle-btn.active {
  background: #004d97;
  color: #FFFFFF;
  box-shadow: 0 2px 4px rgba(0, 77, 151, 0.3);
}

/* Map Components */
.landing-map,
.landing-dashboard,
.full-dashboard {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Selected Location Card */
.selected-location-card {
  background: #f8fafc;
  border: 2px solid #f8d447;
  border-radius: 16px;
  padding: 24px;
  margin-top: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.selected-location-card h3 {
  margin: 0 0 20px 0;
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.location-info {
  display: grid;
  gap: 12px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 1rem;
  color: #374151;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row strong {
  color: #1f2937;
  font-weight: 600;
  min-width: 120px;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-badge.active {
  background: #28a745;
  color: #FFFFFF;
}

.status-badge.inactive {
  background: #dc3545;
  color: #FFFFFF;
}

/* About Section */
.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.about-card {
  background: #f8fafc;
  border: 10px solid #f8d447;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  color: #374151;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: #004d97;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.about-card h3 {
  margin: 0 0 12px 0;
  color: #1f2937;
  font-size: 1.3rem;
  font-weight: 600;
}

.about-card p {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
  opacity: 0.9;
}

.tech-info {
  background: #f8fafc;
  border: 2px solid #f8d447;
  border-radius: 16px;
  padding: 24px;
  margin-top: 40px;
}

.tech-info h3 {
  margin: 0 0 20px 0;
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.tech-item {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #f8d447;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #FFFFFF;
}

.tech-item strong {
  color: #FFFFFF;
  font-weight: 600;
}

/* Footer */
.footer {
  background: #cb3839;
  color: #FFFFFF;
  padding: 40px 20px 20px;
  border-top: 20px solid #f8d447;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h4 {
  margin: 0 0 12px 0;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-section p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: #FFFFFF;
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  /* DeepEarth Digital Logo - Mobile */
  .deepearth-logo {
    width: 150px;
    height: 61px;
    top: 15px;
    right: 15px;
  }
  
  /* CoastWise Logo - Mobile */
  .coastwise-logo {
    width: 250px;
    margin-bottom: 25px;
  }
  
  .nav-tabs {
    flex-direction: column;
  }
  
  .nav-tab {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
  }
  
  .nav-tab:last-child {
    border-bottom: none;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .view-toggle {
    flex-direction: column;
  }
  
  .toggle-btn {
    width: 100%;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .info-row strong {
    min-width: auto;
  }
  
  .system-status-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .system-status-title {
    font-size: 1.1rem;
  }
  
  .landing-realtime-indicator {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 40px 15px;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  /* DeepEarth Digital Logo - Small Mobile */
  .deepearth-logo {
    width: 120px;
    height: 49px;
    top: 10px;
    right: 10px;
  }
  
  /* CoastWise Logo - Small Mobile */
  .coastwise-logo {
    width: 200px;
    margin-bottom: 20px;
  }
  
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .about-card {
    padding: 20px;
  }
  
  .selected-location-card {
    padding: 20px;
  }
  
  .tech-info {
    padding: 20px;
  }
  
  .system-status-section {
    padding: 20px;
    margin: 20px auto;
  }
  
  .system-status-title {
    font-size: 1rem;
  }
  
  .system-status-description {
    font-size: 0.9rem;
  }
}

