/* Projects & Events Page Specific Styles */

.page-header {
  background: var(--gradient-primary);
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/placeholder.svg?height=600&width=1920") center / cover;
  opacity: 0.1;
  z-index: 1;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

/* Calendar Styles */
.calendar-container {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.calendar-container:hover {
  border-color: var(--primary-pink);
  box-shadow: 0 15px 40px rgba(233, 30, 99, 0.2);
}

.calendar-grid {
  background: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: var(--gradient-primary);
}

.weekday {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  color: white;
  font-size: 0.9rem;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #dee2e6;
}

.calendar-day {
  background: white;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.calendar-day:hover {
  background: var(--light-pink);
  color: var(--primary-pink);
}

.calendar-day.other-month {
  color: #ccc;
  background: #f8f9fa;
}

.calendar-day.today {
  background: var(--primary-pink);
  color: white;
  font-weight: bold;
}

.calendar-day.has-event {
  background: var(--accent-purple);
  color: white;
}

.calendar-day.has-event::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
}

/* Announcements Styles */
.announcements-container {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  height: fit-content;
}

.announcements-container:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 15px 40px rgba(156, 39, 176, 0.2);
}

.announcement-item {
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 10px;
  background: var(--gradient-light);
  transition: all 0.3s ease;
  cursor: pointer;
}

.announcement-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(233, 30, 99, 0.2);
}

.announcement-date {
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem;
  border-radius: 8px;
  text-align: center;
  min-width: 50px;
  margin-right: 1rem;
  flex-shrink: 0;
}

.announcement-date .day {
  display: block;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1;
}

.announcement-date .month {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  margin-top: 2px;
}

.announcement-content h6 {
  color: var(--primary-pink);
  margin-bottom: 0.5rem;
}

/* Project Cards */
.project-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.project-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(233, 30, 99, 0.3);
  border-color: var(--primary-pink);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 250px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(233, 30, 99, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-content h5 {
  color: var(--primary-pink);
  margin-bottom: 1rem;
}

.project-date {
  color: var(--accent-purple);
  font-weight: 500;
}

.project-tags .badge {
  font-size: 0.75rem;
  padding: 0.4rem 0.8rem;
}

/* Project Detail Modal Styles */
.project-details-glass {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(233, 30, 99, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.project-details-glass h6 {
  color: var(--primary-pink);
  font-size: 1.1rem;
}

/* Event Modal in Calendar */
.event-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 1050;
  max-width: 500px;
  width: 90%;
}

.event-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    min-height: 50vh;
  }

  .page-header h1 {
    font-size: 2.5rem;
  }

  .calendar-container,
  .announcements-container {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }

  .calendar-day {
    padding: 0.5rem;
    min-height: 40px;
    font-size: 0.9rem;
  }

  .weekday {
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  .announcement-item {
    padding: 0.8rem;
  }

  .announcement-date {
    min-width: 40px;
    padding: 0.3rem;
  }

  .announcement-date .day {
    font-size: 1rem;
  }

  .project-card {
    margin-bottom: 2rem;
  }

  .project-image {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .calendar-days {
    gap: 0;
  }

  .calendar-day {
    padding: 0.3rem;
    min-height: 35px;
    font-size: 0.8rem;
  }

  .weekday {
    padding: 0.3rem;
    font-size: 0.7rem;
  }

  .announcement-content h6 {
    font-size: 0.9rem;
  }

  .announcement-content p {
    font-size: 0.8rem;
  }
}

/* Animation for project cards */
.project-card {
  animation: fadeInUp 0.6s ease-out;
}

.project-card:nth-child(1) {
  animation-delay: 0.1s;
}
.project-card:nth-child(2) {
  animation-delay: 0.2s;
}
.project-card:nth-child(3) {
  animation-delay: 0.3s;
}
.project-card:nth-child(4) {
  animation-delay: 0.4s;
}
.project-card:nth-child(5) {
  animation-delay: 0.5s;
}
.project-card:nth-child(6) {
  animation-delay: 0.6s;
}

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