/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and Navigation */
.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

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

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0072d9; /* New blue from logo */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #0072d9; /* New blue from logo */
}

/* Hero Section */
.hero {
  background: #ffcb38; /* Exact yellow from logo - no gradient */
  color: #000; /* Black text for contrast */
  padding: 80px 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  background: #0072d9;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse 2s infinite;
}

.badge-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  transition: transform 0.3s ease;
}

.badge-link:hover {
  transform: scale(1.05);
}

.badge-link:hover .badge {
  background: #0056b3;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: #000;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.8;
  color: #000;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: #dd3013; /* New red from logo */
  color: white;
}

.btn-primary:hover {
  background: #b71c1c;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #0072d9; /* New blue from logo */
  color: white;
}

.btn-secondary:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo {
  width: 300px;
  height: 300px;
}

/* Sections */
section {
  padding: 80px 0;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #000;
}

.section-intro {
  text-align: center;
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about {
  background: white;
}

.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: #4b5563;
}

.coming-soon {
  background: #f8fafc;
  padding: 2rem;
  border-radius: 12px;
  margin-top: 2rem;
  border-left: 4px solid #0072d9; /* New blue from logo */
}

.coming-soon h3 {
  color: #0072d9; /* New blue from logo */
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.coming-soon ul {
  list-style: none;
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}

.coming-soon li {
  padding: 0.5rem 0;
  color: #6b7280;
  position: relative;
  padding-left: 1.5rem;
}

.coming-soon li::before {
  content: '🧱';
  position: absolute;
  left: 0;
  color: #dd3013; /* New red from logo */
}

/* Contact Section */
.contact {
  background: #f8fafc;
  text-align: center;
  padding: 4rem 0;
}

.contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.contact-method {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-method:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.contact-method h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #000;
}

.contact-method a {
  color: #0072d9; /* New blue from logo */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-method a:hover {
  color: #dd3013; /* New red from logo */
  text-decoration: underline;
}

/* Instagram specific styling */
.instagram-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5rem;
  color: #e4405f; /* Instagram brand color */
}

.contact-method a[href*='instagram'] {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-method a[href*='instagram']:hover {
  color: #e4405f; /* Instagram brand color */
}

.footer-section a[href*='instagram']:hover {
  color: #e4405f; /* Instagram brand color */
}

/* Instagram icon hover effects */
.contact-method:hover .instagram-icon,
.footer-section a:hover .instagram-icon {
  color: #e4405f; /* Instagram brand color */
}

/* Footer */
.footer {
  background: #000; /* Black from logo */
  color: white;
  padding: 60px 0 20px;
  position: relative;
  z-index: 10;
  margin-top: 2rem;
}

/* Ensure main doesn't cut off footer */
main {
  min-height: auto;
  position: relative;
}

/* Store Section - Mobile First Design */
.store {
  background: #f8fafc;
  text-align: center;
  padding: 2rem 0;
  /* Fallback for older browsers */
  display: block;
  width: 100%;
}

/* Featured Item Section */
.featured-item-section {
  margin-bottom: 3rem;
  padding: 0 1rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.featured-badge {
  text-align: center;
  margin-bottom: 1.5rem;
}

.featured-text {
  display: inline-block;
  background: linear-gradient(135deg, #ffcb38 0%, #ffa500 100%);
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(255, 203, 56, 0.3);
  animation: featuredPulse 3s infinite;
}

@keyframes featuredPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(255, 203, 56, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 203, 56, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(255, 203, 56, 0.3);
  }
}

.featured-item {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border: 2px solid #e2e8f0;
  position: relative;
}

.featured-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.featured-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.featured-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  min-height: 300px;
}

.featured-image {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 16px;
  overflow: hidden;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.featured-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
  border-radius: 12px;
}

.featured-item:hover .featured-img {
  transform: scale(1.05);
}

.featured-details {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.featured-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #000;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.featured-description {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.btn-featured {
  background: linear-gradient(135deg, #dd3013 0%, #b71c1c 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px rgba(221, 48, 19, 0.3);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  align-self: flex-start;
}

.btn-featured:hover {
  background: linear-gradient(135deg, #b71c1c 0%, #8b0000 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(221, 48, 19, 0.4);
}

/* Store Divider */
.store-divider {
  margin: 3rem 0 2rem 0;
  text-align: center;
  padding: 0 1rem;
}

.divider-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 0.5rem;
}

.divider-subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 0;
}

/* Featured Item Mobile Responsiveness */
@media (max-width: 768px) {
  .featured-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    min-height: auto;
  }

  .featured-image {
    height: 220px;
    order: -1;
  }

  .featured-title {
    font-size: 1.5rem;
  }

  .featured-description {
    font-size: 0.9rem;
  }

  .btn-featured {
    align-self: stretch;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .featured-item-section {
    padding: 0 0.75rem;
    margin-bottom: 2rem;
  }

  .featured-content {
    padding: 1rem;
    gap: 1rem;
  }

  .featured-image {
    height: 180px;
    padding: 0.5rem;
  }

  .featured-title {
    font-size: 1.25rem;
  }

  .featured-description {
    font-size: 0.875rem;
  }

  .btn-featured {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* Force mobile layout on very small screens (Instagram browser often reports small viewport) */
@media (max-width: 480px) {
  .store-grid {
    display: block !important;
    width: 100% !important;
  }

  .store-item {
    display: block !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
    float: none !important;
    clear: both !important;
  }

  .store-item-link {
    display: block !important;
  }

  .item-content {
    display: block !important;
  }

  .item-details {
    display: block !important;
    text-align: center;
  }

  .item-condition {
    display: inline-block !important;
    margin-bottom: 0.5rem;
  }

  .item-price {
    display: block !important;
    margin-top: 0.5rem;
  }
}

.store .section-intro {
  margin-bottom: 2rem;
  padding: 0 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  line-height: 1.6;
}

.last-updated {
  color: #6b7280;
  font-size: 0.875rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.store-grid {
  /* Fallback for older browsers that don't support CSS Grid */
  display: block;
  width: 100%;
  margin-bottom: 0;
  padding: 0 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;

  /* Modern CSS Grid */
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Fallback for browsers that don't support CSS Grid */
@supports not (display: grid) {
  .store-grid {
    display: block;
  }

  .store-item {
    display: block;
    width: 100%;
    margin-bottom: 1.5rem;
    float: left;
  }

  .store-item:last-child {
    margin-bottom: 0;
  }
}

.store-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-align: left;
  /* Fallback for older browsers */
  display: block;
  width: 100%;
  position: relative;
  z-index: 1;
  margin-bottom: 1.5rem;

  /* Modern flexbox */
  display: flex;
  flex-direction: column;
}

/* Fallback for browsers that don't support flexbox */
@supports not (display: flex) {
  .store-item {
    display: block;
    vertical-align: top;
  }
}

.store-item-link {
  text-decoration: none;
  color: inherit;
  /* Fallback for older browsers */
  display: block;
  width: 100%;

  /* Modern flexbox */
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Fallback for browsers that don't support flexbox */
@supports not (display: flex) {
  .store-item-link {
    display: block;
  }
}

.store-item-link:hover {
  text-decoration: none;
  color: inherit;
}

.store-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.item-image {
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 180px;
  overflow: hidden;
  flex-shrink: 0;
}

.item-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.store-item:hover .item-img {
  transform: scale(1.02);
}

.item-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #10b981;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.item-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.item-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #000;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.item-condition {
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
}

.item-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0072d9;
}

.btn-store {
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-top: auto;
  border-radius: 6px;
}

.store-cta {
  text-align: center;
  margin-top: 3rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.store-note {
  color: #6b7280;
  font-size: 0.875rem;
  font-style: italic;
}

/* Instagram in-app browser specific fixes - only apply on mobile devices */
@media screen and (-webkit-min-device-pixel-ratio: 0) and (max-width: 768px) {
  .store-grid {
    /* Force block layout for older webkit browsers on mobile only */
    display: block !important;
  }

  .store-item {
    display: block !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
    float: none !important;
    clear: both !important;
  }

  .store-item-link {
    display: block !important;
  }

  .item-content {
    display: block !important;
  }

  .item-details {
    display: block !important;
    text-align: center;
  }

  .item-condition {
    display: inline-block !important;
    margin-bottom: 0.5rem;
  }

  .item-price {
    display: block !important;
    margin-top: 0.5rem;
  }
}

/* Additional Instagram browser class-based fixes */
.instagram-browser .store-grid {
  display: block !important;
  width: 100% !important;
}

.instagram-browser .store-item {
  display: block !important;
  width: 100% !important;
  margin-bottom: 1rem !important;
  float: none !important;
  clear: both !important;
}

.instagram-browser .store-item-link {
  display: block !important;
}

.instagram-browser .item-content {
  display: block !important;
}

.instagram-browser .item-details {
  display: block !important;
  text-align: center;
}

.instagram-browser .item-condition {
  display: inline-block !important;
  margin-bottom: 0.5rem;
}

.instagram-browser .item-price {
  display: block !important;
  margin-top: 0.5rem;
}

/* Additional Instagram browser compatibility - mobile only */
@supports (-webkit-appearance: none) {
  @media (max-width: 768px) {
    .store-grid {
      /* Ensure proper spacing in webkit browsers on mobile */
      -webkit-column-count: 1;
      -webkit-column-gap: 0;
    }
  }
}

/* Mobile First Responsive Design for Store */

/* Small mobile devices (320px and up) */
@media (min-width: 320px) {
  .store-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.75rem;
  }

  .store-item {
    border-radius: 10px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  }

  .item-image {
    height: 160px;
    padding: 0.5rem;
  }

  .item-content {
    padding: 0.875rem;
  }

  .item-title {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .item-price {
    font-size: 1.125rem;
  }

  .btn-store {
    padding: 0.625rem 0.875rem;
    font-size: 0.8rem;
  }
}

/* Medium mobile devices (480px and up) */
@media (min-width: 480px) {
  .store {
    padding: 2.5rem 0;
  }

  .store-grid {
    gap: 1.25rem;
    padding: 0 1rem;
  }

  .item-image {
    height: 180px;
    padding: 0.75rem;
  }

  .item-content {
    padding: 1rem;
  }

  .item-title {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .item-price {
    font-size: 1.25rem;
  }

  .btn-store {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

/* Large mobile devices (640px and up) */
@media (min-width: 640px) {
  .store-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .item-image {
    height: 200px;
  }

  .item-title {
    font-size: 1.1rem;
  }

  .item-price {
    font-size: 1.375rem;
  }

  .btn-store {
    padding: 0.875rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Tablets (768px and up) */
@media (min-width: 768px) {
  .store {
    padding: 3rem 0;
  }

  .store .section-intro {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
  }

  .store-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0;
  }

  .store-item {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .item-image {
    height: 220px;
    padding: 1rem;
  }

  .item-content {
    padding: 1.25rem;
  }

  .item-title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }

  .item-price {
    font-size: 1.5rem;
  }

  .btn-store {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .store-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .item-image {
    height: 240px;
  }

  .item-title {
    font-size: 1.25rem;
  }

  .item-price {
    font-size: 1.625rem;
  }
}

/* Large desktop (1200px and up) */
@media (min-width: 1200px) {
  .store-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  .item-image {
    height: 260px;
  }
}

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

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
  color: #f9fafb;
}

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

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ffcb38; /* New yellow from logo */
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

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

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

  .form-group {
    flex-direction: column;
  }

  .hero-logo {
    width: 200px;
    height: 200px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-container {
    padding: 1.5rem;
    margin: 0 1rem;
  }

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

  .logo h1 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  section {
    padding: 60px 0;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-logo {
    width: 150px;
    height: 150px;
  }

  .logo-img {
    width: 32px;
    height: 32px;
  }

  .logo h1 {
    font-size: 1.25rem;
  }
}
