/*
 Theme Name: MinoFlix
 Theme URI: https://minoflix.com
 Author: (Minoflix)
 Description: landing theme για MinoFlix IPTV
 Version: 1.0
*/

:root {
  --primary: #e50914;        /* Netflix red */
  --primary-hover: #f6121d;  /* brighter red */
  --bg: #000000;
  --bg-soft: #141414;
  --card: #181818;
  --text-main: #ffffff;
  --text-muted: #b3b3b3;
  --border: #333333;
  --accent: #46d369;         /* Netflix-style green */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.8);
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at top, #3d3d3d 0%, #000000 50%, #000000 100%);
  animation: bgShift 22s ease-in-out infinite alternate;
}

/* Animated background */
body::before {
  content: "";
  position: fixed;
  inset: -40px;
  background:
    radial-gradient(circle at 15% 20%, rgba(229, 9, 20, 0.35), transparent 55%),
    radial-gradient(circle at 80% 10%, rgba(229, 9, 20, 0.28), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(70, 211, 105, 0.18), transparent 60%),
    radial-gradient(circle at 10% 85%, rgba(229, 9, 20, 0.22), transparent 55%);
  opacity: 0.7;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 1)),
    repeating-linear-gradient(
      135deg,
      rgba(24, 24, 24, 0.9) 0px,
      rgba(24, 24, 24, 0.9) 1px,
      rgba(64, 64, 64, 0.15) 1px,
      rgba(24, 24, 24, 0.9) 3px
    );
  pointer-events: none;
  z-index: -1;
}

@keyframes bgShift {
  0% { background-position: 0% 0%; }
  50% { background-position: 50% 50%; }
  100% { background-position: 100% 0%; }
}

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

/* Layout */
header {
  position: sticky;
  min-height: 64px;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(0, 0, 0, 0.92);
  border-bottom: 1px solid rgba(51, 51, 51, 0.9);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo-text {
  font-weight: 800;
  font-size: 1.6rem; /* bigger logo */
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-mino {
  color: #ffffff;
}

.logo-flix {
  color: var(--primary);
  margin-left: 3px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  border-radius: 999px;
  padding: 2px;
  background: #141414;
  border: 1px solid #333333;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.lang-btn span.flag {
  font-size: 0.9rem;
}

.lang-btn-active {
  background: var(--primary);
  color: #ffffff;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 4px;
  padding: 10px 22px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(229, 9, 20, 0.45);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(229, 9, 20, 0.7);
}

.btn-ghost {
  background: rgba(51, 51, 51, 0.9);
  color: #ffffff;
  border: 1px solid #666666;
}

.btn-ghost:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 6.5fr) minmax(0, 5fr);
  gap: 32px;
  align-items: center;
  padding: 36px 0 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(24, 24, 24, 0.95);
  border: 1px solid #333333;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(70, 211, 105, 0.9);
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.3rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

.hero h1 span {
  color: var(--primary);
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 18px;
  font-size: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 14px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #141414;
  border: 1px solid #333333;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-screen {
  background: radial-gradient(circle at top, #262626, #000000 60%);
  border-radius: 24px;
  border: 1px solid #333333;
  padding: 18px 18px 12px;
  position: relative;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  isolation: isolate;
  transform-origin: center;
  animation: floatScreen 14s ease-in-out infinite alternate;
}

@keyframes floatScreen {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-0.4deg); }
  100% { transform: translateY(-2px) rotate(0.4deg); }
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.screen-dots {
  display: flex;
  gap: 4px;
}

.screen-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(89, 89, 89, 1);
}

.screen-dot:nth-child(1) { background: var(--primary); }
.screen-dot:nth-child(2) { background: #f5c518; }
.screen-dot:nth-child(3) { background: var(--accent); }

.channels-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  font-size: 0.8rem;
}

.channel-card {
  background: radial-gradient(circle at top left, rgba(250, 250, 250, 0.04), #141414);
  border-radius: 14px;
  padding: 9px;
  border: 1px solid #333333;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 66px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.channel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  border-color: var(--primary);
}

.channel-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.channel-name {
  font-size: 0.86rem;
  font-weight: 600;
}

.channel-pill {
  position: absolute;
  right: 7px;
  bottom: 7px;
  font-size: 0.64rem;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid #444444;
}

.screen-footer {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ping {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ping-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(70, 211, 105, 0.95);
}

/* Sections */
.section {
  margin-top: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.section-title {
  font-size: 1.4rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 440px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: #181818;
  border-radius: 16px;
  padding: 16px 16px 18px;
  border: 1px solid #333333;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.7);
  font-size: 0.9rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.card ul {
  list-style: none;
  margin-top: 8px;
}

.card ul li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.bullet {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  margin-top: 6px;
  background: #555555;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.price-card {
  background: #181818;
  border-radius: 18px;
  border: 1px solid #333333;
  padding: 18px 16px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  position: relative;
  overflow: hidden;
}

.price-card.popular {
  border-color: var(--primary);
}

.popular-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid var(--primary);
  color: #ff6b6b;
}

.price-plan {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.price-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.price-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.price-features {
  list-style: none;
  margin: 8px 0 12px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.price-features li {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.tick {
  font-size: 0.8rem;
  margin-top: 3px;
}

.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pay-pill {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #444444;
  background: #101010;
}

/* Devices */
.devices-grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 18px;
}

.devices-icons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  font-size: 0.8rem;
}

.device-pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: #141414;
  border: 1px solid #333333;
  text-align: center;
  color: var(--text-muted);
  white-space: nowrap;
}

/* TMDB carousel section */
.tmdb-carousel-wrapper {
  position: relative;
  margin-top: 12px;
}

.tmdb-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 2px 4px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.tmdb-carousel::-webkit-scrollbar {
  height: 6px;
}

.tmdb-carousel::-webkit-scrollbar-track {
  background: #141414;
}

.tmdb-carousel::-webkit-scrollbar-thumb {
  background: #555555;
  border-radius: 999px;
}

.tmdb-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #333333;
  background: #181818;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
  font-size: 0.7rem;
  display: flex;
  flex-direction: column;
  min-width: 135px;
  max-width: 150px;
  scroll-snap-align: start;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tmdb-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.95);
}

.tmdb-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tmdb-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  content-visibility: auto;
  contain-intrinsic-size: 300px 450px;
}

.tmdb-meta {
  padding: 6px 7px 7px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tmdb-title {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
  max-height: 2.2em;
  overflow: hidden;
}

.tmdb-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.tmdb-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.6rem;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid #444444;
  color: #e5e5e5;
}

.tmdb-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.tmdb-rating span {
  font-size: 0.65rem;
}

.tmdb-placeholder,
.tmdb-error {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 12px 0 4px;
}

.tmdb-logo-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.tmdb-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #01d277;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.95);
}

.tmdb-arrows {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  align-items: center;
}

.tmdb-arrow-btn {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid #555555;
  background: #141414;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
  color: #e5e5e5;
}

.tmdb-arrow-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Contact */
.contact-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 18px;
}

form {
  display: grid;
  gap: 10px;
}

label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

input, textarea, select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 4px;
  border: 1px solid #333333;
  background: #141414;
  color: var(--text-main);
  font-size: 0.88rem;
  outline: none;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(229, 9, 20, 0.7);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.contact-card {
  background: #181818;
  border-radius: 16px;
  padding: 14px 14px 16px;
  border: 1px solid #333333;
  font-size: 0.86rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.85);
}

.contact-row {
  margin-top: 8px;
}

.contact-row strong {
  font-size: 0.82rem;
}

footer {
  border-top: 1px solid #333333;
  padding: 18px 20px 26px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: #000000;
  margin-top: 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.legal {
  max-width: 540px;
}

/* Animations */
[data-fade] {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s ease forwards;
}

[data-fade="1"] { animation-delay: 0.05s; }
[data-fade="2"] { animation-delay: 0.12s; }
[data-fade="3"] { animation-delay: 0.18s; }
[data-fade="4"] { animation-delay: 0.24s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 980px) {
  .hero,
  .devices-grid,
  .contact-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-screen {
    order: -1;
  }
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
  }

  .pricing-grid,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .devices-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  main {
    padding-inline: 16px;
  }
}

@media (max-width: 580px) {
  .tmdb-card {
    min-width: 130px;
  }

  .logo-text {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .devices-icons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Accessibility & performance: respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
