/* style.css – Cleaned, optimized, fully responsive, supports light/dark modes */

/* === RESET & GLOBAL === */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  font-size: 16px;
}
body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
  color: #eee;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === TYPOGRAPHY & HEADINGS === */
h1, h2, h3 {
  margin: 0 0 1rem;
  font-family: 'Anton', sans-serif;
  color: #ff3b3b;
  text-shadow: 2px 2px 4px rgba(0,0,0,.7);
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.25rem; }
p, blockquote {
  margin: 1rem 0;
  color: #ccc;
}
blockquote {
  font-style: italic;
  border-left: 4px solid #ff3b3b;
  padding-left: 1rem;
}

/* === LINKS & BUTTONS === */
a {
  text-decoration: none;
  color: inherit;
}
.btn-main,
.btn-secondary,
.add-cart,
.theme-toggle,
.remove-btn,
.checkout-btn,
.clear-btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  text-align: center;
  border-radius: .25rem;
  transition: background .3s;
}
.btn-main {
  background: #ff3b3b;
  color: #fff;
  padding: .75rem 1.5rem;
  font-weight: bold;
}
.btn-main:hover { background: #ff5c5c; }
.btn-secondary,
.share-buttons a {
  background: #444; color: #fff; padding: .5rem 1rem;
}
.btn-secondary:hover,
.share-buttons a:hover { background: #666; }
.add-cart {
  background: #ff4c4c;
  color: #fff;
  padding: .6rem 1.2rem;
  margin-top: .5rem;
  font-weight: bold;
}
.add-cart:hover { background: #e63b3b; }
.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: .5rem 1rem;
  background: transparent;
  color: inherit;
  border: 1px solid #555;
}
/* === HEADER & NAV === */
.site-header {
  text-align: center;
  padding: 3.5rem 0 2rem; /* increased top padding */
  border-bottom: 2px solid #333;
  position: relative;
}

.tagline {
  font-size: 1.2rem;
  font-style: italic;
  color: #ccc;
}
.main-nav {
  margin-top: 1rem;
}
.main-nav a {
  margin: 0 .75rem;
  font-weight: bold;
  padding: .5rem 1rem;
  border-radius: .25rem;
  color: #ff3b3b;
}
.main-nav a:hover {
  background: #ff3b3b;
  color: #1e1e1e;
}

/* === CONTAINER LAYOUT === */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* === SECTIONS === */
.intro,
.mission,
.featured,
.community,
.testimonials,
.direct-donate,
.social-share,
.impact-banner,
.live-sales,
.cta {
  background: #2e2e2e;
  padding: 2rem;
  margin-bottom: 3rem;
  border-radius: .75rem;
  box-shadow: 0 0 15px rgba(0,0,0,.4);
  text-align: center;
}
.featured,
.testimonials,
.direct-donate,
.social-share {
  background: #252525;
}
.impact-banner {
  background: #ff3b3b;
  color: #1e1e1e;
  font-weight: bold;
}
.impact-banner a { color: #1e1e1e; text-decoration: underline; margin-left: .5rem; }

/* === PRODUCT GRID === */
.products,
.featured-products,
.community-photos,
.share-buttons {
  display: grid;
  gap: 1.5rem;
}
.products {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.featured-products,
.community-photos {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-content: center;
}
.product-card,
.featured-product {
  background: #252525;
  border: 1px solid #444;
  border-radius: .5rem;
  padding: 1.5rem;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.product-card:hover,
.featured-product img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255,59,59,.5);
}
.product-card img,
.featured-product img,
.community-photos img {
  width: 100%;
  height: auto;
  border-radius: .5rem;
}
.product-card h3,
.featured-product h3 {
  margin-top: .75rem;
  color: #ff3b3b;
}
.product-card .price {
  font-size: 1.25rem;
  font-weight: bold;
  color: inherit;
}
.product-card .desc {
  font-size: .95rem;
  color: #aaa;
  margin: .75rem 0;
}

/* === TESTIMONIALS === */
.testimonials blockquote {
  max-width: 700px;
  margin: 1rem auto;
  color: #ccc;
}

/* === COMMUNITY PHOTOS === */
.community-photos img {
  border: 2px solid #444;
  transition: transform .3s;
}
.community-photos img:hover { transform: scale(1.05); }

/* === SOCIAL SHARE BUTTONS === */
.share-buttons {
  grid-auto-flow: column;
  justify-content: center;
}

/* === CTA (Email Sign-Up) === */
.cta .email-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.cta input[type="email"],
.cta button {
  padding: .75rem 1rem;
  font-size: 1rem;
  border-radius: .25rem;
  border: 1px solid #555;
}
.cta input[type="email"] {
  width: 300px;
  max-width: 90%;
  background: #1e1e1e;
  color: #eee;
}
.cta button {
  background: #ff3b3b; color: #fff;
}
.cta button:hover { background: #ff5c5c; }

/* === FOOTER === */
footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 2px solid #333;
  color: #888;
  margin-top: auto;
}

/* === TOASTS === */
#toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 1000;
}
.toast {
  background: #ff3b3b;
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: .25rem;
  box-shadow: 0 0 10px rgba(0,0,0,.3);
  animation: fadeIn .5s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === THEME SWITCHING === */
body.light-mode {
  background: #f8f8f8;
  color: #222;
}
body.light-mode header {
  border-bottom-color: #ccc;
}
body.light-mode h1, body.light-mode h2, body.light-mode h3 {
  color: #d62828;
  text-shadow: none;
}
body.light-mode .tagline,
body.light-mode p,
body.light-mode blockquote {
  color: #555;
}
body.light-mode a { color: inherit; }
body.light-mode .main-nav a {
  color: #d62828;
}
body.light-mode .main-nav a:hover { background: #d62828; color: #fff; }
body.light-mode .intro,
body.light-mode .mission,
body.light-mode .featured,
body.light-mode .community,
body.light-mode .testimonials,
body.light-mode .direct-donate,
body.light-mode .social-share,
body.light-mode .impact-banner,
body.light-mode .live-sales,
body.light-mode .cta {
  background: #fff;
  color: #222;
  box-shadow: 0 0 15px rgba(0,0,0,.1);
}
body.light-mode .product-card,
body.light-mode .featured-product {
  background: #fff;
  border-color: #ddd;
  box-shadow: 0 4px 8px rgba(0,0,0,.1);
}
body.light-mode .product-card:hover {
  box-shadow: 0 8px 20px rgba(214,40,40,.4);
}
body.light-mode .product-card h3,
body.light-mode .featured-product h3 {
  color: #d62828;
}
body.light-mode .price {
  color: #000;
}
body.light-mode .desc {
  color: #555;
}
body.light-mode .add-cart,
body.light-mode .btn-main {
  background: #d62828;
}
body.light-mode .add-cart:hover,
body.light-mode .btn-main:hover {
  background: #e04848;
}
body.light-mode .remove-btn,
body.light-mode .clear-btn {
  background: #d62828;
}
body.light-mode .remove-btn:hover,
body.light-mode .clear-btn:hover {
  background: #e04848;
}
body.light-mode .checkout-btn {
  background: #28a745;
}
body.light-mode .checkout-btn:hover {
  background: #34c759;
}
body.light-mode .shipping-banner,
body.light-mode .shipping-info {
  background: #fff3f3;
  color: #444;
}
body.light-mode .empty-cart-message {
  color: #666;
}
body.light-mode footer {
  border-top-color: #ccc;
  color: #888;
}
body.light-mode .toast {
  background: #d62828;
}
body.light-mode .theme-toggle {
  border-color: #bbb;
}

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 768px) {
  .products, .featured-products, .community-photos, .share-buttons {
    grid-template-columns: 1fr;
  }
  h1 { font-size: 2rem; }
  .cta input[type="email"],
  .cta button { width: 100%; }
}
@media (max-width: 500px) {
  footer { font-size: .9rem; }
}


/* === ADDITIONAL SPACING & REFINEMENTS === */

.intro p,
.mission p,
.direct-donate p,
.social-share p {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.featured-products,
.community-photos,
.share-buttons {
  margin-top: 2rem;
}

.impact-banner p {
  margin: 0;
}

.live-sales p {
  margin: 0;
  font-size: 1.1rem;
}

.btn-main, .btn-secondary {
  margin-top: 1rem;
}

/* CTA spacing on mobile */
@media (max-width: 600px) {
  .btn-main,
  .btn-secondary {
    width: 100%;
    box-sizing: border-box;
  }
}

/* Consistent section spacing */
section {
  scroll-margin-top: 80px;
}


/* === REBEL SHOWCASE SECTION === */
.rebel-showcase {
  background: #252525;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: .75rem;
  box-shadow: 0 0 15px rgba(0,0,0,.4);
  margin-bottom: 4rem;
}

.rebel-showcase h2 {
  color: #ff3b3b;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.rebel-showcase p {
  color: #ccc;
  max-width: 750px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.rebel-showcase strong {
  color: #ff3b3b;
}

.rebel-showcase .community-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.rebel-showcase .community-photos img {
  width: 100%;
  border-radius: 8px;
  border: 2px solid #444;
  transition: transform 0.3s;
}

.rebel-showcase .community-photos img:hover {
  transform: scale(1.05);
}


.united-impact {
  background: #252525;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: .75rem;
  box-shadow: 0 0 15px rgba(0,0,0,.4);
  margin-bottom: 4rem;
}

.united-impact h2 {
  color: #ff3b3b;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

.united-impact p {
  color: #ccc;
  max-width: 750px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.impact-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.impact-card {
  background: #2e2e2e;
  padding: 2rem;
  border-radius: .5rem;
  box-shadow: 0 0 10px rgba(0,0,0,.3);
}

.impact-card h3 {
  color: #ff3b3b;
  margin-bottom: 1rem;
}

.impact-card p {
  font-size: 1rem;
  color: #bbb;
}

.impact-card .btn-main {
  margin-top: 1rem;
}


/* === Floating Cart Button === */
#cart-button {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  background: #ff3b3b;
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s;
}
#cart-button:hover {
  background: #ff5c5c;
}
#cart-count {
  background: #fff;
  color: #ff3b3b;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-weight: bold;
  min-width: 20px;
  text-align: center;
}

/* Adjust toast container to sit above the cart button */
#toast-container {
  position: fixed;
  bottom: 5rem; /* Moves toast above cart button */
  right: 1rem;
  z-index: 1000;
}


/* === UNITED IMPACT SECTION (REVISED FOR OPTIMAL READABILITY & PSYCHOLOGICAL IMPACT) === */

.united-impact {
  background: linear-gradient(135deg, #252525, #1a1a1a);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: .75rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, .5);
  margin-bottom: 4rem;
  color: #e0e0e0;
}

.united-impact h2 {
  color: #ff4c4c;
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,.6);
}

.united-impact p {
  color: #ccc;
  max-width: 800px;
  margin: 0 auto 1.75rem;
  font-size: 1.1rem;
  line-height: 1.75;
}

.impact-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.impact-card {
  background: linear-gradient(145deg, #2a2a2a, #1e1e1e);
  padding: 2rem;
  border-radius: .75rem;
  box-shadow: 0 0 12px rgba(0,0,0,0.35);
  transition: transform 0.3s, box-shadow 0.3s;
}

.impact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 76, 76, 0.4);
}

.impact-card h3 {
  color: #ff3b3b;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,.4);
}

.impact-card p {
  font-size: 1rem;
  color: #bbb;
  line-height: 1.6;
}

.impact-card a {
  color: #ff7b7b;
  text-decoration: underline;
  transition: color 0.3s;
}
.impact-card a:hover {
  color: #ffa4a4;
}

/* Share buttons refined */
.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.share-buttons a {
  background: #444;
  color: #fff;
  padding: .6rem 1rem;
  border-radius: .5rem;
  font-weight: bold;
  transition: background .3s;
}
.share-buttons a:hover {
  background: #666;
}

/* Donate Button */
.impact-card .btn-main {
  margin-top: 1.5rem;
  font-size: 1rem;
}

/* === LIGHT MODE SUPPORT === */
body.light-mode .united-impact {
  background: linear-gradient(135deg, #fafafa, #f0f0f0);
  color: #222;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .united-impact h2 {
  color: #d62828;
  text-shadow: none;
}

body.light-mode .united-impact p {
  color: #444;
}

body.light-mode .impact-card {
  background: #fff;
  box-shadow: 0 0 12px rgba(0,0,0,0.08);
}

body.light-mode .impact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(214, 40, 40, 0.3);
}

body.light-mode .impact-card h3 {
  color: #d62828;
}

body.light-mode .impact-card p {
  color: #555;
}

body.light-mode .impact-card a {
  color: #d62828;
}

body.light-mode .impact-card a:hover {
  color: #e04848;
}

body.light-mode .share-buttons a {
  background: #ddd;
  color: #333;
}
body.light-mode .share-buttons a:hover {
  background: #ccc;
}
/* Donate Now Button */
.impact-card .btn-main {
  margin-top: 1.5rem;
  font-size: 1rem;
  background: #ff3b3b;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.4rem;
  font-weight: bold;
  display: inline-block;
  transition: background 0.3s, color 0.3s;
}

.impact-card .btn-main:hover {
  background: #ff5c5c;
  color: #fff;
}

/* Light mode adjustments */
body.light-mode .impact-card .btn-main {
  background: #d62828;
  color: #fff;
}

body.light-mode .impact-card .btn-main:hover {
  background: #e04848;
  color: #fff;
}




/* === HEADER & NAV (REVISED) === */
.site-header {
  padding: 2.5rem 1rem 1.5rem;
  border-bottom: 2px solid #333;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.header-content {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.1rem;
  font-style: italic;
  color: #ccc;
  margin-bottom: 1rem;
}

/* Theme toggle button */
.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: .5rem 1rem;
  background: transparent;
  color: inherit;
  border: 1px solid #555;
  border-radius: .25rem;
}

/* Nav styling */
.main-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}

.main-nav a {
  font-weight: bold;
  padding: .5rem 1rem;
  border-radius: .25rem;
  color: #ff3b3b;
  transition: background 0.3s, color 0.3s;
}

.main-nav a:hover {
  background: #ff3b3b;
  color: #1e1e1e;
}

/* Light mode adjustments */
body.light-mode .site-header {
  border-bottom-color: #ccc;
}

body.light-mode .main-nav a {
  color: #d62828;
}

body.light-mode .main-nav a:hover {
  background: #d62828;
  color: #fff;
}

body.light-mode .theme-toggle {
  border-color: #bbb;
}



/* === RESPONSIVE HEADER FOR MOBILE === */
@media (max-width: 768px) {
  .site-header {
    padding: 2rem 1rem 1.5rem;
  }

  .main-nav {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
  }

  .theme-toggle {
    top: 0.5rem;
    right: 0.5rem;
  }

  .site-title {
    font-size: 2rem;
  }

  .tagline {
    font-size: 1rem;
  }
}
