* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  min-height: 100vh;
  color: #333;
}

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

header {
  text-align: center;
  background: linear-gradient(45deg, #c41e3a, #8b0000);
  color: white;
  padding: 40px 20px;
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

h1 {
  font-size: 3em;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
  font-size: 1.2em;
  opacity: 0.9;
  margin-bottom: 10px;
}

.domain-ref {
  font-size: 1em;
  opacity: 0.7;
  font-style: italic;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: inline-block;
  padding: 5px 15px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.2);
}

/* Profile Section Styles */
.profile-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 40px;
}

.profile-image {
    flex-shrink: 0;
}

.profile-image img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #c41e3a;
    box-shadow: 0 8px 25px rgba(196, 30, 58, 0.3);
    transition: transform 0.3s ease;
}

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

.profile-text {
    flex: 1;
}

.profile-text h2 {
    color: #c41e3a;
    font-size: 2.2em;
    margin-bottom: 20px;
    margin-top: 0;
}

.profile-text p {
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #333;
}

.profile-text p:last-child {
    font-style: italic;
    text-align: center;
    font-size: 1.2em;
    margin-top: 25px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    border-left: 4px solid #c41e3a;
}

.profile-text strong {
    color: #c41e3a;
    font-weight: bold;
}

.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.tab-button {
  background: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.tab-button.active {
  background: #c41e3a;
  color: white;
}

/* Ny stil för länk-knappar */
.tab-button-link {
  background: #fff;
  color: #333;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: inline-block;
}

.tab-button-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  background: #f8f9fa;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.intro-text {
  background: white;
  padding: 25px;
  border-radius: 15px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-size: 1.1em;
  line-height: 1.6;
}

.pizza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.pizza-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.pizza-card:hover {
  transform: translateY(-5px);
}

.pizza-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4em;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.pizza-content {
  padding: 20px;
}

.pizza-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #c41e3a;
  margin-bottom: 5px;
}

.pizza-restaurant {
  font-size: 1.1em;
  color: #666;
  margin-bottom: 10px;
}

.pizza-date {
  font-size: 0.9em;
  color: #999;
  margin-bottom: 15px;
}

.pizza-description {
  line-height: 1.6;
  margin-bottom: 15px;
}

.pizza-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.stars {
  color: #ffd700;
  font-size: 1.2em;
}

.pizza-price {
  font-weight: bold;
  color: #27ae60;
  font-size: 1.1em;
}

/* Favorites Styles */
.favorites-section {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.section-title {
  font-size: 2em;
  color: #c41e3a;
  text-align: center;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  font-style: italic;
  color: #666;
  margin-bottom: 30px;
}

.favorite-card {
  position: relative;
  border: 3px solid #ffd700;
  box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.favorite-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ffd700;
  color: #333;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.8em;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Secret Page Styles */
.secret-section {
  background: white;
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.secret-title {
  font-size: 2.5em;
  color: #c41e3a;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.secret-subtitle {
  font-style: italic;
  color: #666;
  margin-bottom: 40px;
  font-size: 1.2em;
}

.qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.qr-code-wrapper {
  position: relative;
  background: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 3px solid #c41e3a;
}

/* Pizza QR-kod styling */
.pizza-qr {
  width: 200px;
  height: 200px;
  background: white;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.pizza-qr:hover {
  transform: scale(1.05);
}

.qr-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 20px;
}

.qr-square {
  background: #c41e3a;
  border-radius: 2px;
  opacity: 0.8;
}

.qr-square.large {
  background: #8b0000;
  opacity: 1;
}

.qr-square:nth-child(odd) {
  opacity: 0.6;
}

.qr-square:nth-child(3n) {
  opacity: 0.9;
}

.qr-pizza-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5em;
  background: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #c41e3a;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.qr-url-display {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8em;
  color: #666;
  background: white;
  padding: 5px 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  white-space: nowrap;
}

.qr-fallback {
  width: 200px;
  height: 200px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  color: #666;
  border-radius: 10px;
  text-align: center;
  line-height: 1.4;
}

.qr-info {
  text-align: left;
  max-width: 300px;
}

.qr-info h3 {
  color: #c41e3a;
  font-size: 1.8em;
  margin-bottom: 15px;
}

.qr-info p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.website-url {
  font-weight: bold;
  color: #c41e3a;
  font-size: 1.2em;
  text-align: center;
  background: #f8f9fa;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.qr-stats {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.stat {
  text-align: center;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  flex: 1;
}

.stat-number {
  display: block;
  font-size: 1.5em;
  font-weight: bold;
  color: #c41e3a;
}

.stat-label {
  display: block;
  font-size: 0.9em;
  color: #666;
  margin-top: 5px;
}

.secret-message {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  padding: 30px;
  border-radius: 15px;
  border-left: 5px solid #c41e3a;
  margin-bottom: 30px;
}

.secret-message p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.secret-message p:first-child {
  font-weight: bold;
  color: #c41e3a;
  font-size: 1.1em;
}

.secret-message p:last-child {
  font-style: italic;
  text-align: right;
  margin-bottom: 0;
}

/* Back Button Styles */
.back-button-section {
  text-align: center;
  margin-top: 30px;
}

.back-button {
  background: #c41e3a;
  color: white;
  padding: 15px 30px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin: 0 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(196, 30, 58, 0.3);
}

.back-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 30, 58, 0.5);
  background: #a01729;
}

.back-button.secondary {
  background: #ffd700;
  color: #333;
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.back-button.secondary:hover {
  background: #ffed4a;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .pizza-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2em;
  }

  .nav-tabs {
    flex-wrap: wrap;
    gap: 10px;
  }

  .tab-button, .tab-button-link {
    padding: 10px 20px;
    font-size: 1em;
  }

  .domain-ref {
    font-size: 0.9em;
  }

  .profile-section {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
    gap: 25px;
  }
  
  .profile-image img {
    width: 250px;
    height: 250px;
  }
  
  .profile-text h2 {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  
  .profile-text p {
    font-size: 1em;
    text-align: left;
  }
  
  .profile-text p:last-child {
    font-size: 1.1em;
    text-align: center;
  }

  /* Mobile QR adjustments */
  .qr-container {
    flex-direction: column;
    gap: 30px;
  }

  .qr-info {
    text-align: center;
  }

  .qr-stats {
    flex-direction: column;
    gap: 10px;
  }

  .secret-title {
    font-size: 2em;
  }

  .back-button {
    display: block;
    margin: 10px auto;
  }
}

/* Extra small phones - iPhone SE and smaller */
@media (max-width: 390px) {
  h1 {
    font-size: 1.5em !important;
    line-height: 1.1;
  }
}