/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
}

main {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Input & Preview */
#imageInput {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
    border: 2px dashed #ccc;
    border-radius: 8px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: border-color 0.2s;
}

#imageInput:hover {
    border-color: #2e7d32;
}

#preview {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* AI Response Container */
#aiResponse {
    margin-top: 20px;
    padding: 0; /* Let children handle padding */
    background-color: transparent;
}

.ai-response-content {
    animation: fadeIn 0.5s ease-in;
}

/* Score Section */
.clutter-score {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.clutter-score h3 {
    margin: 0;
    font-size: 2rem;
    color: #2c3e50;
    font-weight: 800;
}

/* Reflection Boxes (Green Bubbles) */
.reflection-box {
    background-color: #e8f5e9;
    border-left: 5px solid #43a047;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.reflection-box:hover {
    transform: translateY(-2px);
}

.reflection-box h4 {
    margin: 0 0 10px 0;
    color: #2e7d32;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.reflection-box p {
    margin: 0;
    color: #1b5e20;
    font-style: italic;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Analysis Lists */
.analysis-section {
    margin-top: 30px;
}

.analysis-section h4 {
    margin: 0 0 15px 0;
    color: #1a1a1a;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

ul {
    padding-left: 0;
    list-style: none;
    margin: 0;
}

li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-size: 1rem;
}

/* Custom List Bullets */
ul.positives-list li::before {
    content: "✅";
    position: absolute;
    left: 0;
    top: 0;
}

ul.tips-list li::before {
    content: "💡";
    position: absolute;
    left: 0;
    top: 0;
}

/* Loading State */
.loading {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

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

/* Mobile Responsiveness */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    main {
        padding: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .clutter-score h3 {
        font-size: 1.5rem;
    }

    .reflection-box p {
        font-size: 1rem;
    }
}