
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+Tamil:wght@400;500;600;700&display=swap');

/* =========================================
   MPR AI FILM FACTORY - COMPLETE STYLESHEET
   Theme: Midnight + Projector Gold
   ========================================= */

:root {
  --bg: #0b0f1a;
  --panel: #171d2a;
  --gold: #f2b134;
  --red: #ff3d5a;
  --white: #f4f1ea;
  --muted: #b9c0ce;
  --line: #30394a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: Inter, 'Noto Sans Tamil', sans-serif;
  line-height: 1.6;
}

img,
video,
iframe {
  max-width: 100%;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: #ffd06b;
}

h1,
h2,
h3,
h4 {
  color: var(--white);
  line-height: 1.3;
}

input,
select,
textarea,
button {
  font-family: inherit;
}

/* =========================================
   HEADER / NAVIGATION
   ========================================= */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px max(5%, calc((100% - 1180px) / 2));
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 26, 0.97);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: .4px;
  white-space: nowrap;
}

.brand b {
  color: var(--gold);
}

.brand-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--bg);
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar nav a {
  color: var(--white);
  font-size: 14px;
}

.topbar nav a:hover {
  color: var(--gold);
}

.topbar nav .lang {
  padding: 5px 10px;
  border: 1px solid var(--gold);
  border-radius: 8px;
}

/* =========================================
   PAGE LAYOUT
   ========================================= */

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 22px 60px;
}

.section-title {
  margin: 36px 0 18px;
  font-size: 27px;
}

.muted {
  color: var(--muted);
}

/* =========================================
   HOME PAGE / HERO
   ========================================= */

.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 35px;
  padding: 58px 0 48px;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.08;
}

.hero p {
  color: var(--muted);
}

.hero-art {
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 300px;
  padding: 26px;
  border: 1px solid #4b3c23;
  border-radius: 22px;
  background: radial-gradient(
    circle at 70% 20%,
    #5e3b21 0,
    #22202a 28%,
    #111725 68%
  );
  box-shadow: 0 20px 70px #0008;
}

.hero-art .film {
  color: var(--gold);
  font-size: 58px;
}

/* =========================================
   BUTTONS
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-radius: 9px;
  background: var(--gold);
  color: #111;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease;
}

.btn:hover {
  color: #111;
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(1px);
}

.btn.secondary {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold);
}

.btn.secondary:hover {
  background: var(--gold);
  color: #111;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* =========================================
   SERVICE / PACKAGE CARDS
   ========================================= */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 18px;
}

.card,
.panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.card h3 {
  margin: 8px 0;
  color: var(--white);
}

.card p {
  color: var(--muted);
  font-size: 14px;
}

.icon {
  color: var(--gold);
  font-size: 28px;
}

.price {
  color: var(--gold);
  font-size: 28px;
  font-weight: 800;
}

/* =========================================
   GENERAL FORMS / LOGIN / REGISTRATION
   ========================================= */

.form {
  width: 100%;
  max-width: 700px;
  margin: 20px auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.form label {
  display: block;
  margin: 14px 0 6px;
  font-weight: 600;
}

.form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.form select,
.form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #414b5d;
  border-radius: 8px;
  background: #0e1420;
  color: var(--white);
  font: inherit;
}

.form textarea {
  min-height: 120px;
  resize: vertical;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.form input[type="checkbox"],
.form input[type="radio"] {
  width: auto;
  margin-right: 8px;
}

.form button {
  font: inherit;
}

/* =========================================
   ADMIN PANELS - IMPORTANT
   ========================================= */

.panel {
  width: 100%;
}

.panel > h1:first-child {
  margin-top: 0;
}

.panel form {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.panel form label {
  display: block;
  width: 100%;
  margin: 14px 0 6px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.panel form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.panel form select,
.panel form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 44px;
  margin: 0 0 14px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e1420;
  color: var(--white);
  font: inherit;
}

.panel form textarea {
  min-height: 110px;
  resize: vertical;
}

.panel form input[type="file"] {
  height: auto;
  padding: 8px;
}

.panel form input[type="checkbox"],
.panel form input[type="radio"] {
  width: auto;
  margin-right: 8px;
}

.panel form input:focus,
.panel form select:focus,
.panel form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.panel form button {
  margin: 4px 0 12px;
}

.panel .grid {
  align-items: start;
}

.panel h1,
.panel h2,
.panel h3 {
  overflow-wrap: anywhere;
}

/* =========================================
   ADMIN SERVICE / PACKAGE FORMS
   Supports forms placed directly inside cards
   ========================================= */

.card form {
  display: block;
  width: 100%;
  min-width: 0;
}

.card form label {
  display: block;
  width: 100%;
  margin: 12px 0 6px;
  font-weight: 600;
}

.card form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.card form select,
.card form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 42px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e1420;
  color: var(--white);
  font: inherit;
}

.card form textarea {
  min-height: 100px;
  resize: vertical;
}

/* Keep hidden fields hidden */
form input[type="hidden"] {
  display: none !important;
}

/* =========================================
   ALERTS / NOTIFICATIONS
   ========================================= */

.notice {
  margin: 14px 0;
  padding: 12px 16px;
  border: 1px solid #2b8152;
  border-radius: 9px;
  background: #1b3a2c;
  color: var(--white);
}

.error {
  border-color: #a83b51;
  background: #421f2a;
}

/* =========================================
   TABLES / ORDER MANAGEMENT
   ========================================= */

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.table,
.panel table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td,
.panel table th,
.panel table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.table th,
.panel table th {
  color: var(--white);
  font-weight: 700;
}

.badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 30px;
  background: #26374d;
  color: var(--white);
  font-size: 12px;
}

/* =========================================
   EMPTY STATES
   ========================================= */

.empty {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 5%;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* =========================================
   ACCESSIBILITY
   ========================================= */

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  background: var(--gold);
  color: #111;
}

/* =========================================
   TABLET RESPONSIVE
   ========================================= */

@media (max-width: 800px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 5%;
  }

  .topbar nav {
    gap: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 30px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .container {
    padding: 22px 15px 40px;
  }

  .hero-art {
    min-height: 230px;
  }

  .footer {
    flex-direction: column;
  }
}

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 20px 14px 36px;
  }

  .form {
    padding: 18px;
  }

  .panel,
  .card {
    padding: 16px;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 44px);
  }

  .section-title {
    font-size: 23px;
  }

  .topbar nav {
    gap: 10px;
  }

  .topbar nav a {
    font-size: 13px;
  }

  .brand {
    white-space: normal;
    font-size: 14px;
  }

  .table th,
  .table td,
  .panel table th,
  .panel table td {
    padding: 9px;
    font-size: 12px;
  }

  .btn {
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  .topbar {
    padding: 12px;
  }

  .brand-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .panel,
  .card,
  .form {
    padding: 13px;
  }
}
