/* Khotwa Student Council - Features Styles */

/* ========== Share Buttons ========== */
.share-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--ring);
  background: var(--card);
  color: var(--text);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.share-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.share-btn svg {
  flex-shrink: 0;
}

.share-twitter:hover {
  background: #1da1f2;
  border-color: #1da1f2;
}

.share-facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.share-whatsapp:hover {
  background: #25d366;
  border-color: #25d366;
}

.share-copy:hover {
  background: var(--muted);
  border-color: var(--muted);
}

/* ========== Search ========== */
.search-highlight {
  animation: highlight-fade 1s ease-out;
}

@keyframes highlight-fade {
  0% {
    background: rgba(30, 64, 175, 0.1);
  }
  100% {
    background: transparent;
  }
}

.search-results-msg {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--ring);
  border-radius: 0.5rem;
  text-align: center;
}

/* ========== Event Notification ========== */
.event-notification {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1000;
  max-width: 400px;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateX(120%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification-content {
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  position: relative;
}

.notification-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.notification-close:hover {
  color: var(--text);
}

.notification-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.notification-content p {
  margin: 0 0 1rem 0;
  color: var(--muted);
}

.btn-sm {
  padding: 0.5rem 0.8rem;
  font-size: 0.9rem;
}

/* ========== Calendar Button ========== */
.add-to-calendar {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.add-to-calendar svg {
  flex-shrink: 0;
}

/* ========== FAQ Section ========== */
.faq-section {
  margin: 2rem 0;
}

.faq-item {
  border: 1px solid var(--ring);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--card);
}

.faq-question {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--card);
  border: none;
  text-align: right;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(30, 64, 175, 0.05);
}

.faq-question[aria-expanded="true"] {
  background: rgba(30, 64, 175, 0.1);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.open {
  padding: 1rem 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 768px) {
  .event-notification {
    right: 10px;
    left: 10px;
    max-width: none;
  }
  
  .share-buttons {
    justify-content: center;
  }
  
  .share-btn span {
    display: none;
  }
  
  .share-btn {
    padding: 0.5rem;
  }
}

/* ========== RTL Support ========== */
[dir="rtl"] .event-notification {
  right: auto;
  left: 20px;
}

[dir="rtl"] .notification-close {
  right: auto;
  left: 0.5rem;
}

[dir="rtl"] .faq-question {
  text-align: right;
}

@media (max-width: 768px) {
  [dir="rtl"] .event-notification {
    left: 10px;
    right: 10px;
  }
}
