/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://use.typekit.net/gkr3qos.css');

/* Base Typography */
body {
    font-family: "Inter Tight", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

h1, h2, h3, h4, h5, h6, .step-title {
    font-family: orpheus-pro, serif;
    font-weight: 400;
    font-style: normal;
}

/* Client View Specific Styles */

/* Demo Notice */
.demo-notice {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px;
    border-radius: 10px;
    margin-top: 10px;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Loading Animation */
.loading::after {
    content: '';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Image Container */
.image-container {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.image-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, hsl(26.09, 85.19%, 96%) 0%, hsl(26.09, 85.19%, 90%) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 0.8em;
    text-align: center;
    border: 2px solid hsl(26.09, 85.19%, 94.71%);
}

/* Validation */
.validation-icon {
    font-size: 1.2em;
}

/* Info Panel */
.info-panel {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    border-left: 4px solid #667eea;
}

.info-panel h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* Phases List */
.phases-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.phase-item {
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9em;
    color: #555;
    border: 1px solid #e9ecef;
}

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

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.modal img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.close-modal {
    background: #AB0033;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 10px;
}

#view-in-store-btn {
    background: hsl(7.5, 78.87%, 72.15%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 10px;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

#view-in-store-btn:hover {
    background: hsl(7.5, 78.87%, 65%);
}

/* Routine Steps Layout */
.routine-steps {
    padding: 10px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
    padding: 10px;
    background: hsl(26.09, 85.19%, 98%);
    border-radius: 15px;
    transition: all 0.3s ease;
    border-left: 5px solid #AB0033;
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.step:last-child {
    margin-bottom: 0;
}

/* Step Elements */
.step-number {
    background: #AB0033;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 10px;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    margin-right: 10px;
}

.step-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.product-name {
    color: #AB0033;
    font-weight: 500;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.step-description {
    color: #666;
    line-height: 1.5;
    font-size: 1em;
    white-space: pre-line;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        margin: 0;
        border-radius: 0;
    }

    .header {
        padding: 10px 10px;
    }

    .header h1 {
        font-size: 1.6em;
        line-height: 1.2;
    }

    .routine-steps {
        padding: 10px 0;
    }

    .step {
        flex-direction: row;
        text-align: left;
        padding: 10px;
        align-items: flex-start;
    }

    .step-number {
        margin-right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1em;
        flex-shrink: 0;
    }

    .step-content {
        flex: 1;
        margin-right: 10px;
        text-align: left;
    }

    .step-title {
        font-size: 1.3em;
        text-align: left;
    }

    .product-name {
        text-align: left;
    }

    .step-description {
        text-align: left;
    }

    .product-image,
    .no-image {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
    }
}

/* Treatments Display */
.treatments-display {
    padding: 10px 0;
}

.treatments-header {
    margin-bottom: 20px;
    text-align: center;
}

.treatments-header h2 {
    color: #AB0033;
    margin-bottom: 8px;
    font-size: 1.8em;
}

.treatments-subtitle {
    color: #6c757d;
    font-size: 1.1em;
    margin: 0;
}

.treatments-list {
    /* Remove flex properties to match admin structure */
}

/* Steps Header */
.steps-header {
    margin-bottom: 20px;
    text-align: center;
}

.steps-header h2 {
    color: #AB0033;
    margin-bottom: 8px;
    font-size: 1.8em;
}

.steps-subtitle {
    color: #6c757d;
    font-size: 1.1em;
    margin: 0;
}

.treatment-card {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
    padding: 10px;
    background: hsl(26.09, 85.19%, 98%);
    border-radius: 15px;
    border-left: 5px solid #AB0033;
    transition: all 0.3s ease;
}

.treatment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.treatment-card:last-child {
    margin-bottom: 0;
}

.treatment-card:last-child {
    margin-bottom: 0;
}

.treatment-icon {
    font-size: 2.5em;
    margin-right: 20px;
    flex-shrink: 0;
}

.treatment-content {
    flex: 1;
    margin-right: 20px;
}

.treatment-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
}

.treatment-description {
    color: #555;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.treatment-frequency {
    display: flex;
    align-items: center;
    gap: 8px;
}

.frequency-label {
    font-weight: 500;
    color: #6c757d;
    font-size: 0.9em;
}

.frequency-value {
    background: #AB0033;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

.treatment-booking {
    flex-shrink: 0;
}

.booking-btn {
    background: #AB0033;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: inline-block;
}

.booking-btn:hover {
    background: #8b0029;
    color: white;
}

@media (max-width: 768px) {
    .treatments-display {
        padding: 10px 0;
    }
    
    .treatment-card {
        flex-direction: row;
        text-align: left;
        padding: 10px;
        align-items: flex-start;
    }
    
    .treatment-icon {
        margin-right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.5em;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .treatment-content {
        flex: 1;
        margin-right: 10px;
        text-align: left;
    }
    
    .treatment-title {
        font-size: 1.3em;
        text-align: left;
    }
    
    .treatment-description {
        text-align: left;
    }
    
    .treatment-frequency {
        justify-content: flex-start;
        text-align: left;
    }
}
