/* ===== OPINIONS SECTION ===== */
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

select:focus {
  outline: none;
  border-color: #2c3e50;
  box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.4);
}

.opinions-section {
  padding: 40px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 14px;
  color: #666;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
}

.sort-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sort-group label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.filter-btn {
  padding: 8px 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: #f1f5f9;
}

.filter-btn.active {
  background: #2c3e50;
  color: white;
  border-color: #2c3e50;
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}

.opinions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.opinion-card {
  background: white;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.opinion-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.opinion-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.opinion-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.opinion-content {
  padding: 20px;
}

.opinion-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #666;
}

.opinion-author {
  font-weight: 600;
  color: #2c3e50;
}

.opinion-date::before {
  content: "•";
  margin-right: 8px;
}



.opinion-excerpt {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.opinion-footer {
  display: flex;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.opinion-views {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.btn-read-more {
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
  text-decoration: none;
  transition: color 0.2s;
}

.btn-read-more:hover {
  color: #34495e;
}

.btn-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  color: #2c3e50;
  border: 1.5px solid #2c3e50;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-preview:hover {
  background: #2c3e50;
  color: white;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(44, 62, 80, 0.2);
}

.btn-preview svg {
  width: 14px;
  height: 14px;
}

/* ===== UPLOAD TABS ===== */
.upload-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  border-bottom: 2px solid #e5e7eb;
}

.upload-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: -2px;
}

.upload-tab:hover {
  color: #2c3e50;
  background: #f8f9fa;
}

.upload-tab.active {
  color: #2c3e50;
  border-bottom-color: #2c3e50;
  background: #f8f9fa;
}

.upload-tab svg {
  width: 18px;
  height: 18px;
}

.upload-form-container {
  display: none;
  animation: fadeIn 0.3s ease;
}

.upload-form-container.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== HAMBURGER MENU (MOBILE) ===== */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #2c3e50;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ===== NAV OVERLAY ===== */
.nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Hide close button on desktop */
.dropdown-close {
  display: none;
}

/* ===== MOBILE RESPONSIVE (MAX 768PX) ===== */
@media (max-width: 768px) {
  /* Opinions grid responsive */
  .filter-bar {
    flex-direction: column;
    gap: 16px;
  }

  .sort-group {
    width: 100%;
    justify-content: center;
  }

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

  /* Upload tabs responsive */
  .upload-tabs {
    flex-direction: column;
    gap: 8px;
  }

  .upload-tab {
    width: 100%;
    justify-content: center;
    border-bottom: none;
    border-left: 3px solid transparent;
  }

  .upload-tab.active {
    border-bottom: none;
    border-left-color: #2c3e50;
  }
}

