/* Reset och grundläggande styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --orange-primary: #FF9966;
  --orange-light: #FFB088;
  --orange-lighter: #FFCCAA;
  --peach: #FFE4D6;
  --cream: #FFF5EE;
  --pink-pastel: #FFD5E5;
  --lavender-pastel: #E6D5FF;
  --text-dark: #4A4A4A;
  --text-medium: #6B6B6B;
  --white: #FFFFFF;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, var(--cream) 0%, var(--peach) 50%, var(--pink-pastel) 100%);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', serif;
}

/* Prenumerant-sektion (övre högra hörnet) */
.subscriber-corner {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.subscriber-btn {
  background: var(--orange-primary);
  color: var(--white);
  border: none;
  padding: 15px 25px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(255, 153, 102, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.subscriber-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 102, 0.4);
  background: var(--orange-light);
}

.subscriber-icon {
  font-size: 18px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Formulär overlay */
.form-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.form-overlay.active {
  display: flex;
}

.form-modal {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: var(--text-medium);
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: var(--orange-primary);
}

.question-text {
  font-size: 16px;
  color: var(--text-medium);
  margin-bottom: 20px;
  font-style: italic;
}

/* Header */
.main-header {
  text-align: center;
  padding: 100px 20px 40px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, transparent 100%);
}

.logo h1 {
  font-size: 3.5em;
  color: var(--orange-primary);
  margin-bottom: 10px;
  font-weight: 400;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(255, 153, 102, 0.2);
}

.tagline {
  font-size: 1.2em;
  color: var(--text-medium);
  font-style: italic;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5em;
  color: var(--text-dark);
  margin-bottom: 20px;
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.3em;
  color: var(--text-medium);
  line-height: 1.8;
  font-family: 'Courier New', 'Courier Prime', monospace;
}

/* Menu Section */
.menu-section {
  position: fixed;
  left: 0;
  top: 0;
  width: 360px;
  max-height: 100vh;
  padding: 20px;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: var(--orange-primary) transparent;
}

.menu-section::-webkit-scrollbar {
  width: 6px;
}

.menu-section::-webkit-scrollbar-track {
  background: transparent;
}

.menu-section::-webkit-scrollbar-thumb {
  background-color: var(--orange-primary);
  border-radius: 3px;
}

/* Content Wrapper */
.content-wrapper {
  flex: 1;
  margin-left: 360px;
  width: calc(100% - 360px);
}

/* Logotyp */
.logo-container {
  margin-bottom: 20px;
  flex-shrink: 0;
}

.main-logo {
  max-width: 280px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.menu-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

.menu-item {
  text-decoration: none;
  color: var(--text-dark);
  transition: transform 0.3s ease;
}

.menu-item:hover {
  transform: translateY(-5px);
}

.menu-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 100%;
}

.menu-item:hover .menu-content {
  box-shadow: 0 8px 25px rgba(255, 153, 102, 0.3);
  background: linear-gradient(135deg, var(--white) 0%, var(--peach) 100%);
}

.envelope-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.envelope {
  font-size: 24px;
  z-index: 1;
  position: relative;
}

.floating-hearts {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.menu-item:hover .floating-hearts {
  opacity: 1;
}

.heart {
  position: absolute;
  font-size: 16px;
  animation: float 2s infinite ease-in-out;
}

.heart:nth-child(1) {
  top: -10px;
  left: -20px;
  animation-delay: 0s;
}

.heart:nth-child(2) {
  top: -15px;
  right: -15px;
  animation-delay: 0.3s;
}

.heart:nth-child(3) {
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0.6s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateY(-15px) scale(1.2);
    opacity: 1;
  }
}

.menu-text {
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-dark);
}

/* Språkval */
.language-selector {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--peach);
  flex-shrink: 0;
}

.language-btn {
  background: none;
  border: 2px solid transparent;
  font-size: 28px;
  cursor: pointer;
  padding: 5px;
  border-radius: 8px;
  transition: all 0.3s ease;
  opacity: 0.6;
}

.language-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.language-btn.active {
  opacity: 1;
  border-color: var(--orange-primary);
  background: rgba(255, 153, 102, 0.1);
}

/* Main Content */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.content-section {
  padding: 80px 20px;
  border-radius: 30px;
  margin-bottom: 30px;
  scroll-margin-top: 100px;
}

.content-section.alternate {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
}

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

.section-container h2 {
  font-size: 2.5em;
  color: var(--orange-primary);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 400;
}

.section-container p {
  font-size: 1.1em;
  line-height: 1.9;
  margin-bottom: 20px;
  color: var(--text-dark);
  font-family: 'Courier New', 'Courier Prime', monospace;
}

/* Prenumeration */
.subscription-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.subscription-card {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subscription-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(255, 153, 102, 0.3);
}

.subscription-card.featured {
  border: 3px solid var(--orange-primary);
  position: relative;
  background: linear-gradient(135deg, var(--white) 0%, var(--peach) 100%);
}

.subscription-card h3 {
  font-size: 1.8em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.price {
  font-size: 2.5em;
  color: var(--orange-primary);
  font-weight: bold;
  margin-bottom: 10px;
}

.savings {
  color: var(--orange-primary);
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.subscription-card ul {
  list-style: none;
  margin: 30px 0;
  text-align: left;
}

.subscription-card li {
  padding: 10px 0;
  border-bottom: 1px solid var(--peach);
  color: var(--text-medium);
}

.subscription-card li::before {
  content: "✓ ";
  color: var(--orange-primary);
  font-weight: bold;
  margin-right: 10px;
}

.subscribe-btn {
  background: var(--orange-primary);
  color: var(--white);
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 153, 102, 0.3);
}

.subscribe-btn:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 102, 0.4);
}

/* Hur det fungerar */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.step {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--orange-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(255, 153, 102, 0.3);
}

.step h3 {
  font-size: 1.4em;
  color: var(--text-dark);
  margin-bottom: 15px;
}

.step p {
  color: var(--text-medium);
  font-size: 1em;
}

/* Blogg */
.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.blog-post {
  background: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 153, 102, 0.2);
}

.blog-post h3 {
  font-size: 1.4em;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.post-date {
  color: var(--orange-primary);
  font-size: 0.9em;
  margin-bottom: 15px;
  font-weight: 600;
}

.blog-post p {
  font-size: 1em;
  margin-bottom: 15px;
}

.read-more {
  color: var(--orange-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.read-more:hover {
  color: var(--orange-light);
}

/* Kontakt */
.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
  margin-top: 40px;
}

.contact-info {
  padding: 20px;
}

.contact-details {
  margin-top: 30px;
  line-height: 2;
}

.contact-details p {
  font-size: 1.1em;
}

/* Formulär */
.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--peach);
  border-radius: 10px;
  font-size: 1em;
  font-family: 'Georgia', serif;
  transition: border-color 0.3s ease;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange-primary);
}

.submit-btn {
  background: var(--orange-primary);
  color: var(--white);
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 153, 102, 0.3);
  font-family: 'Georgia', serif;
}

.submit-btn:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 153, 102, 0.4);
}

/* Footer */
.main-footer {
  background: rgba(255, 255, 255, 0.8);
  padding: 40px 20px;
  text-align: center;
  margin-top: 80px;
  backdrop-filter: blur(10px);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  color: var(--text-medium);
  font-size: 1em;
}

/* Hamburgarmeny */
.hamburger-menu {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  background: var(--white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.hamburger-menu:hover {
  box-shadow: 0 6px 20px rgba(255, 153, 102, 0.3);
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--orange-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Responsiv design */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  .hamburger-menu {
    display: flex;
  }

  .logo-container {
    text-align: center;
  }

  .main-logo {
    max-width: 200px;
  }

  .logo h1 {
    font-size: 2.5em;
  }

  .hero-title {
    font-size: 1.8em;
  }

  .hero-subtitle {
    font-size: 1.1em;
  }

  .menu-section {
    position: fixed;
    left: -100%;
    top: 0;
    width: 280px;
    height: 100vh;
    background: var(--white);
    padding: 80px 20px 20px;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .menu-section.active {
    left: 0;
  }

  .content-wrapper {
    margin-left: 0;
    width: 100%;
  }

  .main-header {
    padding: 80px 20px 40px;
  }

  .language-selector {
    margin-top: 20px;
  }

  .language-btn {
    font-size: 24px;
  }

  .menu-container {
    flex-direction: column;
    align-items: stretch;
  }

  .menu-item {
    width: 100%;
  }

  .menu-content {
    flex-direction: row;
    justify-content: flex-start;
  }

  .subscriber-corner {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 0;
  }

  .subscriber-btn {
    padding: 12px 20px;
    font-size: 13px;
  }

  .subscriber-text {
    display: none;
  }

  .section-container h2 {
    font-size: 2em;
  }

  .section-container p {
    font-size: 1em;
  }

  .form-modal {
    padding: 30px 20px;
  }

  .subscription-options {
    grid-template-columns: 1fr;
  }

  .how-it-works {
    grid-template-columns: 1fr;
  }
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Media queries för skärmhöjd */
@media (max-height: 900px) {
  .menu-section {
    padding: 15px;
  }

  .logo-container {
    margin-bottom: 15px;
  }

  .main-logo {
    max-width: 220px;
  }

  .menu-container {
    gap: 12px;
  }

  .menu-content {
    padding: 15px;
  }

  .envelope {
    font-size: 24px;
  }

  .menu-text {
    font-size: 1em;
  }

  .language-selector {
    margin-top: 15px;
    padding-top: 12px;
  }

  .language-btn {
    font-size: 24px;
  }
}

@media (max-height: 700px) {
  .menu-section {
    padding: 10px;
  }

  .logo-container {
    margin-bottom: 10px;
  }

  .main-logo {
    max-width: 180px;
  }

  .menu-container {
    gap: 10px;
  }

  .menu-content {
    padding: 12px;
    gap: 10px;
  }

  .envelope {
    font-size: 20px;
  }

  .menu-text {
    font-size: 0.95em;
  }

  .language-selector {
    margin-top: 10px;
    padding-top: 10px;
  }

  .language-btn {
    font-size: 20px;
    padding: 3px;
  }

  .subscriber-corner {
    top: 10px;
    right: 10px;
  }

  .subscriber-btn {
    padding: 10px 18px;
    font-size: 12px;
  }

  .subscriber-icon {
    font-size: 14px;
  }
}

/* ===== PAYMENT MODAL STYLES ===== */

.payment-modal {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-subtitle {
  color: var(--text-medium);
  font-size: 1.1em;
  margin-bottom: 1.5rem;
  font-style: italic;
}

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

.checkbox-group {
  margin: 1.5rem 0;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95em;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-group a {
  color: var(--orange-primary);
  text-decoration: underline;
}

.checkbox-group a:hover {
  color: var(--orange-light);
}

/* Stripe Card Element */
#card-element {
  padding: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: white;
  transition: border-color 0.3s;
}

#card-element:focus-within {
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 3px rgba(255, 153, 102, 0.1);
}

#card-errors {
  color: #fa755a;
  font-size: 0.9em;
  margin-top: 0.5rem;
  min-height: 20px;
}

/* Loading spinner animation */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Success and error messages */
.success-message, .error-message {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.95em;
}

.success-message {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.error-message {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Mobile responsive for payment modal */
@media (max-width: 768px) {
  .payment-modal {
    width: 95%;
    max-width: none;
  }

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

/* Gift Banner */
.gift-banner {
  padding: 80px 0;
  position: relative;
}

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

.gift-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-light) 100%);
  padding: 50px 60px;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(255, 153, 102, 0.3);
  position: relative;
  overflow: hidden;
}

.gift-banner-content::before {
  content: '🎁';
  position: absolute;
  font-size: 200px;
  opacity: 0.1;
  right: -30px;
  top: 50%;
  transform: translateY(-50%) rotate(15deg);
  pointer-events: none;
}

.gift-banner-text {
  flex: 1;
  z-index: 1;
}

.gift-banner-text h2 {
  color: var(--white);
  font-size: 2.5em;
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gift-banner-text p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.2em;
  margin-bottom: 25px;
  line-height: 1.6;
}

.gift-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gift-features li {
  color: var(--white);
  font-size: 1.1em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.gift-features strong {
  color: var(--white);
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.gift-banner-action {
  flex-shrink: 0;
  z-index: 1;
}

.gift-banner-btn {
  background: var(--white);
  color: var(--orange-primary);
  border: none;
  padding: 22px 50px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.3em;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.gift-banner-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  background: var(--cream);
}

@media (max-width: 968px) {
  .gift-banner {
    padding: 60px 0;
  }

  .gift-banner-content {
    padding: 40px;
    gap: 40px;
  }

  .gift-banner-text h2 {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .gift-banner {
    padding: 50px 0;
  }

  .gift-banner-content {
    flex-direction: column;
    padding: 40px 30px;
    gap: 35px;
    text-align: center;
  }

  .gift-banner-content::before {
    font-size: 150px;
    right: 50%;
    transform: translateX(50%) translateY(-50%) rotate(15deg);
  }

  .gift-banner-text h2 {
    font-size: 1.8em;
  }

  .gift-banner-text p {
    font-size: 1.05em;
  }

  .gift-features {
    text-align: left;
    display: inline-block;
  }

  .gift-features li {
    font-size: 1em;
  }

  .gift-banner-btn {
    width: 100%;
    padding: 20px 40px;
    font-size: 1.2em;
  }
}
