/*
 * Netflix-Style WordPress Portal
 */

/* Custom variables */
:root {
  --netflix-black: #141414;
  --netflix-dark: #181818;
  --netflix-darker: #0f0f0f;
  --netflix-red: #e50914;
  --netflix-red-hover: #f40612;
  --netflix-gray: #808080;
  --netflix-light: #e5e5e5;
  --transition: all 0.3s ease;
}

/* Base structure */
body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--netflix-black);
  background-image: 
    linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 100%),
    radial-gradient(circle at center, #1a1a1a 0%, #0d0d0d 100%);
  color: var(--netflix-light);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(18, 18, 18, 0.8) 0%, rgba(18, 18, 18, 0.4) 30%, rgba(18, 18, 18, 0.8) 100%),
    url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMCIgaGVpZ2h0PSIxMCIgZmlsbD0iIzIyMiIgZmlsbC1vcGFjaXR5PSIwLjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjcGF0dGVybikiLz48L3N2Zz4=');
  z-index: -1;
}

.cover-container {
  max-width: 1400px;
}

/* Header */
.main-title {
  color: white;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  font-size: 2.5rem;
  text-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
  margin: 0;
  padding: 1rem 0;
}

/* Hero section */
.hero-section {
  padding: 3rem 1rem;
  text-align: center;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.7) 100%);
  border-radius: 10px;
  margin: 2rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(229, 9, 20, 0.1) 0%, transparent 50%);
  z-index: -1;
}

.display-4 {
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  background: linear-gradient(to right, white 0%, #ccc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #b3b3b3;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* CTA Buttons */
.btn-netflix-primary {
  background-color: var(--netflix-red);
  border: none;
  border-radius: 4px;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-netflix-primary:hover {
  background-color: var(--netflix-red-hover);
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.btn-netflix-outline {
  background-color: transparent;
  border: 2px solid white;
  border-radius: 4px;
  color: white;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition);
}

.btn-netflix-outline:hover {
  background-color: white;
  color: var(--netflix-black);
  transform: scale(1.05);
}

/* Section titles */
.section-title {
  color: white;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 4px;
  background: var(--netflix-red);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--netflix-gray);
  font-size: 1rem;
  margin-top: 1rem;
}

/* Resources grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Resource cards */
.resource-card {
  background: var(--netflix-dark);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.resource-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
  border-color: var(--netflix-red);
}

.resource-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.2) 0%, transparent 100%);
  z-index: 0;
}

.card-content {
  padding: 1.5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.card-title {
  color: white;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.card-description {
  color: var(--netflix-gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.btn-card {
  background-color: var(--netflix-red);
  border: none;
  border-radius: 4px;
  color: white;
  font-weight: 600;
  padding: 0.5rem 1rem;
  transition: var(--transition);
}

.btn-card:hover {
  background-color: var(--netflix-red-hover);
  transform: translateY(-2px);
}

/* Student projects section */
.student-projects-section {
  margin: 4rem 0;
}

/* Student grid */
.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0;
}

/* Student cards */
.student-card {
  background: var(--netflix-dark);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.student-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  border-color: rgba(229, 9, 20, 0.5);
}

.student-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--netflix-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.student-card:hover::before {
  transform: scaleX(1);
}

.student-info {
  padding: 1.5rem;
  text-align: center;
  width: 100%;
}

.student-name {
  color: white;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  word-break: break-all;
}

/* Student buttons */
.btn-student, .btn-student-admin {
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
  font-weight: 600;
  font-size: 0.8rem;
  transition: var(--transition);
  border: none;
}

.btn-student {
  background-color: var(--netflix-red);
  color: white;
  margin: 0 0.25rem;
}

.btn-student:hover {
  background-color: var(--netflix-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn-student-admin {
  background-color: #333;
  color: white;
  margin: 0 0.25rem;
}

.btn-student-admin:hover {
  background-color: #444;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Additional content styling */
.additional-content {
  background: var(--netflix-dark);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.additional-content h3 {
  color: white;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.additional-content h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--netflix-red);
  border-radius: 2px;
}

.additional-content h4 {
  color: white;
  font-weight: 600;
  margin: 1.5rem 0 1rem 0;
}

.additional-content p {
  color: var(--netflix-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.additional-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.additional-content .list-group-item {
  background-color: var(--netflix-darker);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--netflix-light);
  margin-bottom: 0.5rem;
  border-radius: 4px !important;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem !important;
}

footer p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: var(--netflix-gray);
}

footer a {
  color: var(--netflix-gray);
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: white;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .resources-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .cover-container {
    padding: 0 1rem;
  }
  
  .main-title {
    font-size: 1.8rem;
  }
  
  .display-4 {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .resources-grid {
    grid-template-columns: 1fr;
  }
  
  .student-grid {
    grid-template-columns: 1fr;
  }
  
  .additional-content {
    padding: 1.5rem;
  }
  
  .cta-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-netflix-primary, .btn-netflix-outline {
    width: 80%;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 1.5rem 0.5rem;
  }
  
  .card-content {
    padding: 1rem;
  }
  
  .student-info {
    padding: 1rem;
  }
}
