html {
  scroll-behavior: smooth;
}

:root {
  --primary: #0b4edb;
  --secondary: #22c55e;
  --accent: #38bdf8;
  --dark: #0f172a;
}

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

body {
  font-family: "Poppins", sans-serif;
  /* background: linear-gradient(120deg, #eaf2ff, #f8fafc); */
  background: #fff;
}

.actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* PARTICIPER BUTTON (OUTLINED) */
.action-btn.warning {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.action-btn.warning:hover {
  background: var(--primary);
  color: #ffffff;
}

.action-btn {
  text-decoration: none;
  /* 🔥 REMOVE UNDERLINE */
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

/* Dark button */
.action-btn.dark {
  color: #fff;
  background: #0d1b3f;
  border-color: #0d1b3f;
}

.action-btn.dark:hover {
  background: transparent;
  color: #0d1b3f;
}

/* Secondary button */
.action-btn.secondary {
  color: #0d1b3f;
  background: transparent;
  border: 2px solid #0d1b3f;
}

.action-btn.secondary:hover {
  background: #0d1b3f;
  color: #fff;
}

/* Icons */
.action-btn i {
  font-size: 16px;
}

/* ================= HERO ================= */
.page {
  display: flex;
  min-height: 100vh;
}

.image-section {
  flex: 1;
  background: url("../images/image1.png") center/contain no-repeat #fff;
}

.content-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px;
}

.content-card {
  background: #fff;
  border-radius: 22px;
  padding: 55px;
  max-width: 620px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
}

h1 {
  font-size: 44px;
  margin-bottom: 18px;
}

h1 span {
  color: var(--primary);
}

.subtitle {
  color: #475569;
  margin-bottom: 40px;
}

/* BUTTONS */
.actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-radius: 14px;
  border: 2px solid var(--accent);
  background: none;
  color: var(--accent);
  cursor: pointer;
  transition: 0.3s;
}

.action-btn:hover {
  background: var(--accent);
  color: #000;
}

.secondary {
  border-color: var(--secondary);
  color: var(--secondary);
}

.secondary:hover {
  background: var(--secondary);
  color: #fff;
}

.dark {
  border-color: #cbd5e1;
  color: #334155;
}

/* Container for share icons */
.project-actions .share {
  display: flex;
  gap: 10px; /* space between icons */
  margin-left: 10px;
}

/* Base style for icons */
.project-actions .share i {
  font-size: 20px;
  color: #555;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
}

/* WhatsApp icon style */
.project-actions .share i.fa-whatsapp {
  background-color: #25d366;
  color: white;
}

/* Facebook icon style */
.project-actions .share i.fa-facebook {
  background-color: #1877f2;
  color: white;
}

/* Hover effect for all share icons */
.project-actions .share i:hover {
  transform: scale(1.2);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Optional: show tooltip on hover */
.project-actions .share i::after {
  content: attr(data-title);
  position: absolute;
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 3px 6px;
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
}

.project-actions .share i:hover::after {
  opacity: 1;
}

/* ================= CLASSEMENT ================= */
.classement-section {
  padding: 80px 8%;
  background: #ffffff;
}

.classement-section h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.classement-section p {
  color: #64748b;
  margin-bottom: 35px;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rank-item {
  background: #f8fafc;
  border-radius: 16px;
  padding: 18px;
  display: grid;
  grid-template-columns: 2fr 3fr auto;
  align-items: center;
  gap: 20px;
}

.rank-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rank-user img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.rank-project {
  font-weight: 600;
}

.rank-owner {
  font-size: 13px;
  color: #64748b;
}

.rank-bar {
  height: 14px;
  background: #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
}

.rank-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.rank-votes {
  font-weight: 600;
  color: var(--secondary);
}

/* ================= PROJECTS ================= */
.projects-section {
  padding: 80px 8%;
}

.projects-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  background: #fff;
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.project-user img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.project-desc {
  color: #475569;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* FOOTER */
.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.vote-count {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #22c55e;
  font-size: 15px;
}

.project-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vote-btn {
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  background: #22c55e;
  color: #ffffff;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.vote-btn:hover {
  background: #16a34a;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .page {
    flex-direction: column;
  }

  .image-section {
    min-height: 40vh;
  }
}

@media (max-width: 768px) {
  .rank-item {
    grid-template-columns: 1fr;
  }

  .projects-header {
    flex-direction: column;
    gap: 15px;
  }
}

/* Vote count */
.vote-count-top {
  text-align: center;
  font-weight: 600;
  color: #ee0979;
  margin-bottom: 10px;
  font-size: 15px;
}

.vote-count-top i {
  margin-right: 6px;
}

/* Buttons row */
.project-actions-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.project-actions-row .action-btn {
  flex: 1;
  border: none;
  padding: 10px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
}

/* Individual button colors */
.vote-btn {
  background: linear-gradient(135deg, #ff512f, #dd2476);
  color: white;
}

.search-btn {
  background: #f1f1f1;
  color: #333;
}

.more-btn {
  background: #111;
  color: white;
}

.project-actions-row .action-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}
