/* Lider Media Demo — Styles matching lidermedia.hr/lider-bi/ */

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

:root {
  --lider-red: #b91c1c;
  --lider-red-hover: #991b1b;
  --lider-dark: #1a1a1a;
  --lider-bg: #ffffff;
  --lider-text: #1a1a1a;
  --lider-text-gray: #6b7280;
  --lider-border: #e5e7eb;
  --lider-tag-bg: #b91c1c;
  --lider-tag-text: #ffffff;
  --lider-section-bg: #f8f8f8;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.6;
  color: var(--lider-text);
  background: var(--lider-bg);
  min-height: 100vh;
}

a { color: var(--lider-red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === TOP BAR === */
.lider-topbar {
  background: var(--lider-dark);
  padding: 0.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lider-topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lider-topbar-right a {
  color: #9ca3af;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8125rem;
  text-decoration: none;
}

.lider-topbar-right a:hover { color: #fff; }

.lider-topbar-login {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: var(--lider-red);
  color: #fff !important;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.lider-topbar-login:hover {
  background: var(--lider-red-hover);
  text-decoration: none;
}

/* === LOGO === */
.lider-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}

.lider-logo:hover { text-decoration: none; }

.lider-logo-img {
  height: 1.75rem;
  width: auto;
}

/* === NAV === */
.lider-nav {
  background: var(--lider-dark);
  border-top: 1px solid #333;
  padding: 0 2rem;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.lider-nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
}

.lider-nav a {
  display: inline-block;
  padding: 0.75rem 0.875rem;
  color: #d1d5db;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}

.lider-nav a:hover {
  color: #fff;
  text-decoration: none;
}

.lider-nav a.active {
  color: #fff;
  border-bottom-color: var(--lider-red);
  font-weight: 700;
}

/* === SECTION HEADER (Lider BI banner) === */
.lider-section-banner {
  max-width: 1200px;
  margin: 1.5rem auto 0;
  padding: 0 2rem;
}

/* === HERO ARTICLES === */
.lider-hero {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.lider-hero-main {
  position: relative;
  border-radius: 0.25rem;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

.lider-hero-main-content {
  padding: 1.5rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
}

.lider-hero-main .lider-tag {
  margin-bottom: 0.75rem;
}

.lider-hero-main h3 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: #fff;
}

.lider-hero-main p {
  font-size: 0.9375rem;
  color: #d1d5db;
  line-height: 1.5;
}

.lider-hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lider-hero-sidebar-item {
  padding: 1rem;
  border: 1px solid var(--lider-border);
  border-radius: 0.25rem;
  transition: box-shadow 0.15s;
}

.lider-hero-sidebar-item:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.lider-hero-sidebar-item h4 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.375rem;
  color: var(--lider-text);
}

.lider-hero-sidebar-item p {
  font-size: 0.8125rem;
  color: var(--lider-text-gray);
  line-height: 1.4;
}

/* === TAGS === */
.lider-tag {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  background: var(--lider-tag-bg);
  color: var(--lider-tag-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

/* === AI ASSISTANT SECTION === */
.lider-ai-section {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.lider-ai-wrapper {
  background: var(--lider-section-bg);
  border: 1px solid var(--lider-border);
  border-radius: 0.5rem;
  padding: 2rem;
}

.lider-ai-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.lider-ai-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--lider-red);
  border-radius: 50%;
  flex-shrink: 0;
}

.lider-ai-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.lider-ai-header h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--lider-text);
}

.lider-ai-header p {
  font-size: 0.875rem;
  color: var(--lider-text-gray);
  margin-top: 0.125rem;
}

.lider-ai-questions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.lider-ai-questions span {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8125rem;
  color: var(--lider-text-gray);
  font-weight: 500;
}

.lider-ai-questions button {
  padding: 0.375rem 0.875rem;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 9999px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.8125rem;
  color: var(--lider-text);
  cursor: pointer;
  transition: all 0.15s;
}

.lider-ai-questions button:hover {
  border-color: var(--lider-red);
  color: var(--lider-red);
  background: #fff5f5;
}

.lider-ai-widget {
  border-radius: 0.375rem;
  overflow: hidden;
  background: #fff;
  min-height: 500px;
}

/* === ARTICLE GRID === */
.lider-articles {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.lider-articles-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--lider-red);
  margin-bottom: 1.25rem;
}

.lider-articles-header h3 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--lider-text);
}

.lider-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.lider-article-card {
  padding: 1.25rem;
  border: 1px solid var(--lider-border);
  border-radius: 0.25rem;
  transition: box-shadow 0.15s;
}

.lider-article-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.lider-article-card h4 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--lider-text);
  margin-bottom: 0.375rem;
}

.lider-article-card p {
  font-size: 0.8125rem;
  color: var(--lider-text-gray);
  line-height: 1.5;
}

/* === FOOTER === */
.lider-footer {
  background: var(--lider-dark);
  margin-top: 3rem;
  padding: 2rem;
}

.lider-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lider-footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.lider-footer-links a {
  color: #9ca3af;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.75rem;
  text-decoration: none;
}

.lider-footer-links a:hover { color: #fff; text-decoration: none; }

.lider-footer-copy {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.75rem;
  color: #6b7280;
}

.lider-footer-powered {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid #333;
}

.lider-footer-powered p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.6875rem;
  color: #6b7280;
}

.lider-footer-powered a {
  color: #9ca3af;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .lider-topbar { padding: 0.5rem 1rem; }
  .lider-nav { padding: 0 1rem; }
  .lider-section-banner { padding: 0 1rem; }

  .lider-hero {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .lider-hero-main { min-height: 240px; }

  .lider-hero-sidebar {
    flex-direction: row;
    overflow-x: auto;
  }

  .lider-hero-sidebar-item {
    min-width: 260px;
    flex-shrink: 0;
  }

  .lider-ai-section { padding: 0 1rem; }
  .lider-ai-wrapper { padding: 1.25rem; }
  .lider-articles { padding: 0 1rem; }

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

  .lider-footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .lider-footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .lider-logo { font-size: 1.25rem; }
  .lider-logo-square { width: 1.5rem; height: 1.5rem; font-size: 1rem; }
  .lider-hero-main h3 { font-size: 1.25rem; }
  .lider-ai-questions { gap: 0.375rem; }
}

/* === UTILITY === */
.lider-hidden { display: none !important; }
