@import url('./app.css');
@import url('./form.css');
@import url('./header.css');
@import url('./movie.css');
@import url('./movies.css');
@import url('./navigation.css');

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

@media (max-width: 1080px) {
  html {
    font-size: 93.75%;
  }
}

@media (max-width: 720px) {
  html {
    font-size: 87.5%;
  }
}

:root {
  --primary: #fff;
  --linear: linear-gradient(154.23deg, #8B4513 -58.45%, #0CFFFF 374.49%);
}
body, button, textarea, input {
  color: var(--primary);
  font: 400 1rem "Montserrat", sans-serif;
}

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

button {
  border: 0;
}

button:hover {
  cursor: pointer;
}

.button-row {
  display: flex;
  gap: 15px;             /* button এর মধ্যে horizontal space */
  flex-wrap: wrap;        /* small screens এ line wrap হবে */
  justify-content: center; /* row কে horizontal center করবে */
  margin-top: 50px;
}

.play-button {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 28px;
  font-size: 20px;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  color: #fff;

  /* Gradient background */
  background: linear-gradient(90deg, #00c6ff, #0072ff);

  /* Slide-in animation */
  opacity: 0;
  transform: translateX(-60px);
  animation: slideIn 0.6s forwards;
  animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Hover transition */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.play-button img {
  width: 30px;
  height: 30px;
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 114, 255, 0.5);
}

/* Keyframes */
@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Staggered delay */
.button-row .play-button:nth-child(1) { animation-delay: 0.2s; }
.button-row .play-button:nth-child(2) { animation-delay: 0.4s; }
.button-row .play-button:nth-child(3) { animation-delay: 0.6s; }
.button-row .play-button:nth-child(4) { animation-delay: 0.8s; }
.button-row .play-button:nth-child(5) { animation-delay: 1s; }
.button-row .play-button:nth-child(6) { animation-delay: 1.2s; }
.button-row .play-button:nth-child(7) { animation-delay: 1.4s; }
.button-row .play-button:nth-child(8) { animation-delay: 1.6s; }

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.play-button {
  display: inline-flex;
  align-items: center;       /* vertical center */
  justify-content: center;   /* horizontal center */
  gap: 8px;                  /* space between icon and text */
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.5); /* semi-black background */
  color: #fff;
  text-decoration: none;     /* remove underline */
  border-radius: 8px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  transition: background 0.3s;
}

.play-button img {
  width: 24px;
  height: 24px;
}

.play-button:hover {
  background-color: rgba(0, 0, 0, 0.10); /* darken on hover */
}
.button-message {
  display: flex;
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
  width: 100%;
  font-weight: 700;
  font-size: 20px;
  color: #FFFF00;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px 0;
  margin-top: 1px;
  margin-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  border: 2px solid #000;
  text-align: center; /* Optional, Flexbox থাকলেও ঠিক থাকে */
}
/* Mobile first: 1 column */
@media (max-width: 480px) {
.button-row { flex-direction: column; gap: 10px; }
.play-button { font-size: 14px; padding: 10px 15px; }
.play-button img { width: 20px; height: 20px; }
.button-message { font-size: 14px; padding: 8px; }
}


/* Tablet: 2-3 columns */
@media (min-width: 481px) and (max-width: 1024px) {
.button-row { gap: 12px; }
.play-button { font-size: 15px; padding: 11px 18px; }
.play-button img { width: 22px; height: 22px; }
}


/* Desktop: 4 columns row */
@media (min-width: 1025px) {
.button-row { justify-content: center; }
.play-button { font-size: 16px; padding: 12px 20px; }
}
/* Glassmorphism Footer Base */
.footer {
  width: 100%;
  padding: 24px 20px 18px;
  margin-top: 40px;
  color: #f5f5f5;
  font-family: 'Montserrat', sans-serif;
  box-sizing: border-box;
}

/* Glass Effect Background */
.glass-footer {
  background: rgba(5, 5, 10, 0.85);          /* Dark transparent */
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(18px);               /* Glass blur */
  -webkit-backdrop-filter: blur(18px);
}

/* Content Layout */
.footer-inner {
  max-width: 1100px;
  margin: 0 auto 10px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* Brand part */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo {
  width: 70px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.7);
}

.footer-brand h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.footer-brand p {
  font-size: 12px;
  color: #b7b7b7;
}

/* Menu Links */
.footer-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 0;
  margin: 0;
}

.footer-menu li a {
  font-size: 13px;
  color: #cfcfcf;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-menu li a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* Bottom line */
.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  font-size: 11px;
  color: #9a9a9a;
}

.footer-note {
  opacity: 0.8;
}

/*---------------------------
  MOBILE RESPONSIVE FIXES
---------------------------*/

@media (max-width: 768px) {
  
  /* Main Image */
  .app__image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  /* Header */
  header {
    padding: 10px 15px;
  }

  header img {
    width: 110px;
  }

  .button__menu {
    display: block;
  }

  nav.navigation {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: #000000e8;
    padding: 20px;
    display: none;
    flex-direction: column;
  }

  nav.navigation.active {
    display: flex;
  }

  /* Banner Message */
  .button-message {
    padding: 10px;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
  }

  /* Movie Section */
  .feature__movie {
    padding: 15px;
    text-align: center;
  }

  .feature__movie h1 {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .feature__movie p {
    font-size: 14px;
  }

  /* Buttons Row */
  .button-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .play-button {
    padding: 8px 6px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .play-button img {
    width: 20px;
    margin-right: 6px;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
    margin-bottom: 10px;
  }

  .footer-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
}