/* Zacni Investovat - Global Styles */

:root {
  --primary: #0f766e;    /* Teal */
  --primary-light: #14b8a6;
  --primary-dark: #064e48;
  --accent: #fbbf24;     /* Amber */
  --accent-light: #fcd34d;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: var(--primary-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.5em;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

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

strong {
  color: var(--primary-dark);
  font-weight: 700;
}

em {
  color: var(--primary);
}

a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--primary);
  transition: all 0.2s;
}

a:hover {
  background: var(--accent-light);
  border-bottom-color: var(--accent);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Navigation */
header {
  background: var(--primary-dark);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  border: none;
}

.logo:hover {
  background: transparent;
  border: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

nav a {
  color: white;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}

nav a:hover {
  background: transparent;
  border-bottom-color: var(--accent);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero h1 {
  color: white;
  margin-bottom: 1rem;
  font-size: 3rem;
}

.hero p {
  color: rgba(255,255,255,0.95);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background: var(--accent);
  color: var(--text);
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  transition: all 0.3s;
  cursor: pointer;
  font-size: 1rem;
}

.cta-button:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border: none;
}

/* Main Content */
main {
  padding: 3rem 0;
  min-height: 60vh;
}

article {
  background: var(--bg);
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
  background: var(--bg-alt);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 4px;
  transition: all 0.3s;
  box-shadow: var(--shadow);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  color: var(--primary-dark);
  margin-top: 0;
}

/* List Styles */
ul, ol {
  margin: 1.5rem 0 1.5rem 2rem;
  line-height: 1.8;
}

li {
  margin-bottom: 0.5rem;
}

/* Disclaimer Box */
.disclaimer {
  background: var(--accent-light);
  border-left: 4px solid var(--warning);
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
  font-size: 0.95rem;
}

.disclaimer strong {
  color: var(--text);
}

/* FAQ Styles */
.faq-item {
  background: var(--bg-alt);
  padding: 1.5rem;
  margin: 1rem 0;
  border-radius: 4px;
  border-left: 4px solid var(--primary);
}

.faq-question {
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  margin-bottom: 0.5rem;
  user-select: none;
}

.faq-answer {
  color: var(--text-light);
  line-height: 1.8;
}

/* Dictionary/Glossary */
.dict-term {
  margin: 1.5rem 0;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dict-term dt {
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.dict-term dd {
  color: var(--text-light);
  margin-left: 0;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--primary);
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

thead {
  background: var(--primary-dark);
  color: white;
}

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

tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

tbody tr:hover {
  background: rgba(15, 118, 110, 0.05);
}

/* Footer */
footer {
  background: var(--primary-dark);
  color: white;
  padding: 3rem 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section a {
  color: rgba(255,255,255,0.8);
  border-bottom-color: var(--accent);
}

.footer-section a:hover {
  color: white;
  background: transparent;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero {
    padding: 2rem 1.5rem;
  }

  nav ul {
    gap: 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    justify-content: center;
    width: 100%;
  }

  main {
    padding: 1.5rem 0;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  nav ul {
    gap: 0.75rem;
    font-size: 0.9rem;
  }

  .cta-button {
    display: block;
    text-align: center;
    margin: 1rem 0;
  }
}
