@import 'tailwindcss';
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@400;500&display=swap');

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@theme {
    --font-sans: 'Montserrat', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
    --font-heading: 'Lato', ui-sans-serif, system-ui, sans-serif;
}

/* Lindsay's Leather Brand Guidelines */
:root {
    --primary-brown: #371C16;
    --accent-brown: #B5702F; 
    --pure-black: #0B0B0B;
    --pure-white: #FFFFFF;
    --leather-gradient: linear-gradient(135deg, #B5702F 0%, #371C16 100%);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Typography Components */
.heading {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
}

.body-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.leather-gradient {
    background: var(--leather-gradient);
}

/* Card-Based Design System */
.lindsay-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    border: 1px solid rgba(181, 112, 47, 0.1);
}

.lindsay-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Button System */
.lindsay-btn {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    border-radius: 12px;
    padding: 16px 32px;
    min-height: 52px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.lindsay-btn-primary {
    background: var(--accent-brown);
    color: white;
}

.lindsay-btn-primary:hover {
    background: var(--primary-brown);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(181, 112, 47, 0.3);
}

.lindsay-btn-secondary {
    background: #f8f9fa;
    color: var(--primary-brown);
    border: 2px solid var(--accent-brown);
}

.lindsay-btn-secondary:hover {
    background: var(--accent-brown);
    color: white;
}

.lindsay-btn-secondary.selected {
    background: var(--accent-brown);
    color: white;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: white;
}

.step-circle.completed {
    background: var(--accent-brown);
}

.step-circle.current {
    background: var(--accent-brown);
}

.step-circle.pending {
    background: #d1d5db;
    color: #6b7280;
}

.step-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #6b7280;
    margin-left: 0.5rem;
}

.step-text.current {
    color: var(--primary-brown);
}

/* Progress Bar */
.progress-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-fill {
    height: 100%;
    background: var(--accent-brown);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* Character Input Boxes */
.character-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.character-input {
    width: 100%;
    height: 56px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    font-size: 20px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.character-input:focus {
    outline: none;
    border-color: var(--accent-brown);
    box-shadow: 0 0 0 3px rgba(181, 112, 47, 0.1);
}

.character-input.filled {
    border-color: var(--accent-brown);
    background: rgba(181, 112, 47, 0.05);
}

/* Stamps Grid */
.stamps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stamp-item {
    aspect-ratio: 1;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    position: relative;
    overflow: hidden;
}

.stamp-item:hover {
    border-color: var(--accent-brown);
    transform: scale(1.02);
}

.stamp-item.selected {
    border-color: var(--accent-brown);
    background: rgba(181, 112, 47, 0.1);
}

.stamp-item img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* Mobile Responsive Design - Tablets (768px and below) */
@media (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: rgba(181, 112, 47, 0.1);
    }
    
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .lindsay-card {
        padding: 1.5rem 1rem;
        margin: 1rem;
        max-width: 100%;
    }
    
    .character-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        max-width: 100%;
    }
    
    .character-input {
        height: 48px;
        font-size: 17px;
        min-width: 0;
    }
    
    .stamps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        max-width: 100%;
    }
    
    .lindsay-btn {
        padding: 16px 24px;
        min-height: 56px;
        font-size: 17px;
        width: 100%;
        touch-action: manipulation;
    }
    
    .step-indicator {
        flex-wrap: wrap;
        gap: 0.75rem;
        justify-content: center;
    }
    
    /* Ensure inputs don't zoom on iOS */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
        -webkit-appearance: none;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    .lindsay-card {
        padding: 1.25rem 1rem;
        margin: 0.75rem 0.5rem;
        max-width: 100%;
    }
    
    .character-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
        max-width: 100%;
    }
    
    .character-input {
        height: 48px;
        font-size: 16px;
        min-width: 0;
    }
    
    .stamps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        max-width: 100%;
    }
    
    .lindsay-btn {
        padding: 14px 20px;
        min-height: 52px;
        font-size: 16px;
    }
}

/* Extra Small Mobile (375px and below - iPhone SE, etc.) */
@media (max-width: 375px) {
    .lindsay-card {
        padding: 1rem 0.75rem;
        margin: 0.5rem 0.35rem;
    }
    
    .character-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.35rem;
    }
    
    .character-input {
        height: 46px;
        font-size: 15px;
    }
    
    .lindsay-btn {
        padding: 13px 18px;
        min-height: 50px;
        font-size: 15px;
    }
}

/* Touch-friendly buttons for mobile and tablet */
.touch-button {
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
}

/* Tablet Optimization Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    /* iPad and tablet landscape/portrait */
    .lindsay-card {
        padding: 2.5rem;
        margin: 1.5rem;
    }
    
    .character-grid {
        grid-template-columns: repeat(8, 1fr);
        gap: 1rem;
    }
    
    .character-input {
        height: 60px;
        font-size: 22px;
    }
    
    .stamps-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 1.25rem;
    }
    
    .lindsay-btn {
        padding: 18px 36px;
        min-height: 56px;
        font-size: 18px;
    }
    
    /* Touch targets should be larger on tablets */
    .touch-button {
        min-height: 48px;
        min-width: 48px;
    }
    
    /* Admin dashboard tablet optimizations */
    .admin-orders-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 1.5rem;
    }
    
    .admin-order-card {
        background: white;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        padding: 1.5rem;
        border: 1px solid rgba(181, 112, 47, 0.1);
        transition: all 0.2s ease;
    }
    
    .admin-order-card:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        transform: translateY(-2px);
    }
    
    .admin-stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .admin-action-buttons {
        display: flex;
        gap: 1rem;
        margin-top: 1rem;
    }
    
    .admin-action-button {
        flex: 1;
        min-height: 52px;
        border-radius: 8px;
        font-weight: 600;
        transition: all 0.2s ease;
        touch-action: manipulation;
    }
}

/* Canvas container for mobile */
.canvas-container {
    touch-action: none;
    user-select: none;
    max-width: 100%;
    overflow: visible;
}

/* Prevent horizontal scroll on all devices */
html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
    button,
    a,
    input[type="submit"],
    input[type="button"] {
        min-height: 44px;
        min-width: 44px;
        touch-action: manipulation;
    }
}

/* Landing Page Specific Styles */
.landing-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 2rem; */
    background: #f8f9fa;
}

.landing-card {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.landing-title {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--primary-brown);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.landing-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .landing-title {
        font-size: 2rem;
    }
    
    .landing-subtitle {
        font-size: 1rem;
    }
    
    /* .landing-container {
        padding: 1rem;
    } */
}
