/* HAM-NET.cz Styles */
:root {
  --ham-blue: #2563eb;
  --ham-green: #10b981;
  --ham-orange: #f97316;
  --ham-red: #dc2626;
  --ham-gray: #374151;
  --ham-light-gray: #f3f4f6;
  --ham-dark-gray: #111827;
  --code-bg: #1f2937;
  --border-color: #d1d5db;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--ham-gray);
  background-color: #ffffff;
}

/* Header */
header {
  background: linear-gradient(135deg, #0f4c75, var(--ham-green));
  color: white;
  padding: 2rem 0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header .subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  font-weight: 300;
}

/* Navigation */
nav {
  background-color: var(--ham-dark-gray);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

nav li {
  margin: 0 1rem;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: var(--ham-orange);
  color: white;
}

/* Main Content */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Typography */
h1 {
  color: #0f4c75;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  border-bottom: 3px solid var(--ham-orange);
  padding-bottom: 0.5rem;
}

h2 {
  color: #0f4c75;
  font-size: 1.8rem;
  margin: 2rem 0 1rem 0;
  display: flex;
  align-items: center;
}

h2::before {
  content: "📡";
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

h3 {
  color: var(--ham-red);
  font-size: 1.4rem;
  margin: 1.5rem 0 0.5rem 0;
}

h4 {
  color: var(--ham-gray);
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem 0;
}

p {
  margin-bottom: 1rem;
  text-align: justify;
}

/* Code Blocks */
.code-block-wrapper {
  position: relative;
  margin: 1rem 0;
}

pre {
  background-color: var(--code-bg);
  color: #f8f8f2;
  padding: 1.5rem;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0;
  border-left: 4px solid var(--ham-orange);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
}

.copy-code-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background-color: var(--ham-orange);
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  z-index: 1;
}

.copy-code-btn:hover {
  background-color: #ea580c;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.copy-code-btn.copy-success {
  background-color: var(--ham-green);
}

.copy-code-btn.copy-error {
  background-color: var(--ham-red);
}

code {
  background-color: var(--ham-light-gray);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--ham-blue);
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Lists */
ul, ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

li {
  margin: 0.5rem 0;
}

/* Links */
a {
  color: var(--ham-blue);
  text-decoration: none;
  border-bottom: 1px dotted var(--ham-blue);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--ham-orange);
  border-bottom-color: var(--ham-orange);
}

/* Info Boxes */
.info-box {
  background-color: var(--ham-light-gray);
  border-left: 4px solid var(--ham-blue);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.warning-box {
  background-color: #fef3cd;
  border-left: 4px solid var(--ham-orange);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background-color: var(--ham-blue);
  color: white;
  font-weight: 600;
}

tr:hover {
  background-color: var(--ham-light-gray);
}

/* Footer */
footer {
  background-color: var(--ham-dark-gray);
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

footer p {
  margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  main {
    padding: 1rem 0.5rem;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav li {
    margin: 0.25rem 0;
  }
  
  pre {
    padding: 1rem;
    font-size: 0.8rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-muted {
  color: #6b7280;
}

.mt-2 {
  margin-top: 1rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

/* Frequency bands styling */
.frequency-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.frequency-item {
  background-color: var(--ham-light-gray);
  padding: 0.75rem;
  border-radius: 6px;
  text-align: center;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.frequency-item:hover {
  border-color: var(--ham-orange);
}