/*
 * Mobile‑first stylesheet for Monika Ribic Designs
 */

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

body {
  font-family: system-ui, Arial, sans-serif;
  background-color: #0a0a0a;
  color: #f2f2f2;
  line-height: 1.5;
  padding-bottom: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Navigation */
nav {
  background-color: #111111;
  padding: 16px;
}

nav .logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #8bd75b;
  margin-bottom: 12px;
}

nav .nav-links {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

nav .nav-links li a {
  display: block;
  padding: 10px 12px;
  font-size: 1.1rem;
  color: #e5e5e5;
  background-color: #151515;
  border-radius: 4px;
}

nav .nav-links li a.active,
nav .nav-links li a:hover {
  background-color: #8bd75b;
  color: #0a0a0a;
}

/* Hero section */
.hero {
  padding: 24px 16px;
  text-align: center;
  background-color: #0f0f0f;
}

.hero img:not(.hero-logo) {
  width: 100%;
  max-width: 280px;
  border-radius: 8px;
  margin: 0 auto 16px auto;
  display: block;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #8bd75b;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #dcdcdc;
}

.tagline {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #c7c7c7;
}

.hero-logo {
  width: 70%;
  max-width: 280px;
  margin: 0 auto 16px auto;
  display: block;
}

.hero .btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
}

.btn-primary {
  background-color: #8bd75b;
  color: #0f0f0f;
}

.btn-secondary {
  background-color: transparent;
  color: #8bd75b;
  border: 2px solid #8bd75b;
}

/* General section styles */
section {
  padding: 32px 16px;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: #8bd75b;
  text-align: center;
}

/* Features */
.features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #0d0d0d;
}

.feature {
  background-color: #151515;
  padding: 16px;
  border-radius: 6px;
}

.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #8bd75b;
}

.feature p {
  font-size: 0.95rem;
  color: #c7c7c7;
}

/* Products */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-item {
  background-color: #151515;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
}

.product-item img {
  width: 100%;
  max-height: 80px;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  margin-bottom: 8px;
}

.product-item h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #f2f2f2;
}

.product-item .rating {
  font-size: 0.85rem;
  color: #ffd700;
  margin-bottom: 4px;
}

.product-item .price {
  font-size: 0.95rem;
  color: #8bd75b;
}

/* About page */
.about-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.about-intro img {
  width: 100%;
  max-width: 180px;
  border-radius: 6px;
}

.about-intro .about-text {
  text-align: left;
}

.about-intro h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: #8bd75b;
}

.about-intro p {
  font-size: 0.95rem;
  color: #c7c7c7;
  margin-bottom: 12px;
}

.experience-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.experience-item {
  background-color: #151515;
  padding: 12px;
  border-radius: 6px;
  text-align: center;
}

.experience-item img {
  width: 100%;
  max-width: 280px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.experience-item p {
  font-size: 0.9rem;
  color: #c7c7c7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

/* Service detail & tutorials */
.service-detail, .tutorials-section {
  background-color: #0d0d0d;
  padding: 32px 16px;
}

.service-grid, .tutorials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-item, .tutorial-item {
  background-color: #151515;
  padding: 16px;
  border-radius: 6px;
}

.service-item h3, .tutorial-item h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #8bd75b;
}

.service-item p, .tutorial-item p {
  font-size: 0.9rem;
  color: #c7c7c7;
  margin-bottom: 8px;
}

.price {
  font-size: 0.95rem;
  font-weight: bold;
  color: #8bd75b;
}

/* Contact */
.contact-details {
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: #c7c7c7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form label {
  font-size: 0.9rem;
  margin-bottom: 4px;
  color: #8bd75b;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: none;
  border-radius: 4px;
  background-color: #1a1a1a;
  color: #f2f2f2;
  font-size: 0.9rem;
}

.contact-form button {
  background-color: #8bd75b;
  color: #0f0f0f;
  border: none;
  padding: 12px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 1rem;
}

/* Donate */
.donate-options {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.donate-option {
  background-color: #151515;
  padding: 16px;
  border-radius: 6px;
  text-align: center;
}

.donate-option h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: #8bd75b;
}

.donate-option p {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: #c7c7c7;
}

.btc-address {
  background-color: #111111;
  padding: 12px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.85rem;
  color: #eaeaea;
  word-wrap: break-word;
}

/* Order note in shop */
.order-note {
  margin-top: 24px;
  text-align: center;
}
.order-note p {
  font-size: 0.9rem;
  color: #c7c7c7;
  margin-bottom: 12px;
}

/* Footer */
footer {
  background-color: #111111;
  padding: 12px 16px;
  font-size: 0.8rem;
  color: #888888;
  text-align: center;
  margin-top: auto; 
}

footer a {
  color: #8bd75b;
}

/* News section */
.news {
  background-color: #0d0d0d;
  padding: 24px 16px;
}

.news h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: #8bd75b;
}

.news-list {
  list-style: disc;
  margin-left: 20px;
  color: #c7c7c7;
  font-size: 0.9rem;
}

.news-list li {
  margin-bottom: 8px;
}

/* CTA section */
.cta {
  background-color: #151515;
  text-align: center;
  padding: 32px 16px;
}

.cta h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
  color: #8bd75b;
}

.cta p {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: #c7c7c7;
}

/* Hero Subpage */
.hero-subpage {
  background-color: #0f0f0f;
  padding: 40px 16px;
  text-align: center;
}

.hero-subpage h1 {
  font-size: 1.8rem;
  color: #8bd75b;
  margin-bottom: 8px;
}

.hero-subpage p {
  font-size: 0.95rem;
  color: #c7c7c7;
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================= */
/* POSODOBLJENI BLOG STYLES (3 V VRSTI)      */
/* ========================================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 stolpci na namizju */
  gap: 20px;
  padding: 30px 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.blog-card {
  background-color: #151515;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden; /* Da slika ne gleda čez robove */
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  border-color: #8bd75b;
  box-shadow: 0 15px 30px rgba(139, 215, 91, 0.2);
}

.blog-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card img {
  width: 100%;
  height: 200px; /* Fiksna višina za poravnavo kartic */
  object-fit: cover;
  display: block !important; /* Ponovno prikažemo slike */
}

.blog-card-content {
  padding: 20px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-date {
  font-size: 0.85rem;
  color: #8bd75b;
  font-weight: bold;
}

.blog-card h3 {
  font-size: 1.2rem;
  color: #f2f2f2;
  display: block !important; /* Ponovno prikažemo naslove */
}

.blog-card p {
  font-size: 0.9rem;
  color: #c7c7c7;
  line-height: 1.4;
  display: block !important; /* Ponovno prikažemo opis */
}

.blog-card .btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-block !important; /* Ponovno prikažemo gumbe */
}

/* Prilagoditev za tablice (2 v vrsti) */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Prilagoditev za telefone (1 v vrsti) */
@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}