/* --- GLOBAL VARIABLES --- */
:root {
  --primary: #4f46e5;
  --accent: #c800a1;
  --bulb-black: #1f2937;
  --fin-blue: #0ea5e9;
  --bg-body: #f8f9fa;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { overflow-x: hidden; width: 100%; }

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-dark);
  line-height: 1.6;
  padding-top: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- HEADER & NAV --- */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; display: flex;
  justify-content: space-between; align-items: center; padding: 1rem 1.5rem;
}
.brand-logo {
  font-weight: 800; font-size: 1.5rem; color: var(--accent);
  text-decoration: none; display: flex; align-items: center; gap: 10px;
}
.brand-logo img { height: 40px; width: auto; border-radius: 50%; }
.desktop-nav { display: flex; gap: 2rem; }
.desktop-nav a {
  text-decoration: none; color: var(--text-dark); font-weight: 600;
  transition: color 0.3s;
}
.desktop-nav a:hover, .desktop-nav a.active { color: var(--accent); }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 25px; height: 3px; background: var(--text-dark); }

/* --- HERO SECTIONS --- */
.hero {
  text-align: center; padding: 5rem 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
  position: relative; overflow: hidden;
}
.hero h1 {
  font-size: 3.5rem; font-weight: 800; line-height: 1.1;
  margin-bottom: 1rem; color: var(--bulb-black);
}
.hero span { color: var(--accent); }
.hero p { font-size: 1.2rem; color: #666; max-width: 600px; margin: 0 auto 2rem; }

/* --- TRUTH BAR --- */
.truth-bar { background: var(--bulb-black); color: white; padding: 1.5rem 0; width: 100%; }
.truth-container {
  display: flex; justify-content: space-around; flex-wrap: wrap;
  max-width: 1000px; margin: 0 auto; text-align: center; gap: 20px;
}
.truth-item { flex: 1; min-width: 200px; } /* Added min-width for wrapping */
.truth-num { font-size: 1.8rem; letter-spacing: -1px; font-weight: 800; color: var(--fin-blue); display: block; margin-bottom: 5px; }
.truth-desc { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* --- POSTS --- */
.main-content { max-width: 800px; margin: 3rem auto; width: 100%; padding: 0 1.5rem; flex: 1; }
.post-card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); margin-bottom: 3rem; overflow: hidden;
  transition: transform 0.3s ease; border: 1px solid rgba(0,0,0,0.03);
}
.post-header {
  padding: 1rem 1.5rem; display: flex; justify-content: space-between;
  align-items: center; border-bottom: 1px solid #f3f4f6;
}
.post-user { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.post-user img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.post-date { font-size: 0.8rem; color: #999; font-weight: 600; text-transform: uppercase; }
.post-body { padding: 2rem 1.5rem; }
.post-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.3; }
.post-text { margin-bottom: 1.5rem; color: #4b5563; font-size: 1.05rem; }
.sf-highlight {
  text-decoration: underline; text-decoration-color: var(--accent);
  text-decoration-thickness: 3px; text-underline-offset: 4px; font-weight: 700; color: var(--bulb-black);
}
.post-image-container { width: 100%; background: #f0f0f0; display: flex; justify-content: center; }
.post-image-container img { width: 100%; height: auto; display: block; }

/* --- SHOP --- */
.shop-header { text-align: center; padding: 2rem 1rem; width: 100%; }
.shop-header h1 { font-size: 3rem; font-weight: 800; color: var(--accent); margin-bottom: 1rem; letter-spacing: -1px; line-height: 1.1; }
.ticker-wrap { width: 100%; background: #111; overflow: hidden; height: 40px; display: flex; align-items: center; margin-bottom: 2rem; }
.ticker { display: flex; animation: ticker 20s linear infinite; white-space: nowrap; }
.ticker-item { color: white; font-family: monospace; font-size: 1rem; padding: 0 2rem; display: flex; align-items: center; gap: 10px; }
.up { color: #4ade80; } .down { color: #ef4444; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem 4rem; width: 100%;
}
.product-card {
  background: white; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); display: flex; flex-direction: column; border: 1px solid #eee;
}
.gallery { position: relative; padding-top: 100%; overflow: hidden; background: #f3f4f6; }
.gallery-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; transition: transform 0.5s ease; }
.gallery-slider img { width: 100%; height: 100%; object-fit: cover; flex-shrink: 0; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.8); border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; z-index: 10; font-weight: bold; }
.left { left: 10px; } .right { right: 10px; }
.p-info { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.p-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; }
.p-title { font-size: 1.25rem; font-weight: 800; }
.p-tag { background: var(--primary); color: white; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; }
.p-price { font-size: 1.5rem; color: var(--accent); font-weight: 700; margin-bottom: 1rem; }
.p-desc { font-size: 0.9rem; color: #666; margin-bottom: 1.5rem; flex-grow: 1; }
.mini-chart {
  background: #f9fafb;
  padding: 0; /* Remove padding so chart touches edges if you want, or keep small */
  border-radius: 8px;
  margin-bottom: 1rem;
  border: 1px solid #eee;
  overflow: hidden; /* Contains the SVG */
}
.mc-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 10px 0 10px; /* Padding only for text */
  margin-bottom: 0;
}
.mc-viz {
  height: 50px; /* Fixed height for consistency */
  width: 100%;
  position: relative;
}

.mini-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.mc-line { position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(to right, var(--primary), var(--accent)); opacity: 0.6; }
.btn-buy { display: block; width: 100%; text-align: center; background: var(--bulb-black); color: white; padding: 12px; border-radius: 8px; text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 0.9rem; transition: 0.3s; }
.keyword { display: block; font-size: 0.7rem; color: #999; text-align: center; margin-top: 5px; }
.b2b-section { max-width: 800px; margin: 2rem auto; text-align: center; background: #111; color: white; padding: 3rem; border-radius: var(--radius); width: 90%; }
.b2b-link { color: var(--accent); font-weight: bold; text-decoration: none; }

/* --- CONTACT PAGE --- */
.contact-wrapper { display: flex; justify-content: center; align-items: center; flex-grow: 1; padding: 2rem; }
.contact-card { background: white; padding: 3rem; border-radius: var(--radius); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1); max-width: 500px; width: 100%; text-align: center; }
.email-box { background: #f3f4f6; padding: 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; }
.email-link { font-size: 1.3rem; font-weight: 700; color: var(--primary); text-decoration: none; word-break: break-all; }
.social-icons { display: flex; justify-content: center; gap: 20px; margin-top: 1rem; }
.social-icons a { width: 50px; height: 50px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); color: var(--accent); font-size: 1.5rem; transition: 0.3s; text-decoration: none; }

/* --- ABOUT --- */
.about-container { max-width: 900px; margin: 2rem auto; padding: 0 1.5rem; }
.about-hero { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); margin-bottom: 2rem; }
.about-hero img { width: 100%; height: auto; display: block; }
.about-content { background: white; padding: 2.5rem; border-radius: var(--radius); box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
.about-content h2 { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; position: relative; display: inline-block; }
.about-content h2::after { content: ''; position: absolute; width: 60%; height: 4px; background: var(--accent); bottom: -5px; left: 0; }
.text-highlight { color: var(--accent); font-weight: 700; }

/* --- FOOTER/MENU --- */
.site-footer { background: white; border-top: 1px solid #eaeaea; padding: 2rem; text-align: center; margin-top: auto; font-size: 0.9rem; color: #888; }
.mobile-menu { position: fixed; top: 0; right: -100%; width: 100%; height: 100%; background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); z-index: 2000; transition: 0.4s ease; display: flex; align-items: center; justify-content: center; }
.mobile-menu.open { right: 0; }
.mobile-nav { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.mobile-nav a { font-size: 2rem; font-weight: 800; text-decoration: none; color: var(--bulb-black); }
.close-menu { position: absolute; top: 20px; right: 25px; font-size: 2rem; cursor: pointer; }

/* --- MOBILE FIXES --- */
@media (max-width: 800px) {
  .desktop-nav { display: none; }
  .hamburger { display: flex; }
  .hero h1 { font-size: 2.5rem; }
  
  /* Shop Fixes */
  .product-grid { grid-template-columns: 1fr !important; padding: 0 1rem 4rem; }
  .shop-header h1 { font-size: 2rem; word-wrap: break-word; }

  /* Contact Page Fixes */
  .contact-card { 
    padding: 1.5rem; /* Reduce massive padding */
    width: 100%;
  }
  .email-box {
    padding: 1rem; /* Reduce box padding */
  }
  .email-link {
    font-size: 1rem; /* Shrink text to fit */
  }
}

/* --- NEWS TERMINAL STYLES (Responsive) --- */
.news-terminal-wrapper {
  max-width: 1200px;        /* Matches .product-grid max-width */
  margin: 0 auto 3rem auto; /* Centers it */
  padding: 0 1.5rem;        /* Matches .product-grid padding exactly */
  width: 100%;              /* Ensures full width */
  box-sizing: border-box;   /* Prevents padding from breaking layout */
}

.news-terminal {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  width: 100%;
}

.terminal-header {
  background: #000; 
  border-bottom: 1px solid #333; 
  color: white; 
  padding: 12px 20px; 
  font-family: 'Roboto Mono', monospace; 
  font-size: 0.9rem; 
  font-weight: 700; 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
}

.terminal-status {
  display: flex; 
  align-items: center; 
  gap: 8px; 
  color: #10b981; 
  font-size: 0.7rem; 
  letter-spacing: 1px;
}

.live-dot {
  width: 8px; 
  height: 8px; 
  background-color: #10b981; 
  border-radius: 50%; 
  animation: blink 1s infinite;
}

@keyframes blink { 50% { opacity: 0.4; } }

/* --- MOBILE ADJUSTMENT --- */
@media (max-width: 800px) {
  .news-terminal-wrapper {
    padding: 0 1rem; /* Matches mobile .product-grid padding */
    margin-bottom: 2rem;
  }
  
  .terminal-header {
    padding: 10px 15px; /* Slightly tighter on mobile */
    font-size: 0.8rem;
  }
}

/* --- HERO CTA BUTTON --- */
.hero-cta-container {
  text-align: center;
  padding: 2rem 0 4rem 0; /* Space around button */
  background: linear-gradient(to bottom, #f0f7ff, #fff); /* Fade to white */
}

.hero-btn {
  background: var(--accent); /* Purple/Pink */
  color: white;
  padding: 1.5rem 4rem;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 100px;
  box-shadow: 0 15px 40px rgba(200, 0, 161, 0.4);
  transition: all 0.3s ease;
  display: inline-block;
  border: 4px solid transparent;
}

.hero-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 25px 50px rgba(200, 0, 161, 0.6);
  background: #a0006d;
  letter-spacing: 2px;
}

/* --- REVIEWS SECTION (Final Fix) --- */
.reviews-container {
  max-width: 1200px;
  margin: 3rem auto 5rem auto;
  padding: 0 1.5rem;
  overflow: hidden; /* Skriva kartice kad izlaze gore */
}

.reviews-title {
  font-size: 1rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid #c800a1;
  display: inline-block;
  padding-bottom: 5px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  /* Ovo osigurava da grid stoji čvrsto odmah */
  align-items: start; 
  min-height: 300px; 
}

.review-card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  
  /* Flexbox za raspored unutar kartice */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
  /* Fiksna minimalna visina da sve izgledaju jednako */
  height: 100%;
  min-height: 280px; 
  
  transition: transform 0.3s ease;
  will-change: transform, opacity;
  position: relative;
  background-color: #fff; /* Osigurava da se ne proziru */
  z-index: 10;
}

.review-card:hover {
  transform: translateY(-3px);
  border-color: #c800a1;
}

.rev-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 12px;
  border-bottom: 1px dashed #eee;
  padding-bottom: 8px;
}

.rev-user { font-weight: 700; color: #333; }

.rev-product {
  display: flex;
  justify-content: space-between;
  font-family: 'Roboto Mono', monospace;
  font-size: 0.75rem;
  margin-bottom: 12px;
  color: #c800a1;
  font-weight: 600;
}

.rev-text {
  font-size: 0.9rem;
  color: #444;
  font-style: italic;
  line-height: 1.6;
  flex-grow: 1; /* Gura footer na dno */
  margin-bottom: 15px;
}

.rev-verify {
  font-size: 0.7rem;
  color: #10b981;
  font-weight: 700;
  text-transform: uppercase;
  text-align: right;
  margin-top: auto;
}

/* --- ANIMACIJE (Samo za JS promjene) --- */
.slide-out-up {
  animation: slideUpOut 0.6s forwards cubic-bezier(0.4, 0.0, 0.2, 1);
}

.slide-in-up {
  animation: slideUpIn 0.6s forwards cubic-bezier(0.4, 0.0, 0.2, 1);
}

@keyframes slideUpOut {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-50px); }
}

@keyframes slideUpIn {
  0% { opacity: 0; transform: translateY(50px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr; /* Jedna kolona na mobitelu */
  }
}

/* --- LICENSE PAGE STYLES --- */

.license-hero {
  text-align: center;
  padding: 4rem 1.5rem;
  background: radial-gradient(circle at center, #1a1d23 0%, #0b0e11 100%);
  border-bottom: 1px solid #333;
}

.license-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: -webkit-linear-gradient(45deg, #fff, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.license-subtitle {
  color: #c800a1;
  font-family: 'Roboto Mono', monospace;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.pricing-card {
  background: #15191e;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: #c800a1;
}

.tier-name { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; color: #fff; }
.tier-price { font-size: 2.5rem; font-weight: 700; color: #c800a1; margin-bottom: 1.5rem; font-family: 'Roboto Mono'; }
.tier-features { list-style: none; padding: 0; text-align: left; color: #ccc; font-size: 0.9rem; line-height: 1.8; margin-bottom: 2rem; }
.tier-features li::before { content: "✓ "; color: #10b981; font-weight: bold; }

.apply-btn {
  display: inline-block;
  background: #c800a1;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 5px;
  text-transform: uppercase;
  width: 100%;
  border: 1px solid #c800a1;
  transition: 0.3s;
}

.apply-btn:hover { background: transparent; color: #c800a1; }

/* Map Section */
.map-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 2px solid #333;
  padding-bottom: 10px;
  display: inline-block;
}

#world-map {
  height: 500px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #333;
  z-index: 1;
}

/* Suppliers Section */
.suppliers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 2rem auto 5rem auto;
  padding: 0 1.5rem;
}

.supplier-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid #eee;
}

.supplier-card h4 { margin-top: 0; color: #333; }
.supplier-link { color: #4f46e5; font-weight: 700; text-decoration: none; }

/* Table for Partners */
.partners-table-container {
  max-width: 800px;
  margin: 2rem auto;
  background: #15191e;
  border-radius: 8px;
  overflow: hidden;
}

.partners-table {
  width: 100%;
  border-collapse: collapse;
  color: #ccc;
  font-size: 0.9rem;
}

.partners-table th, .partners-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #333;
}

.partners-table th { background: #000; color: #c800a1; }
.status-active { color: #10b981; font-weight: bold; }

/* --- MOBILE OPTIMIZATIONS FOR LICENSE PAGE --- */
@media (max-width: 768px) {
  
  /* 1. Smanji mapu na mobitelu da se može skrolati */
  #world-map {
    height: 50vh !important; /* Na mobitelu pola ekrana, ne 3/4 */
    margin-bottom: 20px;
  }

  /* 2. Pretvorba TABLICE u KARTICE */
  .partners-table-container {
    background: transparent; /* Mičemo pozadinu kontejnera */
  }

  /* Sakrij zaglavlje tablice (Store, Location...) */
  .partners-table thead {
    display: none;
  }

  /* Svaki red postaje "Kartica" */
  .partners-table tr {
    display: block;
    background: #15191e;
    border: 1px solid #333;
    border-radius: 12px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }

  /* Svaka ćelija postaje red unutar kartice */
  .partners-table td {
    display: block;
    text-align: left;
    padding: 5px 0;
    border-bottom: none; /* Mičemo crte */
    font-size: 0.95rem;
  }

  /* Prva ćelija (Ime) neka bude velika i ljubičasta */
  .partners-table td:nth-of-type(1) {
    font-size: 1.2rem;
    color: #c800a1 !important;
    border-bottom: 1px solid #333;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }

  /* Zadnja ćelija (Status) neka bude boldana na dnu */
  .partners-table td:nth-of-type(4) {
    margin-top: 10px;
    background: rgba(255,255,255,0.05);
    padding: 5px 10px;
    border-radius: 4px;
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  /* 3. Popravak za Gridove (Suppliers i Pricing) */
  .pricing-grid, .suppliers-grid {
    grid-template-columns: 1fr !important; /* Jedan stupac */
    padding: 0 1rem;
  }
  
  .map-section {
    padding: 0 1rem !important;
    width: 100% !important;
  }
}