/* Rum Journey - Caribbean Minimalist Theme */

:root {
  /* RumX brand colors for consistency */
  --journey-primary: #ac6235;  /* RumX rum brown */
  --journey-secondary: #2c3e50;  /* RumX dark blue */
  --journey-accent: #4A90E2;  /* Ocean blue */
  --journey-sand: #F4E8C1;  /* Beach sand */
  --journey-palm: #228B22;  /* Palm green */
  --journey-sunset: #FF6B6B;  /* Caribbean sunset */
  --journey-turquoise: #40E0D0;  /* Caribbean water */
  
  /* Neutral colors matching site */
  --journey-dark: #212529;
  --journey-light: #f8f9fa;
  --journey-bg: #ffffff;
  --journey-text: #212529;
  --journey-text-muted: #6c757d;
  --journey-border: #dee2e6;
  --journey-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Reset & Base */
* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--journey-text);
  background-color: var(--journey-bg);
  line-height: 1.6;
}

/* Wrapper to handle header spacing */
.rum-journey-wrapper {
  padding-top: 80px; /* Space for fixed header */
}

/* Hero Section - Clean & Fun */
.journey-hero {
  background: white;
  padding: 3rem 0 2rem;
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--journey-border);
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.journey-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--journey-dark);
  line-height: 1.2;
}

.journey-subtitle {
  font-size: 1.25rem;
  color: var(--journey-text);
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.journey-cta {
  margin-bottom: 1.5rem;
}

.btn-start-journey {
  background: linear-gradient(135deg, var(--journey-primary) 0%, #CD853F 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(172, 98, 53, 0.2);
}

.btn-start-journey:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(172, 98, 53, 0.3);
}

.journey-teaser {
  font-size: 0.9375rem;
  color: var(--journey-text-muted);
}

.journey-teaser strong {
  color: var(--journey-primary);
  font-weight: 600;
}

/* Journey Map - Gemini Island Background */
.journey-map-section {
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
  background: #E8F4F8; /* Light blue fallback */
}

.journey-map-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  height: 500px;
  background-image: url('/assets/images/gemini_island.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  overflow: visible;
}

/* SVG styles removed - now using background image */

/* Journey Stages */
.journey-stages {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.journey-stages > * {
  pointer-events: auto;
}

.stage-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: transform 0.2s ease;
  z-index: 20;
  animation: dropIn 0.5s ease backwards;
}

@keyframes dropIn {
  from {
    transform: translate(-50%, -150%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

.stage-marker:nth-child(1) { animation-delay: 0.1s; }
.stage-marker:nth-child(2) { animation-delay: 0.2s; }
.stage-marker:nth-child(3) { animation-delay: 0.3s; }
.stage-marker:nth-child(4) { animation-delay: 0.4s; }
.stage-marker:nth-child(5) { animation-delay: 0.5s; }
.stage-marker:nth-child(6) { animation-delay: 0.6s; }

.stage-marker:hover {
  transform: translate(-50%, -50%) scale(1.05);
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, -50%) scale(1.05); }
  50% { transform: translate(-50%, -55%) scale(1.05); }
}

.stage-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  transition: all 0.2s ease;
  position: relative;
}

.stage-marker:hover .stage-circle {
  box-shadow: 0 4px 8px rgba(0,0,0,0.12);
  border-color: var(--journey-primary);
}

.stage-marker.current .stage-circle {
  border-color: var(--journey-primary);
  border-width: 3px;
  box-shadow: 0 0 0 3px rgba(172, 98, 53, 0.1);
}

.stage-marker.completed .stage-circle {
  background: var(--journey-primary);
  color: white;
  border-color: var(--journey-primary);
}

/* Stage colors - subtle beach/ocean theme */
.stage-level-1 .stage-circle { 
  background: linear-gradient(135deg, #FFF8DC, #FAEBD7); 
  border-color: #DEB887;
}

.stage-level-2 .stage-circle { 
  background: linear-gradient(135deg, #FFE4B5, #FFDAB9); 
  border-color: #D2691E;
}

.stage-level-3 .stage-circle { 
  background: linear-gradient(135deg, #E0FFFF, #B0E0E6); 
  border-color: #5F9EA0;
}

.stage-level-4 .stage-circle { 
  background: linear-gradient(135deg, #98FB98, #90EE90); 
  border-color: #3CB371;
}

.stage-level-5 .stage-circle { 
  background: linear-gradient(135deg, #FFB6C1, #FFA07A); 
  border-color: #CD5C5C;
}

.stage-level-6 .stage-circle { 
  background: linear-gradient(135deg, #DDA0DD, #DA70D6); 
  border-color: #8B4789;
}

.stage-label {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--journey-dark);
  background: rgba(255, 255, 255, 0.98);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Stage Detail Section */
.stage-detail-section {
  padding: 2rem 0;
  background: var(--journey-bg);
  display: none;
}

.stage-detail-card {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--journey-border);
  overflow: hidden;
}

.stage-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--journey-light);
  border-bottom: 1px solid var(--journey-border);
  position: relative;
}

.stage-emoji {
  font-size: 2rem;
}

.stage-title-group {
  flex: 1;
}

.stage-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--journey-dark);
  margin: 0 0 0.25rem 0;
}

.stage-level {
  display: inline-block;
  background: var(--journey-primary);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 500;
}

.close-detail {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--journey-text-muted);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

.close-detail:hover {
  color: var(--journey-text);
}

.stage-description {
  font-size: 1rem;
  color: var(--journey-text);
  line-height: 1.7;
  margin: 0;
  padding: 1.5rem 1.5rem 0;
}

.stage-content {
  padding: 1.5rem;
}

.stage-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--journey-dark);
  margin: 1.5rem 0 1rem;
}

.stage-content h3:first-child {
  margin-top: 0;
}

/* Featured Rums Container */
.featured-rums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Fallback rum card styles */
.rum-card {
  background: var(--journey-light);
  border-radius: 8px;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--journey-border);
}

.rum-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-decoration: none;
  color: inherit;
}

.rum-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--journey-dark);
  margin-bottom: 0.25rem;
}

.rum-card-type {
  font-size: 0.875rem;
  color: var(--journey-primary);
  margin-bottom: 0.5rem;
}

.rum-card-description {
  font-size: 0.875rem;
  color: var(--journey-text-muted);
  line-height: 1.4;
}

/* Tips List */
.tips-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tips-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--journey-text);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.tips-list li::before {
  content: '🥃';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.875rem;
}

/* Stage Actions */
.stage-actions {
  position: sticky;
  top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  width: 100%;
  margin-bottom: 0.75rem;
}

.btn-primary {
  background: var(--journey-primary);
  color: white;
}

.btn-primary:hover {
  background: #956140;
  transform: translateY(-1px);
}

.btn-outline-primary {
  background: transparent;
  color: var(--journey-primary);
  border: 1px solid var(--journey-primary);
}

.btn-outline-primary:hover {
  background: var(--journey-primary);
  color: white;
}

.btn-icon {
  font-size: 1rem;
}

.stage-stats {
  text-align: center;
  padding: 1rem 0;
  border-top: 1px solid var(--journey-border);
  border-bottom: 1px solid var(--journey-border);
  margin: 1rem 0;
}

.stage-users {
  color: var(--journey-text-muted);
  font-size: 0.875rem;
  margin: 0;
}

.next-stage-hint {
  background: var(--journey-light);
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  border: 1px solid var(--journey-border);
}

.next-stage-hint h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--journey-dark);
}

.next-stage-hint p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--journey-text-muted);
}

.stage-badge {
  text-align: center;
  margin-top: 1rem;
  padding: 1rem;
  background: var(--journey-light);
  border-radius: 4px;
  border: 1px solid var(--journey-border);
}

.badge-label {
  display: block;
  color: var(--journey-text-muted);
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--journey-primary);
}

/* Discover More Section */
.discover-more-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
}

.discover-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 3rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--journey-border);
}

.discover-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--journey-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.discover-subtitle {
  font-size: 1.125rem;
  color: var(--journey-text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.discover-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.btn-primary-cta,
.btn-secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.btn-primary-cta {
  background: linear-gradient(135deg, var(--journey-primary) 0%, #CD853F 100%);
  color: white;
  box-shadow: 0 3px 10px rgba(172, 98, 53, 0.2);
}

.btn-primary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(172, 98, 53, 0.3);
  color: white;
  text-decoration: none;
}

.btn-secondary-cta {
  background: white;
  color: var(--journey-primary);
  border: 2px solid var(--journey-primary);
}

.btn-secondary-cta:hover {
  background: var(--journey-primary);
  color: white;
  text-decoration: none;
}

.cta-icon {
  font-size: 1.25rem;
}

.discover-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--journey-border);
}

.discover-stats .stat {
  text-align: center;
}

.discover-stats .stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--journey-primary);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

@media (max-width: 768px) {
  .discover-card {
    padding: 2rem 1.5rem;
  }
  
  .discover-title {
    font-size: 1.5rem;
  }
  
  .discover-subtitle {
    font-size: 1rem;
  }
  
  .discover-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary-cta,
  .btn-secondary-cta {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .discover-stats {
    gap: 1.5rem;
  }
  
  .discover-stats .stat strong {
    font-size: 1.25rem;
  }
}

/* Share Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-dialog {
  background: white;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow: auto;
}

.modal-content {
  padding: 0;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--journey-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--journey-dark);
  margin: 0;
}

.modal-header .close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--journey-text-muted);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-body {
  padding: 1.5rem;
}

#share-canvas {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
  border: 1px solid var(--journey-border);
}

.share-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.share-btn {
  padding: 0.625rem 1rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.share-btn:hover {
  opacity: 0.9;
}

.share-btn.twitter {
  background: #1DA1F2;
  color: white;
}

.share-btn.facebook {
  background: #1877F2;
  color: white;
}

.share-btn.download {
  background: var(--journey-primary);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .journey-title {
    font-size: 1.75rem;
  }
  
  .journey-subtitle {
    font-size: 1rem;
  }
  
  .journey-stats {
    gap: 2rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stage-circle {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
  
  .stage-label {
    font-size: 0.75rem;
    bottom: -22px;
  }
  
  .featured-rums {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    width: 100%;
    padding: 0 1rem;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
  
  .journey-map-container {
    height: 400px;
    margin: 0 1rem;
    background-size: cover;
  }
  
  .achievements-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .journey-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .journey-map-container {
    height: 350px;
    margin: 0 0.5rem;
    background-size: cover;
  }
  
  .stage-header {
    flex-wrap: wrap;
  }
  
  .stage-emoji {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
  }
}

/* Utility Classes */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-fluid {
  width: 100%;
  padding: 0;
}

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.col-md-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
  padding: 0 0.5rem;
}

.col-md-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 0.5rem;
}

@media (max-width: 768px) {
  .col-md-8,
  .col-md-4 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Animation for subtle entrance */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stage-detail-card {
  animation: fadeIn 0.3s ease;
}

/* Hide scrollbar but keep functionality */
.journey-map-container::-webkit-scrollbar {
  height: 6px;
}

.journey-map-container::-webkit-scrollbar-track {
  background: transparent;
}

.journey-map-container::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}

.journey-map-container::-webkit-scrollbar-thumb:hover {
  background: rgba(0,0,0,0.3);
}