/* =========================================================
   GREEN SERIES
   Premium Urdu Novel Website
   Main Stylesheet
========================================================= */


/* =========================================================
   RESET
========================================================= */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #06110b;
  color: #f4f7f5;
  line-height: 1.6;
  overflow-x: hidden;
}

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

button,
input {
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}


/* =========================================================
   GLOBAL
========================================================= */

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.section {
  padding: 75px 0;
}

.section-dark {
  background: #08170f;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: rgba(5, 17, 10, 0.96);

  border-bottom: 1px solid rgba(117, 227, 154, 0.12);

  backdrop-filter: blur(15px);
}

.navbar {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 25px;
}


/* =========================================================
   BRAND
========================================================= */

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

.brand-logo {
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: linear-gradient(
    135deg,
    #7ff0a5,
    #2fae60
  );

  color: #031008;

  font-size: 18px;
  font-weight: 900;

  box-shadow:
    0 0 25px rgba(76, 220, 125, 0.25);
}

.brand-text h1 {
  margin: 0;

  font-size: 20px;
  line-height: 1.2;

  color: #ffffff;
}

.brand-text span {
  display: block;

  margin-top: 3px;

  font-size: 11px;

  color: #8eaa98;
}


/* =========================================================
   NAVIGATION
========================================================= */

.nav-menu {
  display: flex;
  align-items: center;

  gap: 30px;
}

.nav-link {
  position: relative;

  padding: 27px 0;

  color: #b8c7be;

  font-size: 14px;
  font-weight: 600;

  transition: 0.25s;
}

.nav-link:hover,
.nav-link.active {
  color: #7fe7a2;
}

.nav-link::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: 19px;

  width: 0;
  height: 2px;

  border-radius: 20px;

  background: #6fe79a;

  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-button {
  display: none;

  width: 42px;
  height: 42px;

  border: 1px solid #1f4a31;

  border-radius: 10px;

  background: #0d2116;

  color: #ffffff;

  font-size: 22px;

  cursor: pointer;
}


/* =========================================================
   HERO
========================================================= */

.hero-section {
  padding: 55px 0 35px;

  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(57, 197, 103, 0.14),
      transparent 35%
    ),
    radial-gradient(
      circle at 10% 90%,
      rgba(37, 130, 71, 0.12),
      transparent 35%
    );
}

.hero-card {
  position: relative;

  min-height: 470px;

  display: grid;

  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(280px, 0.75fr);

  align-items: center;

  gap: 30px;

  padding: 60px;

  overflow: hidden;

  border:
    1px solid
    rgba(108, 228, 149, 0.15);

  border-radius: 28px;

  background:
    linear-gradient(
      135deg,
      #0b2818,
      #08170f 55%,
      #06110b
    );

  box-shadow:
    0 30px 80px
    rgba(0, 0, 0, 0.3);
}

.hero-card::before {
  content: "";

  position: absolute;

  width: 400px;
  height: 400px;

  right: -120px;
  top: -170px;

  border-radius: 50%;

  background:
    rgba(65, 218, 117, 0.08);

  filter: blur(5px);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-label,
.section-label {
  display: inline-block;

  margin-bottom: 12px;

  color: #69dc91;

  font-size: 12px;
  font-weight: 800;

  letter-spacing: 2px;
}

.hero-content h2 {
  max-width: 650px;

  margin: 0 0 20px;

  font-size: clamp(
    40px,
    6vw,
    70px
  );

  line-height: 1.05;

  letter-spacing: -2px;

  color: #ffffff;
}

.hero-content h2 span {
  color: #73e69b;
}

.hero-content > p {
  max-width: 620px;

  margin: 0 0 10px;

  color: #aec0b5;

  font-size: 17px;
}

.hero-author {
  color: #dce8e0 !important;

  font-size: 14px !important;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  align-items: center;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 30px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
  min-height: 48px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 12px 24px;

  border-radius: 12px;

  font-size: 14px;
  font-weight: 800;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #041009;

  background:
    linear-gradient(
      135deg,
      #81eea6,
      #49cc78
    );

  box-shadow:
    0 10px 30px
    rgba(63, 205, 112, 0.2);
}

.btn-primary:hover {
  box-shadow:
    0 14px 35px
    rgba(63, 205, 112, 0.32);
}

.btn-outline {
  color: #d7e6dc;

  border:
    1px solid
    rgba(126, 229, 160, 0.3);

  background:
    rgba(255, 255, 255, 0.02);
}

.btn-outline:hover {
  background:
    rgba(117, 227, 154, 0.08);
}


/* =========================================================
   HERO LOGO
========================================================= */

.hero-decoration {
  position: relative;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-circle {
  position: relative;

  width: 260px;
  height: 260px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(121, 237, 160, 0.25);

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      #174c2b,
      #0a1e12 68%
    );

  box-shadow:
    0 0 80px
    rgba(52, 211, 105, 0.18),
    inset 0 0 50px
    rgba(83, 225, 131, 0.08);
}

.hero-circle::before {
  content: "";

  position: absolute;

  inset: 17px;

  border:
    1px dashed
    rgba(111, 230, 151, 0.25);

  border-radius: 50%;
}

.hero-circle span {
  font-size: 75px;
  font-weight: 900;

  letter-spacing: -7px;

  color: #75e39a;

  text-shadow:
    0 0 30px
    rgba(92, 229, 139, 0.35);
}


/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading {
  display: flex;

  align-items: flex-end;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 0;

  font-size: 30px;

  color: #ffffff;
}

.section-heading .section-label {
  margin-bottom: 4px;
}

.view-all {
  color: #74df98;

  font-size: 13px;
  font-weight: 700;

  transition: 0.2s;
}

.view-all:hover {
  color: #a2f1bd;
}


/* =========================================================
   CATALOGUE CARDS
========================================================= */

.catalogue-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;
}

.catalogue-card {
  min-height: 125px;

  display: flex;
  align-items: center;

  gap: 18px;

  padding: 24px;

  border:
    1px solid
    rgba(126, 224, 159, 0.11);

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      #0c2115,
      #09180f
    );

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.catalogue-card:hover {
  transform: translateY(-5px);

  border-color:
    rgba(114, 228, 152, 0.35);

  box-shadow:
    0 18px 40px
    rgba(0, 0, 0, 0.2);
}

.catalogue-icon {
  flex: 0 0 65px;

  width: 65px;
  height: 65px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 15px;

  background:
    linear-gradient(
      135deg,
      #1b6035,
      #0d311d
    );

  color: #81eca5;

  font-size: 27px;
  font-weight: 900;
}

.catalogue-card h3 {
  margin: 0 0 5px;

  color: #ffffff;

  font-size: 18px;
}

.catalogue-card p {
  margin: 0;

  color: #8faa98;

  font-size: 16px;
}


/* =========================================================
   NOVEL GRID
========================================================= */

.novel-grid {
  display: grid;

  grid-template-columns:
    repeat(5, minmax(0, 1fr));

  gap: 20px;
}


/* =========================================================
   NOVEL CARD
   Ready for Supabase
========================================================= */

.novel-card {
  position: relative;

  overflow: hidden;

  border:
    1px solid
    rgba(124, 223, 158, 0.1);

  border-radius: 16px;

  background: #0b1d13;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.novel-card:hover {
  transform: translateY(-6px);

  border-color:
    rgba(117, 227, 154, 0.35);

  box-shadow:
    0 20px 45px
    rgba(0, 0, 0, 0.25);
}

.novel-cover {
  position: relative;

  width: 100%;
  aspect-ratio: 2 / 3;

  overflow: hidden;

  background: #10251a;
}

.novel-cover img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 0.35s ease;
}

.novel-card:hover
.novel-cover img {
  transform: scale(1.04);
}

.novel-badge {
  position: absolute;

  top: 10px;
  right: 10px;

  padding: 5px 9px;

  border-radius: 7px;

  background:
    rgba(4, 15, 8, 0.88);

  color: #78e69d;

  font-size: 10px;
  font-weight: 800;
}

.novel-info {
  padding: 14px;
}

.novel-info h3 {
  margin: 0 0 5px;

  overflow: hidden;

  color: #ffffff;

  font-size: 15px;

  white-space: nowrap;

  text-overflow: ellipsis;
}

.novel-info p {
  margin: 0;

  color: #8da397;

  font-size: 12px;
}

.novel-price {
  display: block;

  margin-top: 9px;

  color: #72e098;

  font-size: 13px;
  font-weight: 800;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
  grid-column: 1 / -1;

  min-height: 190px;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  padding: 30px;

  border:
    1px dashed
    rgba(118, 223, 153, 0.2);

  border-radius: 18px;

  background:
    rgba(18, 51, 31, 0.18);

  text-align: center;
}

.empty-icon {
  margin-bottom: 10px;

  font-size: 35px;
}

.empty-state p {
  color: #8fa599;

  font-size: 14px;
}


/* =========================================================
   APP CARD
========================================================= */

.app-card {
  min-height: 310px;

  display: grid;

  grid-template-columns:
    1.2fr 0.8fr;

  align-items: center;

  gap: 30px;

  padding: 50px;

  overflow: hidden;

  border:
    1px solid
    rgba(119, 225, 154, 0.16);

  border-radius: 25px;

  background:
    linear-gradient(
      135deg,
      #0d2d1b,
      #08170f
    );
}

.app-card-content {
  max-width: 650px;
}

.app-card-content h2 {
  margin: 0 0 15px;

  color: #ffffff;

  font-size: 35px;
}

.app-card-content p {
  max-width: 600px;

  margin: 0 0 20px;

  color: #9db0a4;
}

.app-card-logo {
  display: flex;

  align-items: center;
  justify-content: center;
}

.large-logo {
  width: 160px;
  height: 160px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      #21633a,
      #0c2617
    );

  color: #7be7a0;

  font-size: 48px;
  font-weight: 900;

  box-shadow:
    0 0 70px
    rgba(73, 215, 120, 0.18);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
  padding: 60px 0 20px;

  border-top:
    1px solid
    rgba(115, 223, 151, 0.1);

  background: #040d08;
}

.footer-grid {
  display: grid;

  grid-template-columns:
    2fr 1fr 1fr;

  gap: 50px;

  padding-bottom: 45px;
}

.footer-brand h2 {
  margin: 0 0 8px;

  color: #ffffff;

  font-size: 24px;
}

.footer-brand p {
  margin: 0;

  color: #82978b;

  font-size: 13px;
}

.footer-links {
  display: flex;

  flex-direction: column;

  gap: 9px;
}

.footer-links h3 {
  margin: 0 0 8px;

  color: #ffffff;

  font-size: 14px;
}

.footer-links a {
  color: #82978b;

  font-size: 13px;

  transition: 0.2s;
}

.footer-links a:hover {
  color: #74e099;
}

.footer-bottom {
  padding-top: 20px;

  border-top:
    1px solid
    rgba(255, 255, 255, 0.06);

  text-align: center;
}

.footer-bottom p {
  margin: 0;

  color: #718278;

  font-size: 12px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

  .nav-menu {
    gap: 18px;
  }

  .hero-card {
    padding: 45px;

    grid-template-columns:
      1fr 300px;
  }

  .hero-circle {
    width: 220px;
    height: 220px;
  }

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

}


/* =========================================================
   MOBILE / SMALL TABLET
========================================================= */

@media (max-width: 820px) {

  .navbar {
    min-height: 70px;
  }

  .menu-button {
    display: block;
  }

  .nav-menu {
    position: absolute;

    top: 70px;
    left: 4%;
    right: 4%;

    display: none;
    flex-direction: column;
    align-items: stretch;

    gap: 0;

    padding: 10px;

    border:
      1px solid
      rgba(116, 225, 152, 0.15);

    border-radius: 14px;

    background: #07160e;

    box-shadow:
      0 20px 40px
      rgba(0, 0, 0, 0.35);
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    padding: 13px 14px;

    border-radius: 8px;
  }

  .nav-link:hover {
    background:
      rgba(115, 227, 153, 0.06);
  }

  .nav-link::after {
    display: none;
  }


  .hero-card {
    min-height: auto;

    grid-template-columns: 1fr;

    padding: 45px 30px;

    text-align: center;
  }

  .hero-content > p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-decoration {
    margin-top: 20px;
  }

  .hero-circle {
    width: 190px;
    height: 190px;
  }

  .hero-circle span {
    font-size: 55px;
  }


  .catalogue-grid {
    grid-template-columns: 1fr;
  }

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


  .app-card {
    grid-template-columns: 1fr;

    padding: 40px 30px;

    text-align: center;
  }

  .app-card-content {
    margin: auto;
  }


  .footer-grid {
    grid-template-columns:
      1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

  .container {
    width: 92%;
  }

  .section {
    padding: 55px 0;
  }


  .brand-logo {
    width: 40px;
    height: 40px;

    font-size: 15px;
  }

  .brand-text h1 {
    font-size: 17px;
  }

  .brand-text span {
    font-size: 9px;
  }


  .hero-section {
    padding-top: 25px;
  }

  .hero-card {
    padding: 40px 20px;

    border-radius: 20px;
  }

  .hero-content h2 {
    font-size: 40px;

    letter-spacing: -1px;
  }

  .hero-content > p {
    font-size: 14px;
  }


  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }


  .section-heading {
    align-items: center;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .view-all {
    font-size: 11px;
  }


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

    gap: 12px;
  }


  .novel-info {
    padding: 11px;
  }

  .novel-info h3 {
    font-size: 13px;
  }


  .app-card {
    padding: 35px 20px;

    border-radius: 20px;
  }

  .app-card-content h2 {
    font-size: 27px;
  }

  .large-logo {
    width: 125px;
    height: 125px;

    font-size: 38px;
  }


  .footer-grid {
    grid-template-columns: 1fr;

    gap: 30px;
  }

  .footer-brand {
    grid-column: auto;
  }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

  .hero-content h2 {
    font-size: 34px;
  }

  .novel-grid {
    grid-template-columns: 1fr 1fr;
  }

}
/* =========================================================
   FOOTER DESIGNER CREDIT
========================================================= */

.designer-credit {
  margin-top: 8px !important;
  color: #718278;
  font-size: 12px;
}

.designer-button {
  padding: 0;
  margin-left: 4px;

  border: none;
  outline: none;

  background: transparent;

  color: #75e39a;

  font-size: 12px;
  font-weight: 700;

  cursor: pointer;

  transition: 0.2s;
}

.designer-button:hover {
  color: #a0f1bc;
  text-decoration: underline;
}


/* =========================================================
   DESIGNER POPUP
========================================================= */

.designer-modal {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  visibility: hidden;
  opacity: 0;

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.designer-modal.active {
  visibility: visible;
  opacity: 1;
}


/* Background Overlay */

.designer-modal-overlay {
  position: absolute;

  inset: 0;

  background:
    rgba(0, 0, 0, 0.78);

  backdrop-filter: blur(8px);
}


/* Popup Card */

.designer-modal-card {
  position: relative;
  z-index: 2;

  width: min(430px, 100%);

  padding: 40px 30px 35px;

  border:
    1px solid
    rgba(117, 227, 154, 0.25);

  border-radius: 24px;

  background:
    linear-gradient(
      145deg,
      #102c1c,
      #07150d
    );

  box-shadow:
    0 30px 100px
    rgba(0, 0, 0, 0.65);

  text-align: center;

  transform: translateY(25px) scale(0.96);

  transition: transform 0.25s ease;
}

.designer-modal.active
.designer-modal-card {
  transform:
    translateY(0)
    scale(1);
}


/* Close Button */

.designer-close {
  position: absolute;

  top: 15px;
  right: 17px;

  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border:
    1px solid
    rgba(255,255,255,0.1);

  border-radius: 50%;

  background:
    rgba(255,255,255,0.05);

  color: #ffffff;

  font-size: 25px;

  cursor: pointer;

  transition: 0.2s;
}

.designer-close:hover {
  background:
    rgba(117,227,154,0.12);

  color: #75e39a;
}


/* Designer Image */

.designer-image-wrap {
  width: 135px;
  height: 135px;

  margin:
    5px auto
    22px;

  padding: 5px;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      #7beca1,
      #238c4a
    );

  box-shadow:
    0 0 45px
    rgba(80, 220, 128, 0.22);
}

.designer-image {
  width: 100%;
  height: 100%;

  object-fit: cover;

  border-radius: 50%;

  border:
    4px solid
    #0a1d12;
}


/* Designer Text */

.designer-label {
  display: block;

  margin-bottom: 6px;

  color: #72df98;

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 2px;
}

.designer-info h2 {
  margin: 0;

  color: #ffffff;

  font-size: 27px;
}

.designer-role {
  margin:
    4px 0
    16px;

  color: #78e49c;

  font-size: 13px;
  font-weight: 700;
}

.designer-description {
  max-width: 350px;

  margin: auto;

  color: #9eafa5;

  font-size: 13px;

  line-height: 1.8;
}


/* =========================================================
   FOOTER 4 COLUMNS
========================================================= */

.footer-grid {
  grid-template-columns:
    2fr 1fr 1fr 1fr;
}


/* =========================================================
   POPUP MOBILE
========================================================= */

@media (max-width: 820px) {

  .footer-grid {
    grid-template-columns:
      1fr 1fr;
  }

}


@media (max-width: 600px) {

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .designer-modal-card {
    padding:
      35px 20px
      30px;
  }

  .designer-image-wrap {
    width: 115px;
    height: 115px;
  }

  .designer-info h2 {
    font-size: 24px;
  }

}
/* ==============================
   GREEN SERIES LOGIN LOGO
================================ */

.login-logo {
  width: 115px;
  height: 115px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  margin: 0 auto 18px;
}
/* ==============================
   GREEN SERIES HEADER LOGO
================================ */

.site-logo {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
/* =========================================
   PREMIUM HERO GREEN SERIES LOGO
========================================= */

.hero-logo-wrap {
  width: 300px;
  height: 300px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;

  background:
    radial-gradient(
      circle,
      rgba(32, 110, 65, 0.25) 0%,
      rgba(5, 35, 20, 0.45) 55%,
      rgba(0, 0, 0, 0) 72%
    );

  border: 1px solid rgba(92, 230, 143, 0.22);

  box-shadow:
    0 0 35px rgba(50, 220, 120, 0.12),
    inset 0 0 35px rgba(50, 220, 120, 0.06);
}

/* Outer premium ring */
.hero-logo-wrap::before {
  content: "";
  position: absolute;
  inset: 18px;

  border-radius: 50%;

  border: 1px solid rgba(210, 170, 75, 0.35);

  box-shadow:
    0 0 25px rgba(212, 175, 55, 0.08);
}

/* Inner decorative ring */
.hero-logo-wrap::after {
  content: "";
  position: absolute;
  inset: 38px;

  border-radius: 50%;
  border: 1px dashed rgba(92, 230, 143, 0.20);
}

/* Actual Green Series Logo */
.hero-premium-logo {
  width: 175px;
  height: 175px;

  object-fit: contain;
  border-radius: 50%;

  position: relative;
  z-index: 2;

  filter:
    drop-shadow(0 0 10px rgba(212, 175, 55, 0.30))
    drop-shadow(0 0 25px rgba(45, 220, 120, 0.18));

  animation: premiumLogoFloat 4s ease-in-out infinite;
}

@keyframes premiumLogoFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-7px) scale(1.025);
  }
}

/* Mobile */
@media (max-width: 768px) {

  .hero-logo-wrap {
    width: 230px;
    height: 230px;
  }

  .hero-premium-logo {
    width: 135px;
    height: 135px;
  }
}
