/* Volunteers Page Styles */
:root {
  --primary: #1a73e8;
  --primary-light: rgba(26, 115, 232, 0.1);
  --primary-dark: #0d47a1;
  --secondary: #7c4dff;
  --accent: #00c853;
  --accent-light: rgba(0, 200, 83, 0.1);
  --text: #333333;
  --text-light: #666666;
  --light: #ffffff;
  --light-gray: #f5f5f5;
  --dark: #1d1d1d;
  --border: 1px solid rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  --radius: 12px;
  --radius-sm: 8px;
}

.volunteer-container {
  padding-top: 8vh;
  min-height: 90vh;
  background-color: var(--light-gray);
}

/* Hero Section */
.volunteer-hero {
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.9) 0%, rgba(124, 77, 255, 0.9) 100%), 
              url('images/volunteer-bg.jpg') center/cover no-repeat;
  color: white;
  padding: 6rem 2rem;
  text-align: center;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
}

.volunteer-hero h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease;
}

.volunteer-hero p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
  opacity: 0.9;
  line-height: 1.6;
  animation: fadeInUp 1s ease;
}

/* Tasks Section */
.volunteer-tasks-section {
  padding: 5rem 2rem;
  background-color: var(--light);
}

.tasks-container {
  max-width: 1200px;
  margin: 0 auto;
}

.tasks-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tasks-header h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.tasks-header p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.task-card {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: var(--border);
  position: relative;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: calc(var(--animation-order) * 0.1s);
  opacity: 0;
}

.task-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.task-header {
  background: var(--gradient);
  padding: 1.8rem;
  color: white;
  position: relative;
}

.task-header h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.task-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge-new {
  background: #2ecc71;
  color: white;
}

.badge-urgent {
  background: #e74c3c;
  color: white;
}

.badge-flexible {
  background: #3498db;
  color: white;
}

.task-body {
  padding: 1.8rem;
}

.task-info {
  margin-bottom: 1.5rem;
}

.task-info p {
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.task-location, .task-date, .task-spots {
  display: flex;
  align-items: center;
  margin-right: 1.8rem;
  margin-bottom: 0.8rem;
}

.task-location svg, .task-date svg, .task-spots svg {
  margin-right: 0.5rem;
  fill: var(--primary);
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.task-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.skill-tag {
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.skill-tag.matching {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent);
  font-weight: 600;
}

.skill-tag:hover {
  transform: translateY(-2px);
}

.task-apply-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.task-apply-btn svg {
  margin-right: 0.8rem;
}

.task-apply-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(26, 115, 232, 0.3);
}

.task-apply-btn.full {
  background: var(--text-light);
  cursor: not-allowed;
  box-shadow: none;
}

/* My Skills Section */
.my-skills-section {
  padding: 5rem 2rem;
  background-color: var(--light-gray);
}

.skills-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--light);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fadeInUp 0.8s ease;
}

.skills-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.skills-header h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.skills-header p {
  color: var(--text-light);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.skill-category {
  margin-bottom: 2rem;
}

.skill-category h3 {
  color: var(--primary);
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: 0.5rem;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.8rem;
}

.skill-checkbox {
  display: flex;
  align-items: center;
}

.skill-checkbox input {
  margin-right: 0.8rem;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.skill-checkbox label {
  color: var(--text);
  cursor: pointer;
}

#save-skills-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
  margin-top: 2rem;
}

#save-skills-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(26, 115, 232, 0.3);
}

/* My Applications Section */
.my-applications-section {
  padding: 5rem 2rem;
  background-color: var(--light);
}

.applications-container {
  max-width: 1200px;
  margin: 0 auto;
}

.applications-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.applications-header h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.applications-header p {
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.applications-table-container {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--light);
}

.applications-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.applications-table th,
.applications-table td {
  padding: 1.2rem 1rem;
  text-align: left;
}

.applications-table th {
  font-weight: 600;
  color: var(--text);
  background-color: var(--light-gray);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 10;
}

.applications-table tbody tr {
  transition: background-color 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.applications-table tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.application-status {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-pending {
  background: rgba(255, 152, 0, 0.15);
  color: #f57c00;
}

.status-approved {
  background: rgba(0, 200, 83, 0.15);
  color: #00c853;
}

.status-rejected {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
}

.status-completed {
  background: rgba(124, 77, 255, 0.15);
  color: var(--secondary);
}

.task-action-btn {
  background: var(--primary-light);
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-weight: 500;
}

.task-action-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.withdraw-btn {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
}

.withdraw-btn:hover {
  background: #f44336;
  color: white;
}

.details-btn {
  background: rgba(0, 200, 83, 0.1);
  color: #00c853;
}

.details-btn:hover {
  background: #00c853;
  color: white;
}

/* Application Modal */
.task-details {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--light-gray);
  border-radius: var(--radius);
}

.task-details h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

.task-details p {
  margin-bottom: 1rem;
  color: var(--text);
}

/* Footer Styling */
.footer {
  background: var(--dark);
  color: var(--light);
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.footer-section h3 {
  color: var(--light);
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  position: relative;
  display: inline-block;
}

.footer-section h3:after {
  content: '';
  position: absolute;
  width: 40px;
  height: 3px;
  background: var(--primary);
  left: 0;
  bottom: -0.5rem;
  border-radius: 2px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 0.75rem;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: var(--light);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 1.5rem;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Responsive */
@media screen and (max-width: 992px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .tasks-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .volunteer-hero h1 {
    font-size: 2.5rem;
  }
  
  .volunteer-hero p {
    font-size: 1.1rem;
  }
  
  .tasks-header h2,
  .skills-header h2,
  .applications-header h2 {
    font-size: 2rem;
  }
  
  .task-meta {
    flex-direction: column;
  }
  
  .task-meta > div {
    margin-bottom: 0.8rem;
    margin-right: 0;
  }
  
  .skills-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  
  .applications-table th, 
  .applications-table td {
    padding: 1rem 0.75rem;
    font-size: 0.9rem;
  }
  
  .application-status {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
  }
  
  .task-action-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .volunteer-tasks-section,
  .my-skills-section,
  .my-applications-section {
    padding: 3rem 1.5rem;
  }
  
  .skills-container {
    padding: 1.5rem;
  }
  
  .task-card {
    margin-bottom: 1rem;
  }
  
  .task-header,
  .task-body {
    padding: 1.5rem;
  }
  
  #save-skills-btn {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .volunteer-hero {
    padding: 4rem 1.5rem;
  }
  
  .volunteer-hero h1 {
    font-size: 2rem;
  }
  
  .tasks-grid {
    grid-template-columns: 1fr;
  }
  
  .skills-list {
    grid-template-columns: 1fr;
  }
  
  .task-skills {
    flex-wrap: wrap;
  }
  
  .skill-tag {
    margin-bottom: 0.5rem;
  }
  
  .applications-table-container {
    border-radius: 0;
  }
}

@media screen and (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.5rem 1.5rem;
  }
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}