/* Home Page Specific Styles - Responsive Design */

/* ==================== CSS VARIABLES ==================== */
:root {
  --primary: #adff2f;
  --primary-hover: #9acd32;
  --primary-shadow: rgba(173, 255, 47, 0.4);
  --primary-light: #b8ff32;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-card: rgba(255, 255, 255, 0.05);
  --transition: all 0.3s ease;
  --transition-fast: all 0.2s ease;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --glow: 0 0 20px rgba(173, 255, 47, 0.3);
  --border-radius: 12px;
  --border-radius-small: 6px;
}

/* ==================== MAIN CONTENT SECTIONS ==================== */
.main-content {
  padding: 0;
  margin: 0;
}

.content-section {
  margin-bottom: 80px;
  padding: 0 60px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 0;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 15px;
}

.section-title i {
  color: var(--primary);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
}

.see-all-btn {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  white-space: nowrap;
}

.see-all-btn:hover {
  color: var(--primary-light);
}

/* ==================== MOVIE CARDS GRID ==================== */
.content-row {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
  scroll-behavior: smooth;
}

.content-row::-webkit-scrollbar {
  height: 8px;
}

.content-row::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

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

.content-row::-webkit-scrollbar-thumb:hover {
  background: var(--primary-hover);
}

.movie-card {
  min-width: 200px;
  height: 280px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.movie-card:hover {
  transform: scale(1.05);
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.movie-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s;
}

.movie-card:hover .movie-info {
  opacity: 1;
}

.movie-info h3 {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 600;
  margin: 0;
  color: white;
}

.movie-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

/* ==================== FOOTER ==================== */
.footer {
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
  color: var(--text-primary);
  padding: 60px 0 30px;
  margin-top: 100px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-section h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 15px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-section ul li a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  color: var(--text-secondary);
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: var(--primary);
  color: #000;
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==================== RESPONSIVE DESIGN ==================== */

/* Large Desktop */
@media (max-width: 1400px) {
  .content-section {
    padding: 0 40px;
  }
}

/* Desktop */
@media (max-width: 1200px) {
  .content-section {
    padding: 0 30px;
    margin-bottom: 60px;
  }
  
  .movie-card {
    min-width: 180px;
    height: 260px;
  }
}

/* Large Tablet */
@media (max-width: 1024px) {
  .content-section {
    padding: 0 25px;
    margin-bottom: 50px;
  }
  
  .section-header {
    margin-bottom: 25px;
  }
  
  .movie-card {
    min-width: 160px;
    height: 240px;
  }
  
  .footer-content {
    padding: 0 25px;
    gap: 30px;
  }
}

/* Tablet */
@media (max-width: 768px) {
  .content-section {
    padding: 0 20px;
    margin-bottom: 40px;
  }
  
  .section-header {
    margin-bottom: 20px;
  }
  
  .see-all-btn {
    font-size: 0.9rem;
  }
  
  .movie-card:hover {
    transform: none;
  }
  
  .movie-card:hover .movie-info {
    opacity: 1;
  }
  
  .movie-card {
    min-width: 150px;
    height: 220px;
  }
  
  .content-row {
    gap: 15px;
  }
  
  .footer-content {
    padding: 0 20px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .content-section {
    padding: 0 15px;
    margin-bottom: 30px;
  }
  
  .section-header {
    margin-bottom: 15px;
  }
  
  .see-all-btn {
    font-size: 0.85rem;
  }
  
  .movie-card:hover {
    transform: none;
  }
  
  .movie-info {
    opacity: 1;
  }
  
  .movie-card {
    min-width: 120px;
    height: 180px;
  }
  
  .content-row {
    gap: 12px;
  }
  
  .movie-info h3 {
    font-size: 0.85rem;
  }
  
  .footer {
    padding: 40px 0 20px;
    margin-top: 60px;
  }
  
  .footer-content {
    padding: 0 15px;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-section h3 {
    font-size: 1.3rem;
  }
  
  .footer-section h4 {
    font-size: 1.1rem;
  }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
  .content-section {
    padding: 0 10px;
    margin-bottom: 25px;
  }
  

  
  .movie-card {
    min-width: 110px;
    height: 160px;
  }
  
  .content-row {
    gap: 10px;
  }
  
  .footer-content {
    padding: 0 10px;
  }
}

/* Touch devices - reduce hover effects */
@media (hover: none) {
  .movie-card:hover {
    transform: none;
  }
  
  .movie-info {
    opacity: 1;
  }
  
  .social-links a:hover {
    transform: none;
  }
}

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

.content-section {
  animation: fadeInUp 0.6s ease-out;
}

.movie-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Focus styles for accessibility */
.movie-card:focus,
.see-all-btn:focus,
.social-links a:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
