/* File location: modern-style.css */
/* Modern UI style for URBANGRIP Digital Business Card Platform */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: #000000;
  line-height: 1.6;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #000000;
}

h1 {
  font-size: 2.5rem;
  border-bottom: 3px solid #AE1F23;
  padding-bottom: 15px;
  margin-bottom: 30px;
  text-align: center;
}

h2 {
  font-size: 1.8rem;
  text-align: center;
  position: relative;
  margin-bottom: 1.5rem;
}

h2:after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #AE1F23;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #AE1F23;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #8a1a1c;
  text-decoration: underline;
}

/* Header & Logo */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #eeeeee;
  margin-bottom: 30px;
}

.logo img {
  height: 50px;
}

/* Form Elements */
form {
  background: #ffffff;
  padding: 30px;
  border: 1px solid #eeeeee;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.form-section {
  margin-bottom: 30px;
  padding: 25px;
  background: #f9f9f9;
  border: 1px solid #eeeeee;
}

.form-section h2 {
  padding-bottom: 15px;
  border-bottom: 2px solid #AE1F23;
  color: #000000;
  font-size: 1.5rem;
  margin-top: 0;
  text-align: center;
  position: relative;
}

.form-section h2:after {
  display: none;
}

label {
  display: block;
  margin-top: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

input, textarea, select {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #dddddd;
  font-size: 1rem;
  transition: border 0.3s ease;
  background: #ffffff;
}

input:focus, textarea:focus, select:focus {
  border-color: #AE1F23;
  outline: none;
  box-shadow: 0 0 0 1px rgba(174, 31, 35, 0.2);
}

input[type="file"] {
  padding: 10px;
  background: #f9f9f9;
}

button, .button {
  background-color: #AE1F23;
  color: white;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 500;
  width: 100%;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-align: center;
  margin-top: 20px;
}

button:hover, .button:hover {
  background-color: #8a1a1c;
}

/* Theme Options */
.theme-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.theme-option {
  border: 1px solid #eeeeee;
  padding: 20px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.theme-option:hover {
  border-color: #AE1F23;
}

.theme-option input {
  width: auto;
  margin-right: 5px;
}

.theme-option img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border: 1px solid #eeeeee;
  margin-bottom: 15px;
}

.theme-option.selected {
  border-color: #AE1F23;
  background-color: rgba(174, 31, 35, 0.05);
}

/* Utility Classes */
.required-field::after {
  content: " *";
  color: #AE1F23;
}

.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.coming-soon-text {
  background: #AE1F23;
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  transform: rotate(-15deg);
  font-size: 18px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.note-text {
  background: #f8f8f8;
  border-left: 4px solid #AE1F23;
  color: #000000;
  padding: 15px 20px;
  margin: 20px 0;
}

.disabled-option {
  opacity: 0.6;
  cursor: not-allowed;
}

.disabled-option:hover {
  border-color: #eeeeee;
  background-color: inherit;
}

/* Card Preview */
.card-preview {
  border: 1px solid #eeeeee;
  margin: 30px 0;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Success / Thank You Page */
.success-container {
  text-align: center;
  padding: 40px 20px;
}

.qr-code-section {
  margin: 30px 0;
  padding: 30px;
  background: #f9f9f9;
  border: 1px solid #eeeeee;
}

.qr-code-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.qr-code-container img {
  max-width: 200px;
  margin-bottom: 15px;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.share-button {
  background: #f9f9f9;
  color: #000000;
  padding: 10px 20px;
  border: 1px solid #eeeeee;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-button:hover {
  background: #AE1F23;
  color: #ffffff;
}

/* Card Display (index.php) */
.card-display {
  max-width: 600px;
  margin: 0 auto;
  border: 1px solid #eeeeee;
  box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 15px;
    width: 100%;
  }
  
  h1 {
    font-size: 1.8rem;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .form-section {
    padding: 15px;
    margin-bottom: 20px;
  }
  
  .theme-options {
    grid-template-columns: 1fr;
  }
  
  /* Improved NFC form for mobile */
  form {
    padding: 15px;
  }
  
  input, textarea, select {
    padding: 10px;
    font-size: 16px; /* Prevent zoom on iOS */
  }
  
  .drop-zone {
    padding: 15px;
  }
  
  /* Improved card preview for mobile */
  .preview-container {
    height: 70vh;
  }
  
  .actions {
    flex-direction: column;
    gap: 10px;
  }
  
  .action-button {
    width: 100%;
  }
  
  /* Improved thank you page for mobile */
  .thank-you-container {
    max-width: 100%;
  }
  
  .qr-section {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .qr-code, .url-section {
    width: 100%;
    text-align: center;
  }
  
  .qr-code img {
    margin: 0 auto;
  }
  
  .share-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .share-btn {
    flex: 1 0 40%;
    justify-content: center;
    min-width: 120px;
  }
  
  /* Improved card display on index page */
  .cards {
    grid-template-columns: 1fr;
  }
  
  .card-body {
    padding: 40px 15px 15px;
  }
  
  /* Site header adjustments */
  .site-header img {
    height: 45px;
  }
  
  /* Thank You page header spacing */
  .header br {
    display: block;
    margin: 8px 0;
    content: "";
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  
  .container {
    padding: 10px;
  }
  
  /* Further optimize form elements */
  label {
    margin-top: 15px;
    font-size: 14px;
  }
  
  input, textarea, select {
    margin-bottom: 10px;
  }
  
  button, .button, .cta-button {
    padding: 12px 15px;
  }
  
  /* Theme options adjustments */
  .theme-option {
    padding: 15px;
  }
  
  .theme-option img {
    height: 150px;
  }
  
  /* Image upload section */
  .image-tip {
    font-size: 12px;
  }
  
  .drop-zone-prompt {
    font-size: 14px;
  }
  
  /* Thank you page optimization */
  .header h1 {
    font-size: 24px;
  }
  
  .header p {
    font-size: 16px;
    padding: 0 15px;
  }
  
  .content {
    padding: 20px 15px;
  }
  
  .card-preview {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-image {
    margin: 0 auto 15px;
  }
  
  /* URL box and share button optimizations */
  .url-box {
    padding: 8px;
  }
  
  .url-text {
    font-size: 14px;
    padding: 8px;
  }
  
  .copy-btn {
    font-size: 14px;
    padding: 10px;
  }
  
  .share-buttons {
    justify-content: space-between;
  }
  
  .share-btn {
    min-width: 110px;
    font-size: 14px;
    padding: 8px 10px;
  }
  
  /* Preview page */
  .preview-container {
    height: 60vh;
  }
  
  .section-title {
    font-size: 1.2rem;
    text-align: center;
    width: 100%;
    margin-bottom: 1.2rem;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header {
    padding: 10px 0;
    margin-bottom: 15px;
  }
  
  .site-header img {
    height: 35px;
  }
  
  h1 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }
  
  .preview-container {
    height: 50vh;
  }
  
  .form-section {
    padding: 10px;
    margin-bottom: 15px;
  }
  
  .form-section h2 {
    font-size: 1.2rem;
    padding-bottom: 8px;
  }
}

/* Specific fixes for iOS Safari */
@supports (-webkit-touch-callout: none) {
  /* iOS Safari specific styles */
  input, select, textarea {
    font-size: 16px; /* Prevent zoom on focus */
  }
  
  .drop-zone {
    /* Improve touch target size */
    min-height: 100px;
  }
  
  /* Fix for iOS Safari flexbox issues */
  .share-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
  }
  
  .share-btn {
    width: 100%;
  }
}

/* Utility classes for responsive design */
.hide-on-mobile {
  display: block;
}

.show-on-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hide-on-mobile {
    display: none;
  }
  
  .show-on-mobile {
    display: block;
  }
}

/* Call-to-action buttons */
.cta-button {
  display: inline-block;
  background-color: #AE1F23;
  color: white;
  padding: 12px 25px;
  text-align: center;
  text-decoration: none;
  font-weight: 500;
  margin: 10px 5px;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #8a1a1c;
  color: white;
  text-decoration: none;
}

.secondary-button {
  background-color: #f1f1f1;
  color: #000000;
  border: 1px solid #dddddd;
}

.secondary-button:hover {
  background-color: #e5e5e5;
  color: #000000;
}

/* Header with logo */
.site-header {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  margin-bottom: 30px;
}

.site-header img {
  height: 60px;
}

/* Thank You Page Improvements */
.thank-you-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border: 1px solid #eeeeee;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  overflow: hidden;
  padding: 0;
}

.header {
  background: #AE1F23;
  color: white;
  padding: 30px;
  text-align: center;
}

.header h1 {
  font-size: 28px;
  margin-bottom: 10px;
  border-bottom: none;
  color: white;
}

.header p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 0;
}

.content {
  padding: 30px;
}

.content h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #000000;
  border-bottom: 2px solid #AE1F23;
  padding-bottom: 8px;
  display: inline-block;
}

.card-preview {
  display: flex;
  align-items: center;
  background: #f9f9f9;
  padding: 20px;
  margin-bottom: 30px;
  border: 1px solid #eeeeee;
}

.section-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #000000;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
  width: 100%;
  display: block;
}

.section-title:after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background-color: #AE1F23;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.info-section {
  background: #f9f9f9;
  padding: 20px;
  border: 1px solid #eeeeee;
  margin: 25px 0;
}

.next-steps {
  background: #f9f9f9;
  padding: 20px;
  border-left: 4px solid #AE1F23;
  margin: 25px 0;
}

.next-steps ul {
  padding-left: 20px;
  margin-top: 10px;
}

.next-steps li {
  margin-bottom: 10px;
}

.cta-container {
  text-align: center;
  margin: 30px 0;
}

/* URL Box Styling */
.url-box {
  display: flex;
  flex-direction: column;
  border: 1px solid #eeeeee;
  padding: 10px;
  background: white;
  margin-bottom: 15px;
}

.url-text {
  padding: 10px;
  color: #000000;
  font-weight: 500;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-all;
  margin-bottom: 10px;
  text-align: center;
  background: #f9f9f9;
  border: 1px solid #eeeeee;
}

.copy-btn {
  background: #AE1F23;
  color: white;
  border: none;
  padding: 12px 15px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  display: block;
}

.copy-btn:hover {
  background: #8a1a1c;
} 