/* Shore Skin Analyzer CSS */

.skincare-analyzer {
    min-height: 100vh;
    background: transparent;
    font-family: inherit;
    color: inherit;
    padding: 2rem 1rem;
}

.title-font {
    font-family: inherit;
}

.skincare-analyzer .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: none;
    margin: 0 auto;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(100, 116, 139, 0.15);
    box-shadow: 0 4px 20px rgba(71, 85, 105, 0.08);
    border-radius: 1rem;
    padding: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.glass-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: inherit;
}

.upload-area {
    border: 2px dashed #94a3b8;
    border-radius: 0.75rem;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    aspect-ratio: 3 / 4;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area:hover:not(.converting) {
    border-color: #64748b;
    background: #f1f5f9;
}

.upload-area.converting {
    cursor: wait;
}

.upload-area.has-image {
    padding: 0;
    border: none;
    overflow: hidden;
    position: relative;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
}

.icon-camera {
    width: 5rem;
    height: 5rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.spinner {
    width: 4rem;
    height: 4rem;
    border: 4px solid #64748b;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.btn-primary {
    width: 100%;
    margin-top: 1.5rem;
    background: linear-gradient(to right, #475569, #1e293b);
    color: white;
    font-weight: 600;
    padding: 1rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 30px rgba(71, 85, 105, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(to right, #64748b, #334155);
}

.btn-secondary {
    width: 100%;
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    color: inherit;
    font-weight: 600;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #f1f5f9;
}

.progress-bar {
    width: 100%;
    background: #cbd5e1;
    border-radius: 9999px;
    height: 0.5rem;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #64748b, #334155);
    transition: width 0.3s;
}

.scan-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.empty-state, .loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 24rem;
    text-align: center;
}

.icon-alert {
    width: 4rem;
    height: 4rem;
    color: #64748b;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.results-section {
    display: none;
}

.results-section.active {
    display: block;
}

.recommended-plan {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #94a3b8;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.plan-card {
    background: linear-gradient(to bottom right, #f1f5f9, #e2e8f0);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 2px solid;
    margin-top: 1rem;
}

.plan-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
}

.icon-check {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.analysis-findings {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.finding-item {
    margin-bottom: 1.5rem;
}

.finding-title {
    font-weight: 500;
    color: inherit;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.bullet-point {
    width: 0.5rem;
    height: 0.5rem;
    background: #64748b;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.finding-content {
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.6;
    padding-left: 1rem;
}

.finding-list {
    padding-left: 1rem;
}

.finding-list p {
    margin-bottom: 0.25rem;
}

.disclaimer {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    margin-top: 1rem;
}

.disclaimer p {
    font-size: 0.75rem;
    color: #64748b;
    font-style: italic;
}

.condition-levels {
    margin-bottom: 1.5rem;
}

.condition-item {
    margin-bottom: 1rem;
}

.condition-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.condition-bar {
    width: 100%;
    background: #e5e7eb;
    border-radius: 9999px;
    height: 0.5rem;
    overflow: hidden;
}

.condition-bar-fill {
    height: 100%;
    transition: width 1s ease-out;
}

.alternative-plans {
    margin-bottom: 1.5rem;
}

.alt-plan-btn {
    width: 100%;
    text-align: left;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alt-plan-btn:hover {
    background: #f8fafc;
}

.alt-plan-btn.selected {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.info-footer {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    padding: 1.5rem;
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

.info-content {
    display: flex;
    gap: 1rem;
}

.info-content .icon-alert {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    flex-shrink: 0;
}

.info-text {
    font-size: 0.875rem;
    color: #334155;
    line-height: 1.6;
}

.hidden {
    display: none !important;
}

input[type="file"] {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .plan-features {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        gap: 1.5rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
}
