* { box-sizing: border-box; margin: 0; padding: 0; }

/* Nature-inspired background with organic texture */
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: 
    /* Organic wood grain effect */
    repeating-linear-gradient(90deg, 
      transparent 0px, transparent 3px,
      rgba(101, 67, 33, 0.02) 3px, rgba(101, 67, 33, 0.02) 6px
    ),
    repeating-linear-gradient(0deg,
      transparent 0px, transparent 80px,
      rgba(139, 69, 19, 0.03) 80px, rgba(139, 69, 19, 0.03) 160px
    ),
    linear-gradient(135deg, #e8dcc4 0%, #d4c5a0 30%, #c9b995 70%, #bcaa88 100%);
  min-height: 100vh;
  color: #2c1810;
}

/* Nature-inspired navigation with organic borders */
nav {
  background: 
    linear-gradient(to bottom, #2d5016 0%, #4a7c2c 50%, #3d6623 100%);
  border-top: 5px solid #6b8e23;
  border-bottom: 5px solid #3e2723;
  padding: clamp(0.5rem, 1.5vw, 0.8rem) clamp(0.75rem, 2vw, 1.5rem);
  box-shadow: 
    0 4px 12px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.1);
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* Top organic border with leaf pattern suggestion */
nav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg, 
    #8b7355 0px, #8b7355 20px,
    #6b8e23 20px, #6b8e23 35px,
    #8b7355 35px, #8b7355 55px
  );
}

/* Bottom border with wood-like pattern */
nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(90deg, 
    #3e2723 0px, #3e2723 15px,
    #8b7355 15px, #8b7355 25px,
    #556b2f 25px, #556b2f 40px
  );
}

nav a {
  text-decoration: none;
  color: #fefefe;
  background: 
    linear-gradient(135deg, #8b7355 0%, #6d5d47 100%);
  border: 3px solid #a0826d;
  border-radius: 8px;
  padding: clamp(0.4rem, 1vw, 0.6rem) clamp(0.8rem, 2vw, 1.2rem);
  font-weight: 700;
  font-size: clamp(0.75rem, 1.8vw, 1rem);
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 
    0 4px 0 #3e2723,
    0 6px 12px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.15);
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}



nav a:hover {
  background: linear-gradient(135deg, #a0826d 0%, #8b7355 100%);
  border-color: #c4a57b;
  transform: translateY(-3px);
  box-shadow: 
    0 5px 0 #3e2723,
    0 8px 16px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

main {
  max-width: min(95vw, 1400px);
  margin: 1.5rem auto;
  padding: clamp(1rem, 3vw, 2rem);
  background: 
    repeating-linear-gradient(90deg,
      transparent 0px, transparent 5px,
      rgba(139, 115, 85, 0.02) 5px, rgba(139, 115, 85, 0.02) 10px
    ),
    #fffef8;
  border-radius: 12px;
  /* Wood-like border effect */
  border: 12px solid #6d5d47;
  box-shadow: 
    0 0 0 3px #a0826d,
    0 0 0 6px #3e2723,
    0 0 0 8px #8b7355,
    0 12px 35px rgba(0,0,0,0.4),
    inset 0 2px 4px rgba(139, 115, 85, 0.1);
  position: relative;
}



h1 {
  color: #3d5a27;
  margin-bottom: 1.2rem;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  text-align: center;
  text-shadow: 
    2px 2px 0px rgba(107, 142, 35, 0.3),
    3px 3px 8px rgba(0,0,0,0.2);
  font-family: 'Georgia', serif;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 5px solid #6b8e23;
  padding-bottom: 0.8rem;
  position: relative;
  background: linear-gradient(to right,
    transparent 0%,
    rgba(107, 142, 35, 0.05) 20%,
    rgba(107, 142, 35, 0.05) 80%,
    transparent 100%
  );
  padding-top: 0.8rem;
}



h2 {
  color: #556b2f;
  margin: 1.5rem 0 0.8rem;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  border-bottom: 3px solid #8b7355;
  border-left: 5px solid #6b8e23;
  padding-bottom: 0.5rem;
  padding-left: 1rem;
  font-family: 'Georgia', serif;
  font-weight: bold;
  background: linear-gradient(to right,
    rgba(107, 142, 35, 0.08) 0%,
    transparent 100%
  );
}

h3 {
  color: #6d5d47;
  margin: 1.2rem 0 0.8rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-family: 'Georgia', serif;
  border-left: 4px solid #a0826d;
  padding-left: 0.8rem;
}

.flashes {
  list-style: none;
  margin-bottom: 1.5rem;
}

.flashes li {
  background: linear-gradient(135deg, #c41e3a 0%, #8b1a1a 100%);
  color: white;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  border-radius: 0;
  border-left: 5px solid #ffd700;
  border-right: 5px solid #ffd700;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.slideshow {
  max-width: 100%;
  margin: 2rem auto;
  border-radius: 0;
  overflow: hidden;
  border: 8px solid #8b4513;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  height: clamp(250px, 50vw, 400px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slideshow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 4px solid #ffd700;
  pointer-events: none;
  z-index: 1;
}

.slideshow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

ul {
  list-style: none;
  padding: 0;
}

ul li {
  background: 
    linear-gradient(to right, #f5f0e0 0%, #e8dcc4 100%);
  margin: 0.8rem 0;
  padding: 0.9rem 1rem 0.9rem 2.8rem;
  border-radius: 10px;
  border-left: 5px solid #6b8e23;
  border-right: 3px solid #8b7355;
  transition: all 0.3s ease;
  color: #2c1810;
  box-shadow: 
    0 3px 8px rgba(0,0,0,0.15),
    inset 1px 1px 2px rgba(255,255,255,0.5);
  position: relative;
}

/* Leaf bullet point */
ul li::before {
  content: '🌿';
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  opacity: 0.8;
}

ul li:hover {
  background: linear-gradient(to right, #fcf8ed 0%, #f0e6d0 100%);
  transform: translateX(10px);
  border-left-width: 8px;
  box-shadow: 
    0 5px 12px rgba(0,0,0,0.25),
    inset 1px 1px 2px rgba(255,255,255,0.6);
}

ul li a {
  color: #8b4513;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.875rem, 2vw, 1rem);
}

ul li a:hover {
  color: #c41e3a;
}

form {
  background: 
    /* Wood panel texture */
    repeating-linear-gradient(90deg,
      transparent 0px, transparent 8px,
      rgba(109, 93, 71, 0.03) 8px, rgba(109, 93, 71, 0.03) 16px
    ),
    linear-gradient(to bottom, #f5f0e0 0%, #e8dcc4 100%);
  padding: clamp(1rem, 3vw, 2rem);
  border-radius: 10px;
  margin: 1.5rem 0;
  border: 8px solid #8b7355;
  box-shadow: 
    0 0 0 2px #a0826d,
    0 0 0 4px #6d5d47,
    0 8px 20px rgba(0,0,0,0.3),
    inset 0 2px 4px rgba(139, 115, 85, 0.1);
  position: relative;
}

form p {
  margin-bottom: 1rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  color: #2c1810;
  font-weight: 700;
  font-family: 'Georgia', serif;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 3px solid #8b7355;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: 
    repeating-linear-gradient(90deg,
      transparent 0px, transparent 10px,
      rgba(160, 130, 109, 0.02) 10px, rgba(160, 130, 109, 0.02) 20px
    ),
    #fffef8;
  font-family: 'Georgia', serif;
  box-shadow: 
    inset 0 2px 4px rgba(109, 93, 71, 0.1),
    0 1px 2px rgba(0,0,0,0.05);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #6b8e23;
  box-shadow: 
    0 0 0 3px rgba(107, 142, 35, 0.2),
    inset 0 2px 4px rgba(107, 142, 35, 0.05);
  background: #fff;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

button[type="submit"],
.btn {
  background: 
    linear-gradient(135deg, #6b8e23 0%, #556b2f 100%);
  color: white;
  padding: clamp(0.6rem, 1.5vw, 0.85rem) clamp(1.5rem, 4vw, 2.5rem);
  border: 4px solid #8b7355;
  border-radius: 12px;
  font-size: clamp(0.875rem, 2vw, 1rem);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 5px 0 #3e2723,
    0 7px 15px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  font-family: 'Georgia', serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

button[type="submit"]:hover,
.btn:hover {
  background: linear-gradient(135deg, #7fa72e 0%, #6b8e23 100%);
  border-color: #a0826d;
  transform: translateY(-4px);
  box-shadow: 
    0 6px 0 #3e2723,
    0 10px 20px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1rem;
}

.pagination a {
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 0;
  border: 2px solid #ffd700;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

.pagination a:hover {
  background: linear-gradient(135deg, #a0522d 0%, #cd853f 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.4);
}

.pagination span {
  color: #2c1810;
  font-weight: 700;
  font-family: 'Georgia', serif;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 8px solid #6d5d47;
  box-shadow: 
    0 0 0 2px #a0826d,
    0 0 0 4px #8b7355,
    0 6px 15px rgba(0,0,0,0.35),
    inset 0 2px 4px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

img:hover {
  transform: scale(1.02);
  box-shadow: 
    0 0 0 2px #c4a57b,
    0 0 0 4px #a0826d,
    0 8px 20px rgba(0,0,0,0.4),
    inset 0 2px 4px rgba(0,0,0,0.1);
}

.home-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

/* Countdown container - positioned in flow under "Vezi toti fermierii" button */
.countdown-container {
  margin-top: 1.5rem;
  background: repeating-linear-gradient(90deg, 
    transparent 0px, transparent 0.5rem,
    rgba(109, 93, 71, 0.03) 0.5rem, rgba(109, 93, 71, 0.03) 1rem
  ), linear-gradient(135deg, #6b8e23 0%, #556b2f 100%);
  color: white;
  padding: clamp(0.5rem, 1.5vw, 0.8rem) clamp(0.7rem, 2vw, 1rem);
  border-radius: 0.5rem;
  border: 0.25rem solid #8b7355;
  box-shadow: 
    0 0 0 0.0625rem #a0826d,
    0 0 0 0.125rem #6d5d47,
    0 0.25rem 0.75rem rgba(0,0,0,0.4),
    inset 0 0.0625rem 0 rgba(255,255,255,0.2);
  text-align: left;
  max-width: min(90%, 280px);
}

.countdown-title {
  font-size: clamp(0.65rem, 1.5vw, 0.75rem);
  font-weight: bold;
  margin-bottom: 0.4rem;
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0,0,0,0.5);
  font-family: Georgia, serif;
}

.countdown-timer {
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  font-weight: bold;
  font-family: Georgia, serif;
  text-shadow: 0.125rem 0.125rem 0.25rem rgba(0,0,0,0.5);
  background: rgba(255,255,255,0.1);
  padding: 0.5rem;
  border-radius: 0.375rem;
  border: 0.0625rem solid rgba(139, 115, 85, 0.4);
}

@media (max-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  
  nav {
    justify-content: center;
  }
  
  h1 {
    font-size: 1.8rem;
  }
}
