/* Pacific Seafarers' Net - Custom Styles */
/* Maritime-themed Material Design with Materialize CSS */

:root {
  /* Primary Maritime Blue Palette */
  --primary-50: #e3f2fd;
  --primary-100: #bbdefb;
  --primary-200: #90caf9;
  --primary-300: #64b5f6;
  --primary-400: #42a5f5;
  --primary-500: #1e4d7b;  /* Deep maritime blue */
  --primary-600: #1976d2;
  --primary-700: #1565c0;
  --primary-800: #0d47a1;
  --primary-900: #0a3a7a;

  /* Ocean Accent Colors */
  --ocean-light: #87ceeb;
  --ocean-medium: #4a90e2;
  --ocean-dark: #2c5f8d;

  /* Sunset/Warning Accent */
  --accent-orange: #f39c12;
  --accent-gold: #ffd700;

  /* Neutral Grays */
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-500: #9e9e9e;
  --gray-700: #616161;
  --gray-900: #212121;

  /* Text Colors */
  --text-primary: #2c3e50;
  --text-secondary: #5a6c7d;
  --text-light: #7f8c8d;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
  background-color: #fff;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  line-height: 1.3;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-800);
}

h1 { font-size: 2.75rem; font-weight: 600; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

a {
  color: var(--ocean-medium);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Navigation Bar */
nav {
  background-color: var(--primary-500) !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav .brand-logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff !important;
  padding-left: 1rem;
}

nav ul a {
  color: rgba(255,255,255,0.9) !important;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

nav ul a:hover {
  background-color: rgba(255,255,255,0.1) !important;
}

/* Adjust mobile nav */
@media only screen and (max-width: 992px) {
  nav .brand-logo {
    font-size: 1.25rem;
  }
  .sidenav {
    background-color: var(--primary-500);
  }
  .sidenav li > a {
    color: #fff;
  }
}

/* Hero Section */
.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--ocean-medium) 100%);
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.hero-content h1 {
  color: #fff;
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
  color: rgba(255,255,255,0.95);
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

@media only screen and (max-width: 600px) {
  .hero {
    height: 400px;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
}

/* Content Sections */
.content-section {
  padding: var(--spacing-xl) 0;
}

.content-section:nth-child(even) {
  background-color: var(--gray-50);
}

/* Cards with Maritime Theme */
.card {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card .card-image img {
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.card .card-content {
  padding: 1.5rem;
}

.card .card-title {
  color: var(--primary-700);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Feature Boxes */
.feature-box {
  padding: 2rem;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
  border-left: 4px solid var(--ocean-medium);
}

.feature-box:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

.feature-box i {
  font-size: 2.5rem;
  color: var(--ocean-medium);
  margin-bottom: 1rem;
}

.feature-box h3 {
  color: var(--primary-700);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.feature-box p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Buttons */
.btn, .btn-large {
  background-color: var(--ocean-medium);
  border-radius: var(--radius-md);
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.16);
  transition: all 0.3s ease;
}

.btn:hover, .btn-large:hover {
  background-color: var(--ocean-dark);
  box-shadow: 0 4px 8px rgba(0,0,0,0.24);
}

.btn-secondary {
  background-color: var(--accent-orange);
}

.btn-secondary:hover {
  background-color: #e67e22;
}

/* Lists */
ul:not(.browser-default) {
  padding-left: 0;
  list-style: none;
}

ul:not(.browser-default) li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.75rem;
}

ul:not(.browser-default) li:before {
  content: "▸";
  position: absolute;
  left: 0.5rem;
  color: var(--ocean-medium);
  font-weight: bold;
}

/* Content Images */
.content-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Info Boxes */
.info-box {
  padding: 1.5rem;
  background: var(--primary-50);
  border-left: 4px solid var(--ocean-medium);
  border-radius: var(--radius-md);
  margin: 2rem 0;
}

.info-box strong {
  color: var(--primary-700);
  font-weight: 600;
}

/* Frequency Display (Special for this site) */
.frequency-display {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 100%);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-family: 'Courier New', monospace;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 2px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  margin: 1rem 0;
}

/* Footer */
.page-footer {
  background-color: var(--primary-800);
  padding-top: 2rem;
}

.page-footer h5 {
  color: #fff;
  font-weight: 500;
  margin-bottom: 1rem;
}

.page-footer p,
.page-footer ul li a {
  color: rgba(255,255,255,0.8);
}

.page-footer ul li a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-copyright {
  background-color: var(--primary-900);
  padding: 1rem 0;
}

/* Content Page Specific */
.page-header {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--ocean-medium) 100%);
  color: #fff;
  padding: 4rem 0 3rem;
  margin-bottom: 3rem;
}

.page-header h1 {
  color: #fff;
  margin: 0;
  font-size: 2.75rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}

.content-wrapper h2 {
  margin-top: 2.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-200);
}

.content-wrapper h3 {
  margin-top: 2rem;
  color: var(--ocean-dark);
}

/* Call-to-Action Sections */
.cta-section {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--ocean-dark) 100%);
  color: #fff;
  padding: 4rem 0;
  text-align: center;
  margin: 4rem 0 0;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* Responsive Typography */
@media only screen and (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
  h4 { font-size: 1.25rem; }

  .page-header h1 {
    font-size: 2rem;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.pt-4 { padding-top: 4rem; }
.pb-4 { padding-bottom: 4rem; }

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Print Styles */
@media print {
  nav, .page-footer, .cta-section {
    display: none;
  }

  .content-wrapper {
    max-width: 100%;
  }
}
