/*
Theme Name: Filmyfly
Theme URI: https://filmyfiy.live
Author: AI Developer
Author URI: https://filmyfiy.live
Description: Custom theme clone of Movies4u for Filmyfly
Version: 1.0
Text Domain: filmyfly
*/

:root {
  --bg-dark: #111111;
  --bg-nav: #1a1c20;
  --text-main: #ffffff;
  --text-muted: #aaaaaa;
  --accent-red: #DC143C;
  --accent-green: #32CD32;
  --accent-blue: #00BFFF;
  --accent-orange: #FFA500;
  --poster-border: #FFD700;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* Desktop Navbar */
.site-header {
  background-color: var(--bg-nav);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
}

.mobile-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
}

.mobile-menu-toggle, .mobile-search-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.site-title {
  font-size: 32px;
  font-weight: 900;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  letter-spacing: 1px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

.main-nav a {
  font-weight: bold;
  font-size: 15px;
  transition: color 0.3s;
}

.main-nav a:hover { color: var(--accent-orange); }

.search-container input {
  padding: 8px 15px;
  border-radius: 4px;
  border: 1px solid #444;
  background: #222;
  color: #fff;
  width: 250px;
}

/* Secondary Search Bar */
.secondary-search {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.secondary-search input {
  width: 100%;
  padding: 12px 20px;
  background: #222;
  border: 1px solid #444;
  color: #fff;
  border-radius: 4px;
  font-size: 16px;
}

/* Category Pills */
.category-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 15px 20px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.pill {
  background: var(--accent-red);
  color: #fff;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  transition: transform 0.2s, background 0.2s;
}

.pill:hover {
  transform: scale(1.05);
  background: #b01030;
}

/* Movie Grid */
.movie-grid-container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) { .movie-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .movie-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .movie-grid { grid-template-columns: repeat(2, 1fr); } }

.movie-card { display: flex; flex-direction: column; }

.movie-poster-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 140%;
  background: #222;
  border: 4px solid var(--poster-border);
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  overflow: hidden;
  transition: transform 0.3s;
}

.movie-poster-wrap:hover { transform: scale(1.03); }

.movie-poster-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

.movie-title {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    padding: 0;
  }
  .mobile-top-bar {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
  }
  .site-title { font-size: 24px; }
  .mobile-menu-toggle, .mobile-search-toggle { display: block; }
  
  .desktop-search { display: none; }
  
  .main-nav {
    width: 100%;
    display: none;
    background: #222;
    border-top: 1px solid #333;
  }
  .main-nav.active {
    display: block;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .main-nav a {
    display: block;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
  }
}