/* Modern check-ins section styles for venue.php */

/* Updated header styles for full-width layout */
.venue-checkins-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.venue-checkins-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

@media (max-width: 640px) {
  .venue-checkins-header h3 {
    font-size: 1.25rem;
  }
}

.checkins-count-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .checkins-count-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

.empty-state-card {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--light-gray);
  border-radius: 16px;
  border: 2px dashed var(--border);
}

@media (max-width: 640px) {
  .empty-state-card {
    padding: 2rem 1rem;
  }
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

@media (max-width: 640px) {
  .empty-icon {
    font-size: 2rem;
  }
}

.empty-state-card p {
  color: var(--gray);
  margin: 0.5rem 0;
}

.empty-subtitle {
  font-size: 0.875rem;
  color: var(--gray);
  opacity: 0.8;
}

/* Updated checkins feed for better responsive layout */
.checkins-feed {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .checkins-feed {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .checkins-feed {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.checkin-card-modern {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (max-width: 640px) {
  .checkin-card-modern {
    padding: 1rem;
    border-radius: 12px;
  }
}

.checkin-card-modern:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.15);
  transform: translateY(-2px);
}

.checkin-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .checkin-card-header {
    gap: 0.75rem;
  }
}

.checkin-user-link {
  text-decoration: none;
  flex-shrink: 0;
}

.checkin-avatar-modern {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  transition: transform 0.2s;
}

@media (max-width: 640px) {
  .checkin-avatar-modern {
    width: 40px;
    height: 40px;
  }
}

.checkin-avatar-modern:hover {
  transform: scale(1.1);
}

.checkin-user-details {
  flex: 1;
  min-width: 0;
}

.checkin-username {
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .checkin-username {
    font-size: 0.9375rem;
  }
}

.checkin-username:hover {
  color: var(--primary);
}

.checkin-timestamp {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray);
}

@media (max-width: 640px) {
  .checkin-timestamp {
    font-size: 0.75rem;
  }
}

.checkin-timestamp svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

.checkin-comment-modern {
  color: var(--dark);
  line-height: 1.6;
  margin-bottom: 1rem;
  word-break: break-word;
  overflow-wrap: break-word;
  font-size: 0.9375rem;
}

@media (max-width: 640px) {
  .checkin-comment-modern {
    font-size: 0.875rem;
  }
}

.checkin-photo-container {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}

.checkin-photo-modern {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s;
}

.checkin-photo-modern:hover {
  transform: scale(1.02);
}

.checkin-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.checkin-likes-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
  border-radius: 20px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .checkin-likes-modern {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }
}

.checkin-likes-modern svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .checkin-likes-modern svg {
    width: 16px;
    height: 16px;
  }
}

/* Mobile responsive for check-ins */
@media (max-width: 768px) {
  .venue-checkins-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .checkin-card-modern {
    padding: 1rem;
  }

  .checkin-avatar-modern {
    width: 40px;
    height: 40px;
  }

  .checkin-username {
    font-size: 0.9375rem;
  }
}

@media (max-width: 480px) {
  .venue-checkins-header h3 {
    font-size: 1.25rem;
  }

  .checkins-count-badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
  }

  .checkin-card-modern {
    padding: 0.875rem;
  }

  .empty-state-card {
    padding: 2rem 1rem;
  }

  .empty-icon {
    font-size: 2rem;
  }
}

/* Friend request badge animation */
.friend-request-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Improved friend request notification dropdown styling */
.friend-requests-section {
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  margin-bottom: 0;
  background: var(--light-gray);
}

.section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 1rem 0;
  padding: 0;
}

.friend-requests-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.friend-request-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--white);
  border-radius: 8px;
  transition: all 0.2s;
  border: 1px solid var(--border);
}

.friend-request-item:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
}

.request-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}

.request-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.request-name {
  font-weight: 600;
  color: var(--dark);
  margin: 0;
  font-size: 0.9375rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.request-name:hover {
  color: var(--primary);
}

.request-time {
  font-size: 0.75rem;
  color: var(--gray);
}

.request-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-accept,
.btn-reject {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Added pointer-events and z-index to ensure clickability */
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

.btn-accept {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.btn-accept:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

/* Added disabled state styling */
.btn-accept:disabled,
.btn-reject:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-reject {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.btn-reject:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

@media (max-width: 480px) {
  .friend-request-item {
    padding: 0.625rem 0.75rem;
  }

  .request-avatar {
    width: 36px;
    height: 36px;
  }

  .request-name {
    font-size: 0.875rem;
  }

  .btn-accept,
  .btn-reject {
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
  }
}

/* Footer modern styles */
.footer-modern {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  color: #e5e7eb;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-column h3 {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-description {
  color: #9ca3af;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

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

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

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.875rem;
}

.footer-made-with {
  margin-top: 0.5rem;
  color: #6b7280;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-modern {
    padding: 2rem 0 1rem;
  }
}

/* Venue photo delete button styles */
.venue-photo-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.delete-photo-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.venue-photo-wrapper:hover .delete-photo-btn {
  opacity: 1;
}

.delete-photo-btn:hover {
  background: rgba(220, 38, 38, 1);
  transform: scale(1.1);
}

.delete-photo-btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 768px) {
  .delete-photo-btn {
    opacity: 1;
    background: rgba(239, 68, 68, 0.8);
  }
}
