/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Child theme for Astra
Author: Your Name
Author URI: https://example.com
Template: astra
Version: 1.0.0
*/

/* ========================================================= */
/* HEADER (StorySphere / Pratilipi-style) */
/* ========================================================= */

/* ===================== */
/* FORCE HORIZONTAL HEADER FIX */
/* ===================== */

.ss-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #eee;
}

.ss-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex !important;
  justify-content: space-between !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 18px;
  flex-wrap: nowrap;
}

.ss-content {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 18px;
}

/* Logo */
.ss-logo a {
  font-size: 20px;
  font-weight: 700;
  color: #e53935;
  text-decoration: none;
  white-space: nowrap;
}

/* Language selector */
.ss-language {
  border: 2px solid #e53935;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* Search */
.ss-search {
  flex: 1 1 auto;
  max-width: 680px;
  min-width: 360px;
}

.ss-search input {
  width: 100%;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
  background: #fafafa;
}

/* Notification */
.ss-notification {
  font-size: 18px;
  cursor: pointer;
}

/* Navigation */
.ss-nav {
  display: flex !important;
  gap: 22px;
  align-items: center;
}

.ss-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  white-space: nowrap;
}

/* ===================== */
/* Mobile Header */
/* ===================== */
@media (max-width: 768px) {
  .ss-header-inner {
    flex-wrap: wrap;
  }

  .ss-search {
    order: 3;
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    margin-top: 10px;
  }

  .ss-nav {
    order: 4;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
  }
}

/* ========================================================= */
/* Hero / Featured */
/* ========================================================= */

.home-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 70px;
  align-items: center;
}

.home-hero-image img {
  width: 100%;
  border-radius: 18px;
}

.home-hero-title {
  font-size: 42px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.home-hero-title a {
  text-decoration: none;
  color: #111;
}

.home-hero-author {
  font-size: 15px;
  color: #777;
  margin-bottom: 15px;
}

/* ========================================================= */
/* Story Cards */
/* ========================================================= */

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
}

.story-card {
  max-width: 360px;
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.story-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.story-card:hover {
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.story-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.story-body {
  padding: 18px 20px 20px;
}

.story-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111;
}

.story-author {
  font-size: 14px;
  color: #777;
  margin-bottom: 10px;
}

.story-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: #555;
}

/* ===================== */
/* Home Intro Section */
/* ===================== */

.home-intro {
  margin-bottom: 40px;
}

.home-main-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111;
}

.home-title-line {
  width: 140px;
  height: 3px;
  background: #111;
  margin-bottom: 26px;
}

.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-section-header h2 {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
}

.home-arrow {
  font-size: 26px;
  text-decoration: none;
  color: #111;
  transition: transform 0.2s ease;
}

.home-arrow:hover {
  transform: translateX(6px);
}

/* ===================== */
/* Top Trending Stories */
/* ===================== */

.trending-wrapper {
  margin-bottom: 60px;
}

.trending-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.trending-scroll::-webkit-scrollbar {
  display: none;
}

.trending-card {
  min-width: 260px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 16px 18px 18px;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trending-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.trending-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.trending-tag {
  font-size: 13px;
  color: #ff4d4f;
  font-weight: 500;
}

.trending-rating {
  font-size: 13px;
  color: #111;
}

.trending-parts {
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
}

.trending-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #111;
}

.trending-meta {
  display: flex;
  gap: 14px;
  font-size: 13px;
  color: #555;
}

/* ========================================================= */
/* FOOTER – PRATILIPI STYLE */
/* ========================================================= */

.ss-footer {
  background: #1c1c1c;
  color: #ffffff;
  margin-top: 80px;
}

.ss-footer-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.ss-footer-col h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.ss-footer-line {
  width: 40px;
  height: 2px;
  background: #e53935;
  margin-bottom: 18px;
}

/* App buttons */
.app-btn {
  display: block;
  margin-bottom: 14px;
}

.app-btn img {
  width: 150px;
}

/* Lists */
.ss-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ss-footer-col ul li {
  margin-bottom: 10px;
  color: #ddd;
}

/* Text */
.ss-footer-col p {
  color: #ddd;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* Social Icons */
.ss-social-icons {
  display: flex;
  gap: 12px;
}

.ss-social-icons a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.ss-social-icons .fb { background: #3b5998; }
.ss-social-icons .tw { background: #1da1f2; }
.ss-social-icons .yt { background: #ff0000; }
.ss-social-icons .ig { background: #c13584; }

/* Bottom bar */
.ss-footer-bottom {
  background: #141414;
  padding: 18px 20px;
  text-align: center;
  font-size: 13px;
  color: #ccc;
}

.ss-footer-bottom a {
  color: #ccc;
  text-decoration: none;
  margin: 0 4px;
}

.ss-footer-bottom a:hover {
  text-decoration: underline;
}

/* Footer Responsive */
@media (max-width: 900px) {
  .ss-footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .ss-footer-top {
    grid-template-columns: 1fr;
  }
}



/* ===================== */
/* Pratilipi Trending Cards */
/* ===================== */

.trending-cover-card {
  position: relative;
  min-width: 180px;
  flex-shrink: 0;
}

.trending-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

/* Rank badge */
.trending-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #b71c1c;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Rating badge */
.trending-rating-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #0f9d9d;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Parts badge */
.trending-parts-badge {
  position: absolute;
  bottom: 48px;
  left: 10px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Info below image */
.trending-info {
  margin-top: 8px;
}

.trending-title-text {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111;
}

.trending-sub {
  font-size: 14px;
  color: #666;
  display: flex;
  flex-direction: column;
  gap: 2px;
}



/* ========================================================= */
/* CATEGORIES PAGE */
/* ========================================================= */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 30px;
  margin-bottom: 80px;
}

/* Card */
.category-card {
  position: relative;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
}

/* Image */
.category-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

/* Dark overlay */
.category-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1),
    rgba(0,0,0,0.65)
  );
}

/* Text */
.category-overlay {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

/* Hover */
.category-card:hover .category-image {
  transform: scale(1.05);
}

/* ===================== */
/* Responsive */
/* ===================== */

@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-card {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr;
  }
}




/* ========================================================= */
/* WRITE PAGE */
/* ========================================================= */

.write-page {
  margin-top: 30px;
}

/* ===================== */
/* Hero Section */
/* ===================== */

.write-hero {
  height: 220px;
  background: url('../astra-child/assets/write-hero.jpg') center/cover no-repeat;
  position: relative;
  margin-bottom: 40px;
}

.write-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.write-hero-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

.write-hero-overlay h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

.write-btn {
  background: #e53935;
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

/* ===================== */
/* Cards */
/* ===================== */

.write-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.write-card {
  background: #fff;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.write-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* red vertical line */
.write-card h3 span {
  width: 3px;
  height: 22px;
  background: #e53935;
  display: inline-block;
}

.write-card-image img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
}

/* ===================== */
/* Responsive */
/* ===================== */

@media (max-width: 768px) {
  .write-cards {
    grid-template-columns: 1fr;
  }

  .write-hero {
    height: 200px;
  }
}


/* ===================== */
/* SIGN IN PAGE */
/* ===================== */

.signin-wrapper {
  padding: 80px 20px;
  background: #f7f7f7;
}

.signin-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
}

.signin-card {
  background: #fff;
  padding: 40px;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 0 0 1px #eee;
}

.signin-logo img {
  width: 80px;
  margin-bottom: 20px;
}

.signin-text {
  font-size: 15px;
  color: #333;
  margin-bottom: 30px;
}

.signin-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 12px;
  color: #fff;
}

.signin-btn.fb {
  background: #3b5998;
}

.signin-btn.google {
  background: #dd4b39;
}

.signin-divider {
  position: relative;
  margin: 20px 0;
}

.signin-divider span {
  background: #fff;
  padding: 0 10px;
  color: #777;
}

.signin-divider::before {
  content: "";
  height: 1px;
  width: 100%;
  background: #ddd;
  position: absolute;
  top: 50%;
  left: 0;
  z-index: -1;
}

.signin-input {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.signin-input input {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.signin-link {
  color: #e53935;
  font-weight: 600;
  align-self: center;
  text-decoration: none;
}

.signin-forgot {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  color: #111;
  text-decoration: none;
}

.signin-benefits {
  background: #fff;
  padding: 40px;
  border-radius: 6px;
  box-shadow: 0 0 0 1px #eee;
}

.signin-benefits h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.signin-benefits ul {
  list-style: none;
  padding: 0;
}

.signin-benefits li {
  font-size: 15px;
  margin-bottom: 12px;
}

/* Mobile */
@media (max-width: 768px) {
  .signin-container {
    grid-template-columns: 1fr;
  }
}





