/**
 * SIXPRINT SITE-WIDE COMMON STYLES
 *
 * Shared across ALL product pages:
 * - Greeting Cards, Postcards, Bookmarks, Business Cards, Giclee
 *
 * Contains: CSS variables, reset styles, header, navigation, breadcrumb,
 * hero sections, parallax, paper rows, footer, animations
 */

/* ==================== CSS VARIABLES ==================== */
:root {
  --brand-pink: #FF269E;
  --brand-purple: #924EFF;
  --brand-dark: #333;
  --brand-light: #fafafa;
  --brand-white: #ffffff;
  --border-light: #e8e8e8;
  --text-muted: #666;
  --nav-height: 70px;
}

/* ==================== RESET STYLES ==================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--brand-dark);
  line-height: 1.6;
  background: var(--brand-white);
  font-weight: 400;
}

a {
  color: var(--brand-pink);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--brand-purple);
}

/* ==================== HEADER & NAVIGATION ==================== */
/* Header styles are defined in global.css */

.nav-container {
  width: 100%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 45px;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  position: relative;
}

nav li {
  position: relative;
}

nav a {
  font-weight: 400;
  padding: 0.5rem 0;
  position: relative;
  color: var(--brand-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-purple));
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.dropdown-arrow {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

nav li:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--brand-white);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  min-width: 240px;
  z-index: 1000;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
}

nav li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  padding: 0.75rem 1.5rem;
  display: block;
  color: var(--brand-dark);
  font-weight: 400;
  border-bottom: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.dropdown a::after {
  display: none;
}

.dropdown a:hover {
  background: var(--brand-light);
  color: var(--brand-pink);
  padding-left: 2rem;
}

.dropdown .dropdown-header {
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  color: var(--brand-pink);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.5rem;
}

.dropdown .dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 0.5rem 0;
}

.upload-btn {
  padding: 0.6rem 1.25rem;
  background: var(--brand-white);
  color: var(--brand-dark);
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 3px solid transparent;
  background-clip: padding-box;
}

.upload-btn::before {
  content: '';
  position: absolute;
  inset: -3px;
  padding: 3px;
  background: linear-gradient(90deg, var(--brand-pink), var(--brand-purple), var(--brand-pink));
  background-size: 200% 100%;
  border-radius: 9px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  animation: gradientShift 3s ease-in-out infinite;
}

.upload-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 38, 158, 0.2);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
  background: var(--brand-light);
  padding: 1rem 2rem;
  font-size: 0.9rem;
  margin-top: 70px;
}

/* Adjust breadcrumb margin when notification is visible */
body.has-notification .breadcrumb {
  margin-top: 110px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--brand-pink);
}

/* ==================== HERO PRODUCT SECTION ==================== */
.product-hero {
  padding: 3rem 2rem;
  background: var(--brand-white);
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-showcase {
  position: sticky;
  top: 100px;
}

.product-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.product-info h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
  color: var(--brand-dark);
  font-weight: 500;
}

.product-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.product-description {
  background: var(--brand-light);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--brand-pink);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==================== MAIN CONTENT ==================== */
main {
  width: 100%;
  max-width: none;
}

.section {
  padding: 4rem 2rem;
}

.section-alt {
  background: var(--brand-light);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
}

/* ==================== PARALLAX SECTIONS ==================== */
.parallax-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 400px;
  background-image: url('../images/Sixprint_Trees.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  overflow: hidden;
}

.parallax-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.parallax-content {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 12px;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.parallax-content h1,
.parallax-content h2 {
  margin: 0 0 20px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  color: #FFF;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 500;
}

.parallax-content p {
  font-size: 1.1rem;
  color: #FFF;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  margin: 0;
}

/* ==================== PAPER ROWS LAYOUT ==================== */
.sidebyside-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: #fafafa;
}

.paper-row {
  display: flex;
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
  border: 1px solid #e8e8e8;
}

.paper-row:nth-child(even) {
  flex-direction: row-reverse;
}

.paper-row-image {
  flex: 1;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.paper-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.paper-row-image .texture-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.paper-row-image:hover .texture-image {
  opacity: 1;
}

.paper-row-image:hover img {
  transform: scale(1.05);
}

.paper-row-content {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.paper-row-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
  color: #FF269E;
  font-weight: 500;
}

.paper-row-content h4 {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  margin-bottom: 1rem;
  font-style: italic;
}

.paper-properties {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.paper-property {
  text-align: center;
  background: #fafafa;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  min-width: 80px;
}

.property-value {
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
}

.property-label {
  font-size: 0.75rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.paper-row-content p {
  margin-bottom: 0.75rem;
  color: #666;
  line-height: 1.6;
}

.best-for {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.best-for span {
  background: linear-gradient(135deg, rgba(255, 38, 158, 0.1), rgba(146, 78, 255, 0.1));
  color: #FF269E;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 38, 158, 0.2);
}

.eco-badge {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.1), rgba(16, 185, 129, 0.1));
  color: #10B981;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid rgba(16, 185, 129, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.surcharge-note {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.1), rgba(249, 115, 22, 0.1));
  color: #F97316;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px solid rgba(249, 115, 22, 0.3);
  display: inline-block;
  margin-top: 0.5rem;
}

/* ==================== FOOTER ==================== */
footer {
  background: var(--brand-dark);
  color: #ccc;
  padding: 4rem 2rem 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--brand-pink);
}

.copyright {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #444;
  font-size: 0.9rem;
  color: #999;
}

/* ==================== ANIMATIONS ==================== */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes moveGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes plasmaFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ==================== PLASMA TITLE EFFECT ==================== */
.plasma-title {
  background: linear-gradient(
    90deg,
    var(--brand-pink),
    var(--brand-purple),
    var(--brand-pink)
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: plasmaFlow 12s ease-in-out infinite;
  display: inline-block;
}

.plasma-subtitle {
  color: var(--text-muted);
}

/* ==================== RESPONSIVE - MOBILE ==================== */
@media (max-width: 968px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product-showcase {
    position: static;
  }
}

@media (max-width: 768px) {
  /* Prevent horizontal overflow on mobile */
  img {
    max-width: 100%;
    height: auto;
  }

  .product-hero,
  .hero-container,
  .product-showcase,
  .product-info,
  .calculator-section {
    max-width: 100%;
    overflow-x: hidden;
  }

  .parallax-container {
    height: 300px;
    background-attachment: scroll;
  }

  .parallax-content {
    padding: 20px;
    margin: 0 15px;
  }

  .sidebyside-layout {
    padding: 2rem 1rem;
  }

  .paper-row {
    flex-direction: column !important;
  }

  .paper-row-image {
    min-height: 200px;
  }

  .paper-row-content {
    padding: 1.5rem;
  }

  .paper-properties {
    justify-content: center;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .nav-center {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    flex-direction: column;
    background: var(--brand-white);
    width: 300px;
    height: calc(100vh - var(--nav-height));
    padding: 2rem 1rem;
    gap: 0;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
    overflow-y: auto;
  }

  .nav-center.open {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  nav li {
    width: 100%;
    border-bottom: 1px solid var(--border-light);
  }

  nav a {
    padding: 1rem 0;
    width: 100%;
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 0;
    background: var(--brand-light);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  nav li:hover .dropdown {
    max-height: 300px;
  }

  .dropdown a {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .dropdown a:hover {
    padding-left: 1.5rem;
  }

  .upload-btn {
    width: 100%;
    text-align: center;
    margin-top: 2rem;
  }

  .nav-toggle {
    display: block;
  }

  .section {
    padding: 3rem 1rem;
  }

  .product-hero {
    padding: 2rem 1rem;
  }
}

/* ==================== PAPER SECTION STYLES (SHARED ACROSS PRODUCTS) ==================== */
/* Paper Quick Select Buttons */
.paper-quick-select {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.paper-btn {
  padding: 0.75rem 1rem;
  background: var(--brand-white);
  border: 2px solid var(--border-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 500;
  color: var(--brand-dark);
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.9rem;
}

.paper-btn:hover {
  border-color: var(--brand-pink);
  background: #fff5f7;
  color: var(--brand-pink);
  transform: translateY(-2px);
}

/* Sample Pack CTA */
.sample-pack-cta {
  background: linear-gradient(135deg, rgba(255, 38, 158, 0.05), rgba(146, 78, 255, 0.05));
  border: 2px solid rgba(255, 38, 158, 0.2);
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  margin-top: 2rem;
}

.sample-pack-cta h3 {
  margin: 0 0 0.5rem 0;
  color: var(--brand-dark);
  font-size: 1.1rem;
  font-weight: 600;
}

.sample-pack-cta p {
  margin: 0 0 1rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sample-pack-cta .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--brand-pink), var(--brand-purple));
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.sample-pack-cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 38, 158, 0.3);
}

/* Mobile responsive for paper buttons */
@media (max-width: 768px) {
  .paper-quick-select {
    grid-template-columns: 1fr;
  }
}

/* ==================== SIDES BUTTONS (SHARED ACROSS PRODUCTS) ==================== */
.sides-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--border-light);
  background: #f5f5f5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--brand-dark);
  line-height: 1;
  min-height: 48px;
}

.sides-btn:hover {
  border-color: var(--brand-pink);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(255, 38, 158, 0.15);
}

.sides-btn.active {
  background: var(--brand-pink);
  border-color: var(--brand-pink);
  color: white;
  box-shadow: 0 2px 8px rgba(255, 38, 158, 0.3);
}

.sides-btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.sides-btn.active .sides-btn-icon {
  filter: brightness(0) invert(1);
}

.sides-btn-label {
  font-size: 0.85rem;
}
