/* Extracted from crawls\walkthrough.blade.php (block 1) */
/* CSS Variables */
:root {
--crawl-primary: #d4733f;
--crawl-secondary: #c19a6b;
--crawl-muted: #f5f5f5;
--crawl-border: #e5e7eb;
--crawl-radius: 0.625rem;
}

/* Light Background */
body {
background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
position: relative;
}

body::before {
content: '';
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: 
radial-gradient(circle at 20% 50%, rgba(212, 115, 63, 0.05) 0%, transparent 50%),
radial-gradient(circle at 80% 80%, rgba(193, 154, 107, 0.05) 0%, transparent 50%);
pointer-events: none;
z-index: 0;
}

/* Icon Sizes */
.icon-sm {
width: 1rem;
height: 1rem;
}

.icon {
width: 1.5rem;
height: 1.5rem;
}

.icon-lg {
width: 2rem;
height: 2rem;
}

.icon-xl {
width: 4rem;
height: 4rem;
}

/* Walkthrough Styles */
.walkthrough-section {
padding: 4.5rem 0 1rem 0;
position: relative;
z-index: 1;
}

.walkthrough-container {
max-width: 56rem;
}

.hero-badge {
display: inline-flex;
align-items: center;
gap: 0.5rem;
padding: 0.125rem 0.5rem;
border-radius: 9999px;
background: linear-gradient(135deg, rgba(212, 115, 63, 0.15) 0%, rgba(193, 154, 107, 0.15) 100%);
border: 1px solid rgba(212, 115, 63, 0.3);
margin-bottom: 0.5rem;
box-shadow: 0 4px 12px rgba(212, 115, 63, 0.15);
animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
0%, 100% { 
box-shadow: 0 4px 12px rgba(212, 115, 63, 0.15);
}
50% { 
box-shadow: 0 4px 20px rgba(212, 115, 63, 0.25);
}
}

.hero-badge-dot {
width: 0.5rem;
height: 0.5rem;
border-radius: 9999px;
background-color: var(--crawl-primary);
animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
0%, 100% { 
opacity: 1;
transform: scale(1);
}
50% { 
opacity: 0.6;
transform: scale(0.8);
}
}

.hero-badge-text {
font-size: 0.75rem;
font-weight: 600;
color: var(--crawl-primary);
letter-spacing: 0.05em;
text-transform: uppercase;
}

.walkthrough-header {
text-align: center;
margin-bottom: 1rem;
animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.walkthrough-header h1 {
font-size: 1.5rem;
font-weight: 800;
margin-bottom: 0.25rem;
background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
letter-spacing: -0.02em;
}

.walkthrough-subtitle {
font-size: 0.875rem;
color: #6b7280;
line-height: 1.75;
max-width: 42rem;
margin: 0 auto;
}

.walkthrough-progress {
margin-bottom: 0.75rem;
animation: fadeIn 1s ease-out 0.2s both;
}

@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

.progress-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 0.25rem;
}

.progress-text {
font-size: 0.75rem;
font-weight: 600;
color: #4b5563;
letter-spacing: 0.05em;
}

.progress-bar {
width: 100%;
height: 0.5rem;
background: linear-gradient(90deg, rgba(229, 231, 235, 0.8) 0%, rgba(209, 213, 219, 1) 100%);
border-radius: 9999px;
overflow: hidden;
box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--crawl-primary) 0%, var(--crawl-secondary) 100%);
border-radius: 9999px;
transition: width 0.5s ease;
box-shadow: 0 0 20px rgba(212, 115, 63, 0.5);
position: relative;
}

.progress-fill::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
animation: shimmer 2s infinite;
}

@keyframes shimmer {
0% { transform: translateX(-100%); }
100% { transform: translateX(100%); }
}

.step-card {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.98) 100%);
border: 1px solid rgba(212, 115, 63, 0.2);
border-radius: calc(var(--crawl-radius) + 4px);
padding: 1rem 1rem;
margin-bottom: 0.75rem;
box-shadow: 
0 20px 60px rgba(0, 0, 0, 0.08),
0 0 0 1px rgba(212, 115, 63, 0.1),
inset 0 1px 0 rgba(255, 255, 255, 0.5);
animation: cardSlideUp 0.6s ease-out 0.4s both;
position: relative;
overflow: hidden;
}

.step-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
background: linear-gradient(90deg, transparent, var(--crawl-primary), transparent);
opacity: 0.5;
}

@keyframes cardSlideUp {
from {
opacity: 0;
transform: translateY(40px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

.step-content-grid {
display: flex;
flex-direction: column;
gap: 0.75rem;
position: relative;
}

@media (min-width: 1024px) {
.step-content-grid {
flex-direction: row;
gap: 1rem;
align-items: start;
}
}

.step-image-container {
flex-shrink: 0;
width: 100%;
height: 8rem;
border-radius: var(--crawl-radius);
overflow: hidden;
border: 1px solid rgba(212, 115, 63, 0.3);
box-shadow: 
0 10px 40px rgba(0, 0, 0, 0.4),
0 0 0 1px rgba(212, 115, 63, 0.2);
position: relative;
}

.step-image-container::after {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
pointer-events: none;
}

@media (min-width: 1024px) {
.step-image-container {
width: 10rem;
height: auto;
}
}

.step-image-container img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.6s ease;
}

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

.step-content {
flex: 1;
position: relative;
z-index: 1;
}

.step-content .step-number {
width: auto;
height: auto;
min-width: auto;
max-width: none;
flex-shrink: 1;
box-sizing: border-box;
font-size: 0.625rem;
font-weight: 700;
color: #ffffff;
margin-bottom: 0.25rem;
letter-spacing: 0.1em;
text-transform: uppercase;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.25rem 0.75rem;
background: linear-gradient(135deg, var(--crawl-primary) 0%, var(--crawl-secondary) 100%);
border-radius: 9999px;
box-shadow: 0 4px 15px rgba(212, 115, 63, 0.4);
white-space: nowrap;
overflow: hidden;
}

.step-title {
font-size: 1.125rem;
font-weight: 800;
margin-bottom: 0.25rem;
background: linear-gradient(135deg, #1a1a1a 0%, #374151 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
letter-spacing: -0.01em;
}

@media (min-width: 640px) {
.step-title {
font-size: 1.25rem;
}
}

.step-description {
font-size: 0.8125rem;
color: #4b5563;
margin-bottom: 0.5rem;
line-height: 1.75;
}

.step-details-title {
font-size: 0.6875rem;
font-weight: 600;
color: #374151;
margin-bottom: 0.25rem;
}

.step-details-list {
display: flex;
flex-direction: column;
gap: 0.25rem;
}

.step-detail {
display: flex;
align-items: start;
gap: 0.375rem;
}

.step-detail svg {
flex-shrink: 0;
margin-top: 0.125rem;
width: 1rem;
height: 1rem;
}

.step-detail p {
color: #6b7280;
margin: 0;
font-size: 0.75rem;
}

.walkthrough-nav {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 0.75rem;
animation: fadeIn 0.8s ease-out 0.6s both;
}

.step-indicators {
background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(249, 250, 251, 0.95) 100%);
border-radius: calc(var(--crawl-radius) + 2px);
padding: 0.5rem;
border: 1px solid rgba(212, 115, 63, 0.2);
box-shadow: 
0 10px 40px rgba(0, 0, 0, 0.08),
inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.indicators-title {
font-size: 0.625rem;
font-weight: 600;
margin-bottom: 0.375rem;
color: #374151;
}

.indicators-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.75rem;
justify-items: center;
}

@media (min-width: 640px) {
.indicators-grid {
grid-template-columns: repeat(4, 1fr);
gap: 0.75rem;
}
}

.indicator-btn {
padding: 0.75rem 0.375rem;
border-radius: 50%;
border: 2px solid rgba(212, 115, 63, 0.2);
background: linear-gradient(135deg, rgba(249, 250, 251, 0.8) 0%, rgba(243, 244, 246, 1) 100%);
cursor: pointer;
transition: all 0.3s ease;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 5rem;
aspect-ratio: 1;
overflow: hidden;
}

.indicator-btn:hover {
border-color: rgba(212, 115, 63, 0.5);
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(212, 115, 63, 0.2);
}

.indicator-btn.active {
border-color: var(--crawl-primary);
background: linear-gradient(135deg, rgba(212, 115, 63, 0.2) 0%, rgba(193, 154, 107, 0.2) 100%);
box-shadow: 0 0 30px rgba(212, 115, 63, 0.4);
}

.indicator-btn.completed {
border-color: rgba(212, 115, 63, 0.4);
background: linear-gradient(135deg, rgba(212, 115, 63, 0.1) 0%, rgba(193, 154, 107, 0.1) 100%);
}

.indicator-icon {
width: 1rem;
height: 1rem;
margin: 0 auto 0.25rem;
color: #9ca3af;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
flex-shrink: 0;
}

.indicator-btn.active .indicator-icon,
.indicator-btn.completed .indicator-icon {
color: var(--crawl-primary);
filter: drop-shadow(0 0 10px rgba(212, 115, 63, 0.6));
}

.indicator-text {
font-size: 0.5625rem;
font-weight: 600;
line-height: 1.2;
color: #1f2937;
white-space: normal;
text-align: center;
max-width: 100%;
word-wrap: break-word;
overflow-wrap: break-word;
padding: 0 0.125rem;
hyphens: auto;
}

@media (min-width: 640px) {
.indicator-text {
font-size: 0.6875rem;
}
}

@media (min-width: 1024px) {
.indicator-text {
font-size: 0.75rem;
}
}

.indicator-btn.active .indicator-text {
color: var(--crawl-primary);
}

.icon {
width: 1.5rem;
height: 1.5rem;
}

.icon-sm {
width: 1rem;
height: 1rem;
}

.icon-lg {
width: 2rem;
height: 2rem;
}

.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.375rem;
padding: 0.375rem 1rem;
border-radius: var(--crawl-radius);
font-size: 0.8125rem;
font-weight: 600;
transition: all 0.3s ease;
text-decoration: none;
border: none;
cursor: pointer;
position: relative;
overflow: hidden;
}

.btn::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
border-radius: 50%;
background: rgba(255, 255, 255, 0.2);
transform: translate(-50%, -50%);
transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
width: 300px;
height: 300px;
}

.btn-primary {
background: linear-gradient(135deg, var(--crawl-primary) 0%, var(--crawl-secondary) 100%);
color: white;
box-shadow: 0 4px 15px rgba(212, 115, 63, 0.4);
}

.btn-primary:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 6px 25px rgba(212, 115, 63, 0.6);
}

.btn-primary:disabled {
opacity: 0.5;
cursor: not-allowed;
}

.btn-outline {
background: linear-gradient(135deg, rgba(249, 250, 251, 0.8) 0%, rgba(243, 244, 246, 1) 100%);
color: #374151;
border: 1px solid rgba(156, 163, 175, 0.3);
}

.btn-outline:hover:not(:disabled) {
background: linear-gradient(135deg, rgba(243, 244, 246, 1) 0%, rgba(229, 231, 235, 1) 100%);
border-color: rgba(107, 114, 128, 0.5);
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-outline:disabled {
opacity: 0.5;
cursor: not-allowed;
}

.btn-lg {
padding: 0.375rem 1rem;
font-size: 0.8125rem;
height: 2rem;
}

/* Modal Styles */
.walkthrough-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999;
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

.modal-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.75);
backdrop-filter: blur(4px);
}

.modal-content {
position: relative;
background-color: white;
border-radius: 1rem;
max-width: 32rem;
width: 100%;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
from {
transform: scale(0.95) translateY(-20px);
opacity: 0;
}
to {
transform: scale(1) translateY(0);
opacity: 1;
}
}

.modal-close {
position: absolute;
top: 1rem;
right: 1rem;
background: none;
border: none;
font-size: 2rem;
line-height: 1;
color: var(--crawl-foreground);
opacity: 0.5;
cursor: pointer;
padding: 0;
width: 2rem;
height: 2rem;
display: flex;
align-items: center;
justify-content: center;
border-radius: 0.5rem;
transition: all 0.2s;
}

.modal-close:hover {
opacity: 1;
background-color: var(--crawl-muted);
}

.modal-body {
padding: 2.5rem 2rem;
text-align: center;
}

.modal-icon {
width: 4rem;
height: 4rem;
margin: 0 auto 1.5rem;
display: flex;
align-items: center;
justify-content: center;
background-color: var(--crawl-light);
border-radius: 50%;
}

.modal-icon svg {
width: 2rem;
height: 2rem;
color: var(--crawl-primary);
}

.modal-body h3 {
font-size: 1.5rem;
font-weight: 700;
color: var(--crawl-foreground);
margin-bottom: 0.75rem;
}

.modal-body p {
color: var(--crawl-muted-foreground);
line-height: 1.6;
margin-bottom: 2rem;
font-size: 1rem;
}

.modal-actions {
display: flex;
flex-direction: column;
gap: 0.75rem;
}

@media (min-width: 640px) {
.modal-actions {
flex-direction: row;
justify-content: center;
}
}

.modal-actions .btn {
flex: 1;
min-width: 0;
}

@media (min-width: 640px) {
.modal-actions .btn {
flex: initial;
min-width: 10rem;
}
}

/* Body lock when modal is open */
body.modal-open {
overflow: hidden;
}