/* Modern Design System */
:root {
  --primary: #43A047;    /* Minecraft green */
  --secondary: #222D32;  /* Dark background */
  --accent: #4CAF50;     /* Accent green */
  --background: #1C2A33; /* Dark background with slight blue tint */
  --surface: #263238;    /* Surface color */
  --text: #ECEFF1;       /* Light text */
  --text-secondary: #B0BEC5; /* Secondary text */
  --success: #66BB6A;    /* Success green */
  --danger: #F44336;     /* Red */
  --warning: #FDD835;    /* Yellow */
}

/* Global Styles */
body {
  background-color: var(--background);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

/* Modern Card Design */
.card {
  background: var(--surface);
  border: none;
  border-radius: 16px;
  transition: transform 0.2s ease-in-out;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
}

.card-body {
  padding: 1.5rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(to right, #1C2A33, #263238);
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('images/hero-pattern.svg') center/cover;
  opacity: 0.1;
}

/* Modern Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--primary);
  border: none;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Navigation */
.navbar {
  background: rgba(28, 42, 51, 0.95) !important;
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(76, 175, 80, 0.2);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  color: var(--text) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link:focus {
  color: var(--accent) !important;
}

.nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
}

/* Dropdown Menu Styling */
.dropdown-menu {
  background-color: var(--surface);
  border: 1px solid rgba(76, 175, 80, 0.2);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  padding: 0.75rem 0;
  margin-top: 0.5rem;
}

.dropdown-item {
  color: var(--text);
  padding: 0.6rem 1.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-item.active {
  background-color: var(--primary) !important;
  color: white !important;
}

.dropdown-item:hover, .dropdown-item:focus {
  background-color: rgba(76, 175, 80, 0.15);
  color: var(--accent);
}

.dropdown-toggle::after {
  margin-left: 0.4em;
  vertical-align: 0.15em;
}

/* Modern Features Cards */
.feature-card {
  background: linear-gradient(145deg, var(--surface), var(--background));
  border-radius: 24px;
  padding: 2rem;
  height: 100%;
  border-left: 4px solid var(--primary);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Mod Cards */
.mod-card {
  background: var(--surface);
  border-radius: 20px;
  border-bottom: 4px solid var(--primary);
}

.mod-card img {
  border-radius: 20px 20px 0 0;
  height: 240px;
  object-fit: cover;
}

.badge {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

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

.badge.bg-info {
  background-color: #039BE5 !important;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

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

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

/* Minecraft-Style Link */
a {
  color: #7CB342;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #9CCC65;
}

/* Accordion Styling */
.accordion-button {
  background-color: var(--surface) !important;
  color: var(--text) !important;
  border-left: 4px solid var(--primary);
}

.accordion-button:not(.collapsed) {
  background-color: rgba(76, 175, 80, 0.1) !important;
  color: var(--text) !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  box-shadow: none !important;
  border-color: var(--primary);
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ECEFF1'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

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

.animate-in {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Modern Grid Layout */
.grid-container {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Responsive Typography */
h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.2;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 2rem;
}

/* Modern Form Elements */
.form-control {
  background: var(--surface);
  border: 2px solid var(--secondary);
  border-radius: 12px;
  padding: 1rem;
  color: var(--text);
}

.form-control:focus {
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(67, 160, 71, 0.1);
  color: var(--text);
}

/* Footer Styling */
footer {
  background: var(--secondary);
  padding: 4rem 0;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent);
}

/* Text selection color */
::selection {
  background-color: rgba(76, 175, 80, 0.2);
  color: var(--text);
}

/* Mobile Navigation Fixes */
.navbar-toggler {
  border: 1px solid rgba(76, 175, 80, 0.5) !important;
  padding: 0.5rem;
  color: var(--text) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(76, 175, 80, 0.25) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(236, 239, 241, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Ensure mobile menu is fully visible */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: var(--secondary);
    border-radius: 0 0 16px 16px;
    padding: 1rem;
    margin-top: 0.5rem;
    border-top: 3px solid var(--primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }
  
  .navbar-nav {
    padding: 0.5rem 0;
  }
  
  .nav-item {
    border-bottom: 1px solid rgba(76, 175, 80, 0.1);
    padding: 0.25rem 0;
  }
  
  .nav-item:last-child {
    border-bottom: none;
  }
  
  .dropdown-menu {
    background-color: rgba(38, 50, 56, 0.8);
    border: 1px solid rgba(76, 175, 80, 0.2);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
  }
  
  .nav-item.ms-lg-3 {
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* Additional Mobile Fixes */
@media (max-width: 991.98px) {
  /* Fix padding for mobile screens */
  body {
    padding-top: 66px;
  }
  
  /* Fix for dropdown on mobile */
  .dropdown-menu {
    position: static !important;
    float: none;
    width: 100%;
    margin-top: 0;
    transform: none !important;
  }
  
  /* Ensure dropdown is visible */
  .nav-item.dropdown.show .dropdown-menu {
    display: block;
  }
  
  /* Improve mobile dropdown visibility */
  .dropdown-item {
    padding: 0.75rem 1rem;
    white-space: normal;
  }
  
  /* Fix padding on sections for mobile */
  section {
    padding: 3rem 0;
  }
  
  /* Ensure hero section has good spacing */
  .hero {
    padding: 80px 0 60px;
  }
  
  /* Make buttons more accessible on mobile */
  .btn {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
} 