/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --accent-color: #f093fb;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --text-muted: #a0aec0;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --transition: all 0.3s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: linear-gradient(135deg, #f3f7fd 0%, #e0f7fa 60%, #fff 100%);
  min-height: 100vh;
}

/* ===== NAVBAR STYLES ===== */
.navbar {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 60%, var(--accent-color) 100%) !important;
  box-shadow: var(--shadow-md);
  padding: 1rem 0;
}

.navbar-brand {
  font-weight: 700;
  color: white !important;
}

/* ===== LOGO STYLES ===== */
.logo {
  display: flex;
  align-items: center;
}

.sitename {
  color: white !important;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  margin: 0;
  padding: 0;
}

.sitename:hover {
  color: white !important;
  text-decoration: none;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem !important;
  position: relative;
  border-radius: var(--border-radius);
}

.nav-link:hover {
  color: white !important;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: white !important;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: #fbbf24;
  border-radius: 2px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 20px;
    opacity: 1;
  }
}

.dropdown-menu {
  border: none;
  box-shadow: var(--shadow-lg);
  border-radius: var(--border-radius);
}

.dropdown-item {
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: var(--light-color);
  transform: translateX(5px);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
  color: white;
  padding: 4rem 0;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CARD STYLES ===== */
.card {
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

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

.shadow-hover {
  transition: var(--transition);
}

.shadow-hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: 2rem;
}

.card-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ===== ICON WRAPPER ===== */
.icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  font-size: 1.5rem;
}

/* ===== BUTTON STYLES ===== */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: var(--transition);
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), #20c997);
}

.btn-info {
  background: linear-gradient(135deg, var(--info-color), #6f42c1);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning-color), #fd7e14);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
}

.btn-outline-danger {
  border: 2px solid var(--danger-color);
  color: var(--danger-color);
}

.btn-outline-danger:hover {
  background: var(--danger-color);
  color: white;
}

/* ===== FORUM STYLES ===== */
.post-card {
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.post-content {
  line-height: 1.6;
  color: var(--text-primary);
}

.post-content p {
  margin-bottom: 0;
  word-wrap: break-word;
}

.like-btn {
  transition: var(--transition);
}

.like-btn:hover {
  transform: scale(1.05);
}

.like-btn i.bi-heart-fill {
  color: var(--danger-color);
}

.list-group-item {
  border: none;
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.list-group-item:hover {
  background-color: var(--light-color);
  transform: translateX(5px);
}

.list-group-item.active {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  border: none;
}

.list-group-item.active:hover {
  transform: translateX(5px);
}

/* ===== ALERT STYLES ===== */
.alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.alert-success {
  background: #d1fae5;
  color: #065f46;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
}

.alert-warning {
  background: #fef3c7;
  color: #92400e;
}

.alert-info {
  background: #dbeafe;
  color: #1e40af;
}

/* ===== BADGE STYLES ===== */
.badge {
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
}

.badge.bg-primary {
  background: var(--primary-color) !important;
}

.badge.bg-info {
  background: var(--info-color) !important;
}

.badge.bg-success {
  background: var(--success-color) !important;
}

.badge.bg-warning {
  background: var(--warning-color) !important;
}

.badge.bg-danger {
  background: var(--danger-color) !important;
}

/* ===== ORGANIZATION CARD STYLES ===== */
.org-card {
  height: 100%;
  text-align: center;
}

.org-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
}

.org-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.org-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: justify;
}

.org-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  text-align: left;
}

.org-features li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.org-features li i {
  color: var(--success-color);
  margin-right: 0.5rem;
  font-size: 0.8rem;
}

/* ===== EVENT CARD STYLES ===== */
.event-card {
  height: 100%;
}

.event-image {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.event-card:hover .event-image img {
  transform: scale(1.05);
}

.event-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2rem;
}

.event-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.event-org {
  display: flex;
  align-items: center;
}

.event-org i {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

/* ===== STATS CARD STYLES ===== */
.stats-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.stats-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: white;
  font-size: 1.5rem;
}

.stats-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stats-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* ===== QUICK ACTIONS ===== */
.quick-actions {
  margin-bottom: 3rem;
}

/* ===== ORGANIZATION SECTION ===== */
.org-section {
  margin-bottom: 3rem;
}

/* ===== EVENT SECTION ===== */
.event-section {
  margin-bottom: 3rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .org-title {
    font-size: 1.1rem;
  }
  
  .stats-number {
    font-size: 2rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .sitename {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .org-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .icon-wrapper {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .sitename {
    font-size: 1rem;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

.pulse {
  animation: pulse 2s infinite;
}

.spin {
  animation: spin 1s linear infinite;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
} 