/* assets/style.css */

/* Reset & Base */
#cocktail-trail-app {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#cocktail-trail-app {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  max-width: 100%;
  margin: 0 auto;
  background: #ffffff;
  color: #1a1a1a;
  position: relative;
}

/* Breadcrumb */
.ct-breadcrumb {
  /* margin: 0 20px 20px; */
  /* padding: 0 0 15px; */
  background: transparent;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  /* font-size: clamp(12px, 3vw, 14px); */
  color: #666666;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0px;
}

.ct-breadcrumb-link {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  color: var( --e-global-color-primary ) !important;
  cursor: pointer;
  text-decoration: none;
  font-size: inherit;
  padding: 0;
  margin: 0;
}

.ct-breadcrumb-link:hover {
  color: #daa520;
  text-decoration: underline;
}

.ct-breadcrumb-separator {
  margin: 0 8px;
  color: #999999;
}

.ct-breadcrumb-current {
  font-weight: 600;
  color: #333333;
}

.ct-breadcrumb > div {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
}

.ct-breadcrumb > div > * {
  white-space: nowrap;
}

.ct-breadcrumb .ct-logout-btn {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--e-global-color-primary);
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 600;
  text-transform: none;
  box-shadow: none;
}

.ct-breadcrumb .ct-logout-btn:hover,
.ct-breadcrumb .ct-logout-btn:focus {
  color: #daa520;
  background: transparent;
}
body.page-id-19 .ct-breadcrumb-link {
  padding: 0 !important;
}

/* Logout Button */
.ct-logout-btn {
  background: none;
  color: #dc3545;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ct-logout-btn:hover {
  color: white;
}

/* Header */
.ct-header {
  padding: 30px 20px 20px;
  text-align: center;
  /*background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);*/
}

.ct-header h1 {
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
  color: #ffffff;
}

.ct-header h2 {
  font-size: clamp(20px, 5vw, 24px);
  font-weight: 600;
  color: #e0e0e0;
}

.ct-subtitle {
  font-size: clamp(14px, 4vw, 18px);
  font-weight: 500;
  color: #f0c040;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}

/* Content */
.ct-content {
  padding: 25px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.ct-description {
  font-size: clamp(14px, 3.5vw, 16px);
  line-height: 1.6;
  color: #333333;
  margin-bottom: 25px;
}

.ct-note {
  font-size: clamp(12px, 3vw, 14px);
  color: #666666;
  margin: 15px 0;
  font-style: italic;
}

.ct-scan-note {
  font-size: clamp(11px, 2.5vw, 12px);
  color: #999999;
  text-align: center;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Forms */
.ct-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0 auto;
}

.ct-input-wrapper {
  width: 100%;
}

.ct-form input[type="email"],
.ct-form input[type="password"],
.ct-form input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  background: #f8f8f8;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  color: #1a1a1a;
  font-size: clamp(14px, 3.5vw, 16px);
  transition: all 0.3s;
  box-sizing: border-box;
}

.ct-form input[type="text"]:focus {
  outline: none;
  border-color: #b8860b;
  background: #ffffff;
}

.ct-form input[name="postal_code"].ct-valid {
  border-color: #46b450;
  background: #f0f9f1;
}

.ct-form input[name="postal_code"].ct-invalid {
  border-color: #d63638;
}

.ct-form input[name="postal_code"]::placeholder {
  text-transform: uppercase;
  letter-spacing: 1px;
}

.ct-input-group {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.ct-input-group input[type="password"],
.ct-input-group input[type="text"] {
  padding-right: 56px;
}

.ct-toggle-password {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  color: #b8860b;
  cursor: pointer;
  margin: 0;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  appearance: none;
}

.ct-toggle-password:hover,
.ct-toggle-password:focus {
  color: #8b6508;
  outline: none;
}

.ct-toggle-password svg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.ct-toggle-password[data-visibility="hidden"] .ct-password-icon-show {
  opacity: 1;
}

.ct-toggle-password[data-visibility="visible"] .ct-password-icon-hide {
  opacity: 1;
}

.ct-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ct-form input::placeholder {
  color: #999999;
}

.ct-form input:focus {
  outline: none;
  border-color: #b8860b;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.ct-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(13px, 3vw, 14px);
  color: #333333;
  cursor: pointer;
}

.ct-checkbox input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
  width: 18px;
  height: 18px;
}

.ct-search-input {
  width: 100%;
  padding: 14px 16px;
  background: #f8f8f8;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  color: #1a1a1a;
  font-size: clamp(14px, 3.5vw, 16px);
  margin-bottom: 15px;
  box-sizing: border-box;
}

.ct-search-input:focus {
  outline: none;
  border-color: #b8860b;
  background: #ffffff;
}

/* Buttons */
.ct-btn {
  width: auto;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  touch-action: manipulation;
}

.ct-btn-primary {
  background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.2);
  margin-left: auto;
  margin-right: auto;
}

.ct-btn-primary:hover,
.ct-btn-primary:active {
  background: linear-gradient(135deg, #daa520 0%, #b8860b 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(184, 134, 11, 0.3);
}

.ct-btn-secondary {
  background: #ffffff;
  color: #b8860b;
  border: 2px solid #b8860b;
}

.ct-btn-secondary:hover,
.ct-btn-secondary:active {
  background: #f8f8f8;
  border-color: #daa520;
  color: #daa520;
}

.ct-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ct-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Links */
.ct-links {
  margin-top: 20px;
  text-align: center;
}

.ct-link {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  color: #b8860b;
  text-decoration: underline;
  cursor: pointer;
  font-size: clamp(13px, 3vw, 14px);
  padding: 5px;
}

.ct-link:hover,
.ct-link:active {
  color: #daa520;
}

/* Progress */
.ct-progress {
  text-align: center;
  font-size: clamp(16px, 4vw, 18px);
  font-weight: 600;
  margin-bottom: 25px;
  color: #b8860b;
  padding: 15px;
  background: #f8f8f8;
  border-radius: 8px;
}

.ct-progress span {
  font-size: clamp(20px, 5vw, 24px);
}

/* Interactive Stamp Grid */
.ct-stamp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 15px;
  margin: 25px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .ct-stamp-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
    max-width: 400px;
  }
}

.ct-stamp {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  min-height: 120px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ct-stamp-interactive {
  cursor: pointer;
}

.ct-stamp-interactive:hover {
  border-color: #b8860b;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ct-stamp-empty {
  border-style: dashed;
  border-color: #d0d0d0;
  background: #f8f8f8;
}

.ct-stamp-filled {
  border-color: #b8860b;
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
}

.ct-stamp-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: clamp(14px, 3.5vw, 16px);
  flex-shrink: 0;
}

.ct-stamp-empty .ct-stamp-number {
  background: #d0d0d0;
  color: #999999;
}

.ct-stamp-filled .ct-stamp-number {
  background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
  color: #ffffff;
}

.ct-stamp-content {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.ct-stamp-location {
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px 0;
  line-height: 1.2;
  word-wrap: break-word;
  hyphens: auto;
}

.ct-stamp-date {
  font-size: clamp(10px, 2.5vw, 12px);
  color: #666666;
  margin: 0 0 2px 0;
  font-weight: 500;
}

.ct-stamp-time {
  font-size: clamp(10px, 2.5vw, 12px);
  color: #888888;
  margin: 0;
}

.ct-stamp-placeholder {
  font-size: clamp(11px, 2.8vw, 13px);
  color: #999999;
  margin: 0;
  line-height: 1.3;
  text-align: center;
}

.ct-stamp-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: #28a745;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

/* Loading States for Stamps */
.ct-loading-stamps {
  padding: 40px 20px;
  text-align: center;
  color: #888888;
  font-size: clamp(14px, 3.5vw, 16px);
  background: #f8f8f8;
  border-radius: 12px;
  border: 2px dashed #d0d0d0;
  animation: pulse-loading 1.5s ease-in-out infinite;
}

.ct-loading-stamps-small {
  padding: 20px;
  text-align: center;
  color: #888888;
  font-size: clamp(12px, 3vw, 14px);
  background: #f8f8f8;
  border-radius: 8px;
  border: 1px dashed #d0d0d0;
  animation: pulse-loading 1.5s ease-in-out infinite;
}

@keyframes pulse-loading {
  0% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.6;
  }
}

/* Stamp Preview (Small) */
.ct-stamp-preview {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 20px 0;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 400px) {
  .ct-stamp-preview {
    grid-template-columns: repeat(3, 1fr);
    max-width: 200px;
  }
}

.ct-stamp-small {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 700;
  border-radius: 8px;
}

/* Scanner */
.ct-scanner {
  padding: 20px 0;
}

.ct-scanner-placeholder {
  background: #f8f8f8;
  border: 3px solid #d0d0d0;
  border-radius: 12px;
  padding: 50px 20px;
  text-align: center;
  margin-bottom: 25px;
}

.ct-scanner-placeholder p:first-child {
  font-size: clamp(25px, 8vw, 42px);
  margin-bottom: 10px;
}

/* Locations */
.ct-search-section {
  margin-bottom: 20px;
}

.ct-city-filter {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
}

.ct-city-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

@media (max-width: 480px) {
  .ct-city-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ct-city-btn {
  padding: 12px;
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  color: #333333;
  font-size: clamp(12px, 3vw, 14px);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
}

.ct-city-btn:hover,
.ct-city-btn:active {
  background: #f8f8f8;
  border-color: #b8860b;
  color: #b8860b;
}

.ct-locations-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ct-location-item {
  background: #ffffff;
  border-radius: 8px;
  padding: 18px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ct-location-item:hover,
.ct-location-item:active {
  border-color: #b8860b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ct-location-item h3 {
  font-size: clamp(16px, 4vw, 20px);
  color: #1a1a1a;
  margin-bottom: 8px;
}

.ct-location-address,
.ct-location-city {
  font-size: clamp(13px, 3vw, 14px);
  color: #666666;
  margin-bottom: 5px;
}

.ct-location-desc {
  font-size: clamp(13px, 3vw, 14px);
  color: #333333;
  margin-top: 10px;
  line-height: 1.5;
}

.ct-no-results {
  text-align: center;
  color: #999999;
  padding: 40px 20px;
  font-size: clamp(14px, 3.5vw, 16px);
}

.ct-menu-nav {
  display: flex;
  flex-direction: column;
}

.ct-menu-nav a {
  padding: 18px 20px;
  color: #333333;
  text-decoration: none;
  font-size: clamp(14px, 3.5vw, 16px);
  font-weight: 500;
  border-bottom: 1px solid #f0f0f0;
  transition: all 0.3s;
}

.ct-menu-nav a:hover,
.ct-menu-nav a:active {
  background: #f8f8f8;
  color: #b8860b;
  padding-left: 30px;
}

/* Loading */
.ct-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.ct-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e0e0e0;
  border-top-color: #b8860b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Messages */
.ct-error,
.ct-success {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 3000;
  max-width: 90%;
  text-align: center;
  font-size: clamp(13px, 3vw, 14px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ct-error {
  background: #dc3545;
  color: #ffffff;
}

.ct-success {
  background: #28a745;
  color: #ffffff;
}

/* Completion Notice */
.ct-completion-notice {
  background: linear-gradient(135deg,#C02937, #69171f);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(40, 167, 69, 0.2);
  border: 3px solid #ffffff;
}

.ct-completion-content h2 {
  color: #ffffff;
  font-size: 1.8rem;
  margin: 0 0 10px 0;
  font-weight: 500;
}

.ct-completion-content h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin: 0 0 10px 0;
  font-weight: 500;
}

.ct-completion-content p {
  color: #ffffff;
  font-size: clamp(14px, 3.5vw, 16px);
  margin: 8px 0;
  line-height: 1.4;
}

.ct-completion-content a {
  color: #ffffff !important;
  text-decoration: underline;
}

.ct-completion-content p strong {
  font-weight: 700;
  color: #ffffff;
  text-decoration: underline;
}

.ct-completion-details {
  font-size: clamp(12px, 3vw, 14px) !important;
  opacity: 0.9;
  font-style: italic;
}

/* Trails List */
.ct-trails-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ct-trail-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  border: 2px solid #e0e0e0;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ct-trail-item:hover {
  border-color: #b8860b;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.ct-trail-info h3 {
  font-size: clamp(18px, 4.5vw, 22px);
  color: #1a1a1a;
  margin-bottom: 10px;
  font-weight: 700;
}

.ct-trail-desc {
  font-size: clamp(14px, 3.5vw, 16px);
  color: #666666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.ct-trail-progress {
  margin-bottom: 20px;
}

.ct-progress-bar {
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.ct-progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #b8860b 0%, #daa520 100%);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.ct-progress-text {
  font-size: clamp(12px, 3vw, 14px);
  color: #888888;
  font-weight: 500;
  margin: 0;
}

.ct-trail-actions {
  margin-top: 15px;
}

.ct-trail-actions .ct-btn {
  width: 100%;
  padding: 12px 20px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .ct-header {
    padding: 25px 15px 15px;
  }

  .ct-content {
    padding: 20px 15px;
  }

  .ct-btn {
    padding: 14px 25px;
  }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
  .ct-btn,
  .ct-city-btn,
  .ct-location-item {
    -webkit-tap-highlight-color: rgba(184, 134, 11, 0.1);
  }
}

/* Landscape mobile adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .ct-header {
    padding: 15px 20px 10px;
  }

  .ct-header h1 {
    font-size: 20px;
  }

  .ct-subtitle {
    font-size: 14px;
  }
}

#ct-back-to-card {
  margin-top: 20px;
}

/* Verification Status Animation */
@keyframes ct-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.ct-checking-icon {
  color: #b8860b;
  font-weight: bold;
  font-size: 18px;
  margin-right: 8px;
}
