/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inconsolata;
}

/* Background - Mobile First Approach */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  position: relative;
  background: url('/assets/images/background-mobile.png') no-repeat center center/cover;
}

/* Pattern Circle (Top Left) */
body::before {
  content: "";
  background: url('/assets/images/pattern-circle.svg') no-repeat center center/contain;
  position: absolute;
  top: 8%;
  right: 5%; 
  width: 80px;
  height: 80px;
  z-index: 1;
}

/* Pattern Lines (Bottom Right) */
body::after {
  content: "";
  background: url('/assets/images/pattern-lines.svg') no-repeat center center/contain;
  position: absolute;
  bottom: 5%;
  right: 5%;
  width: 100px;
  height: 50px;
  z-index: 1;
}

/* Pattern Squiggly Line - Bottom (Left Side) */
.pattern-bottom {
  background: url('/assets/images/pattern-squiggly-line-bottom-mobile-tablet.svg') no-repeat center center/contain;
  position: absolute;
  bottom: 0%;
  left: 0%;
  width: 100px;
  height: 40px;
  z-index: 1;
}

/* Pattern Squiggly Line - Top (Right Side) */
.pattern-top {
  background: url('/assets/images/pattern-squiggly-line-top.svg') no-repeat center center/contain;
  position: absolute;
  top: 0%;
  right: 5%;
  width: 80px;
  height: 30px;
  z-index: 1;
}

/* Container */
.container {
  max-width: 100%;
  width: 100%;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  height: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Form Section */
h1 {
  font-size: 20px;
  margin-bottom: 10px;
  color: white;
}

p {
  font-size: 14px;
  color: white;
}

.ticket-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  margin: auto;
  width: 90%;
  justify-content: center;
}

/* Form Inputs */
form {
  width: 100%;
}

input[type="text"],
input[type="email"],
input[type="file"] {
  width: 100%;
}

input[type="file"] {
  display: none;
}

label {
  margin: 0px;
  text-align: left;
  color: white;
  font-size: 14px;
}

input {
  width: 100%;
  padding: 10px;
  color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

input:focus {
  border-color: #007bff;
  outline: none;
}

/* File Upload */
.file-upload {
  border: 1px dashed #ccc;
  padding: 15px;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  width: 100%;
}

.file-upload:hover {
  border-color: #007bff;
}

/* Button */
button {
  background: hsl(7, 80.70%, 65.50%);
  color: black;
  padding: 8px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
  width: auto;
  margin-top: 15px;
}

button:hover {
  background: hsl(7, 71.80%, 59.60%);
}

/* Ticket Section Styling */
#ticket {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px;
  text-align: center;
  color: white;
  position: relative;
  z-index: 2;
}

.ticket-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Conference Logo */
.conference-logo {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}

.conference-logo img {
  max-width: 120px; /* Smaller for mobile */
  height: auto;
}

.conference-logo span {
  font-size: 16px;
  font-weight: 700;
}

/* Heading Styles */
.congrats-heading {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 0;
}

.ticket-ready {
  font-size: 24px;
  font-weight: 700;
  margin-top: 0;
}

.highlight-name {
  color: #FF8370;
}

/* Email Info */
.email-info {
  font-size: 14px;
  line-height: 1.5;
  max-width: 100%;
  margin: 0 auto 20px;
}

.highlight-email {
  color: #FF8370;
}

/* Ticket Card */
.ticket-card {
  width: 100%;
  max-width: 300px; /* Smaller for mobile */
  position: relative;
  margin: 0 auto;
}

/* The border image container that holds the SVG */
.border-img {
  position: relative;
  width: 100%;
}

.border-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* The actual ticket content that sits on top of the border image */
.ticket-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: 15px; /* Less padding for mobile */
  border-radius: 16px;
  margin: 8px;
}

/* Left notch */
.left-notch {
  position: absolute;
  width: 30px; /* Smaller for mobile */
  height: 30px; /* Smaller for mobile */
  border-radius: 50%;
  top: 50%;
  left: -15px;
  transform: translateY(-50%);
  z-index: 2;
}

/* Right notch */
.right-notch {
  position: absolute;
  width: 30px; /* Smaller for mobile */
  height: 30px; /* Smaller for mobile */
  border-radius: 50%;
  top: 50%;
  right: -15px;
  transform: translateY(-50%);
  z-index: 2;
}

/* The rest of the ticket card styling */
.ticket-left {
  text-align: left;
  flex: 1;
  position: relative;
  z-index: 3;
}

.event-details {
  margin: 5px 0 10px;
  font-size: 12px;
  color: white;
  opacity: 0.8;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.profile img {
  width: 40px; /* Smaller for mobile */
  height: 40px; /* Smaller for mobile */
  border-radius: 50%;
  border: 2px solid white;
  object-fit: cover;
}

.profile-info h3 {
  margin: 0;
  font-size: 14px; /* Smaller for mobile */
  font-weight: 600;
  color: white;
}

.github-handle {
  margin: 3px 0 0;
  font-size: 12px; /* Smaller for mobile */
  color: white;
  opacity: 0.8;
}

.ticket-right {
  display: flex;
  align-items: center;
  width: 30px; /* Smaller for mobile */
  position: relative;
  z-index: 3;
}

.ticket-number {
  transform: rotate(90deg);
  font-size: 12px; /* Smaller for mobile */
  font-weight: bold;
  white-space: nowrap;
  letter-spacing: 1px;
  position: absolute;
  right: -15px;
  color: white;
}

.hidden {
  display: none;
}

/* Tablet Styles */
@media (min-width: 768px) {
  body {
    background: url('/assets/images/background-tablet.png') no-repeat center center/cover;
  }
  
  body::before {
    width: 150px;
    height: 150px;
    top: 15%;
    left: 10%;
  }
  
  body::after {
    width: 200px;
    height: 100px;
    bottom: 8%;
    right: 8%;
  }
  
  .pattern-bottom {
    width: 150px;
    height: 60px;
    bottom: 2%;
    left: 3%;
  }
  
  .pattern-top {
    width: 120px;
    height: 50px;
    top: 2%;
    right: 8%;
  }
  
  h1 {
    font-size: 28px;
  }
  
  p {
    font-size: 16px;
  }
  
  .ticket-form {
    width: 80%;
  }
  
  .ticket-card {
    max-width: 400px;
  }
  
  .conference-logo img {
    max-width: 150px;
  }
  
  .congrats-heading, .ticket-ready {
    font-size: 30px;
  }
  
  .ticket-content {
    padding: 20px 25px;
  }
  
  .left-notch, .right-notch {
    width: 35px;
    height: 35px;
  }
  
  .left-notch {
    left: -17px;
  }
  
  .right-notch {
    right: -17px;
  }
  
  .profile img {
    width: 50px;
    height: 50px;
  }
  
  .profile-info h3 {
    font-size: 16px;
  }
  
  .github-handle {
    font-size: 14px;
  }
  
  .ticket-number {
    font-size: 14px;
  }
}

/* Desktop Styles */
@media (min-width: 1024px) {
  body {
    background: url('/assets/images/background-desktop.png') no-repeat center center/cover;
  }
  
  body::before {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 15%;
  }
  
  body::after {
    width: 250px;
    height: 120px;
    bottom: 10%;
    right: 10%;
  }
  
  .pattern-bottom {
    background: url('/assets/images/pattern-squiggly-line-bottom-desktop.svg') no-repeat center center/contain;
    width: 250px;
    height: 80px;
    bottom: 5%;
    left: 5%;
  }
  
  .pattern-top {
    width: 180px;
    height: 70px;
    top: 5%;
    right: 10%;
  }
  
  .container {
    max-width: 1200px;
    padding: 40px;
  }
  
  h1 {
    font-size: 32px;
  }
  
  .ticket-form {
    width: 60%;
    max-width: 500px;
  }
  
  .ticket-card {
    max-width: 520px;
  }
  
  .conference-logo img {
    max-width: 180px;
  }
  
  .congrats-heading, .ticket-ready {
    font-size: 36px;
  }
  
  .email-info {
    font-size: 16px;
    max-width: 500px;
  }
  
  .ticket-content {
    padding: 20px 30px;
  }
  
  .left-notch, .right-notch {
    width: 40px;
    height: 40px;
  }
  
  .left-notch {
    left: -20px;
  }
  
  .right-notch {
    right: -20px;
  }
  
  .event-details {
    font-size: 14px;
  }
  
  .profile {
    gap: 15px;
  }
  
  .profile img {
    width: 60px;
    height: 60px;
  }
  
  .profile-info h3 {
    font-size: 18px;
  }
  
  .github-handle {
    font-size: 14px;
  }
  
  .ticket-right {
    width: 40px;
  }
  
  .ticket-number {
    font-size: 16px;
    right: -20px;
  }
}