/*
Theme Name: Vyral Style Magazine
Theme URI: https://example.com/vyral-style-magazine
Author: Brittany + ChatGPT
Author URI: https://example.com
Description: A viral-style magazine / news WordPress theme inspired by the Vyral Celebrities demo.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vyral-style
*/

/* --------------------------------------------------------------
   CSS VARIABLES
   (Customizer / PHP will override these via :root when you save)
---------------------------------------------------------------- */

:root {
  /* Layout + base */
  --vs-bg: #ffffff;
  --vs-bg-alt: #f5f5f7;
  --vs-text: #111111;
  --vs-muted: #6b7280;
  --vs-border: #e5e7eb;
  --vs-radius: 14px;
  --vs-shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.09);
  --vs-max-width: 1200px;

  /* Accent + links (defaults, overridden from Customizer) */
  --vs-accent: #ff2e85;
  --vs-link: #111111;
  --vs-link-hover: #ff2e85;
  --vs-heading-color: #111111;

  /* Top bar gradient (defaults, overridden from Customizer) */
  --vs-topbar-start: #7b2cff;
  --vs-topbar-end: #ff2e85;

  /* Fonts (names get injected from Customizer inline CSS) */
  --vs-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --vs-font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* --------------------------------------------------------------
   GLOBAL RESET / BASE
---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff !important; 
  color: var(--vs-text);
  font-family: var(--vs-font-body);
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  color: var(--vs-link);
  text-decoration: none;
  transition: color 0.16s ease, background-color 0.16s ease, opacity 0.16s ease;
}

a:hover {
  color: var(--vs-link-hover);
}

button,
input,
select,
textarea {
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--vs-font-heading);
  color: var(--vs-heading-color);
  margin: 0 0 .4em;
  line-height: 1.25;
}

/* --------------------------------------------------------------
   LAYOUT WRAPPER
---------------------------------------------------------------- */

.vs-container {
  width: 100%;
  max-width: var(--vs-max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.vs-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .vs-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --------------------------------------------------------------
   TOP BAR (PURPLE BAND)
---------------------------------------------------------------- */

.vs-topbar {
  background: linear-gradient(
    90deg,
    var(--vs-topbar-start),
    var(--vs-topbar-end)
  );
  color: #ffffff;
  font-size: 0.85rem;
}

.vs-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

.vs-topbar-left,
.vs-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Logo area in top bar */

.vs-topbar-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.vs-topbar-logo img {
  display: block;
  height: 30px;
  width: auto;
}

/* Emoji pills: Most Popular / Exclusive / Latest / Hot New */

.vs-top-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vs-top-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.16);
  color: #ffffff;
  font-size: 0.8rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.vs-top-pill.is-active {
  background: #ffffff;
  color: #111111;
}

/* Social icons + search + buy button on right */

.vs-topbar-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vs-topbar-social a {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  font-size: 0.8rem;
  color: #ffffff;
}

.vs-topbar-search-button {
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.16);
  border: none;
  cursor: pointer;
  color: #ffffff;
}

.vs-topbar-cta {
  padding: 6px 16px;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Responsive top bar */

@media (max-width: 900px) {
  .vs-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------
   PRIMARY NAV (Celebrities / Top News / Trending / TV Shows)
---------------------------------------------------------------- */

.vs-primary-nav {
  border-bottom: 1px solid var(--vs-border);
  background: #ffffff;
}

.vs-primary-nav-inner {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 10px 0;
  font-size: 0.95rem;
}

.vs-primary-nav-inner a {
  position: relative;
  padding-bottom: 4px;
  text-transform: none;
}

.vs-primary-nav-inner a:hover,
.vs-primary-nav-inner .current-menu-item > a {
  color: var(--vs-accent);
}

.vs-primary-nav-inner a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background-color 0.16s ease, transform 0.16s ease;
  transform: scaleX(0);
  transform-origin: center;
}

.vs-primary-nav-inner a:hover::after,
.vs-primary-nav-inner .current-menu-item > a::after {
  background: var(--vs-accent);
  transform: scaleX(1);
}

@media (max-width: 768px) {
  .vs-primary-nav-inner {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: thin;
  }
}

/* --------------------------------------------------------------
   SECTION HEADINGS (Top News / Trending Now / TV Shows etc.)
---------------------------------------------------------------- */

.vs-section {
  margin-top: 40px;
  margin-bottom: 24px;
}

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

.vs-section-title {
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.vs-section-link {
  font-size: 0.85rem;
  color: var(--vs-muted);
}

/* --------------------------------------------------------------
   HERO (main Zendaya card + right column list)
---------------------------------------------------------------- */

.vs-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 900px) {
  .vs-hero {
    grid-template-columns: minmax(0, 1fr);
  }
}

.vs-hero-main,
.vs-hero-side {
  background: #ffffff;
  border-radius: var(--vs-radius);
  overflow: hidden;
  box-shadow: var(--vs-shadow-soft);
  border: 1px solid var(--vs-border);
}

/* main big card */

.vs-hero-main {
  display: flex;
  flex-direction: column;
}

.vs-hero-main-thumb img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

@media (max-width: 600px) {
  .vs-hero-main-thumb img {
    height: 220px;
  }
}

.vs-hero-main-body {
  padding: 20px 22px 22px;
}

.vs-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.vs-badge {
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 46, 133, 0.08);
  color: var(--vs-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.vs-hero-main-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 4px 0 6px;
}

.vs-hero-main-excerpt {
  font-size: 0.95rem;
  color: #374151;
}

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

/* right side list */

.vs-hero-side-list {
  list-style: none;
  margin: 0;
  padding: 14px 18px;
}

.vs-hero-side-item + .vs-hero-side-item {
  border-top: 1px solid var(--vs-border);
}

.vs-hero-side-link {
  display: block;
  padding: 10px 4px;
}

.vs-hero-side-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

/* --------------------------------------------------------------
   POST CARDS (3-column grids for Top News / Trending / etc.)
---------------------------------------------------------------- */

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

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

@media (max-width: 900px) {
  .vs-grid-3,
  .vs-grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

.vs-card {
  background: #ffffff;
  border-radius: var(--vs-radius);
  overflow: hidden;
  border: 1px solid var(--vs-border);
  box-shadow: var(--vs-shadow-soft);
  display: flex;
  flex-direction: column;
}

.vs-card-thumb img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.vs-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.vs-card-title {
  font-size: 1rem;
  font-weight: 700;
}

.vs-card-excerpt {
  font-size: 0.9rem;
  color: #4b5563;
}

/* --------------------------------------------------------------
   SIDEBAR WIDGETS
---------------------------------------------------------------- */

.vs-sidebar .vs-widget {
  background: #ffffff;
  border-radius: var(--vs-radius);
  padding: 16px 18px;
  margin-bottom: 24px;
  border: 1px solid var(--vs-border);
  box-shadow: var(--vs-shadow-soft);
}

.vs-widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.vs-widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vs-widget-list li + li {
  margin-top: 8px;
}

/* Search widget tweak */

.widget_search form {
  display: flex;
}

.widget_search input[type="search"] {
  flex: 1;
  padding: 8px 10px;
  border-radius: 999px 0 0 999px;
  border: 1px solid var(--vs-border);
  font-size: 0.9rem;
}

.widget_search input[type="submit"] {
  padding: 0 18px;
  border-radius: 0 999px 999px 0;
  border: 1px solid var(--vs-border);
  background: #111111;
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
}

/* --------------------------------------------------------------
   AD BAND (970x250 under hero, footer band etc.)
---------------------------------------------------------------- */

.vs-adband {
  margin: 32px 0;
}

.vs-adband-inner {
  background: #f2f3ff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  border: 1px dashed #c7caf5;
}

.vs-ad-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin-bottom: 8px;
}

/* If you output raw HTML from Customizer, this wrapper keeps
   it from blowing up the layout */
.vs-ad-content {
  font-size: 0.9rem;
  color: #374151;
}

/* --------------------------------------------------------------
   SINGLE / ARCHIVE PAGES
---------------------------------------------------------------- */

.vs-content {
  margin-top: 32px;
}

.vs-post-header {
  margin-bottom: 16px;
}

.vs-post-title {
  font-size: 2rem;
  font-weight: 800;
}

.vs-post-meta {
  font-size: 0.9rem;
  color: var(--vs-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.vs-post-thumbnail {
  margin: 16px 0 24px;
  border-radius: var(--vs-radius);
  overflow: hidden;
}

.vs-post-content {
  font-size: 1rem;
  color: #333333;
}

.vs-post-content p {
  margin-bottom: 1em;
}

.vs-pagination {
  margin: 24px 0;
}

.vs-pagination .page-numbers {
  display: inline-block;
  padding: 6px 10px;
  margin-right: 4px;
  border-radius: 999px;
  border: 1px solid var(--vs-border);
  font-size: 0.85rem;
}

.vs-pagination .current {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* --------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */

.vs-footer {
  border-top: 1px solid var(--vs-border);
  padding: 24px 0;
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--vs-muted);
  background: #ffffff;
}

.vs-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

@media (max-width: 768px) {
  .vs-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------------------
   MISC / UTILITIES
---------------------------------------------------------------- */

.vs-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.06);
}

.vs-pill--accent {
  background: rgba(255, 46, 133, 0.08);
  color: var(--vs-accent);
}
