/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #F9F9F9;
    color: #333333;
    line-height: 1.6;
}

/* Screen management */
.screen {
    display: none;
    min-height: 100vh;
}

.screen.active {
    display: block;
}

/* Logo styles */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    height: 32px;
    width: auto;
}

/* Header */
.header {
    padding: 24px;
    text-align: center;
}

/* Intro/Onboarding Screen */
.intro-container {
    display: flex;
    max-width: 1000px;
    margin: 50px auto;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    overflow: hidden;
    min-height: 600px;
}

.intro-left {
    flex: 1;
    background: #f8f8f8;
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 32px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 32px;
    padding: 16px;
}

.intro-right {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.headline {
    font-size: 36px;
    font-weight: 700;
    margin: 30px 0 20px 0;
    line-height: 1.2;
}

.headline .outlined-text {
    color: rgb(190, 190, 190);
    -webkit-text-stroke: 1.25px #333;
    text-stroke: 1.25px #333;
}

.description {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.5;
}

.how-it-works h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.steps {
    margin-bottom: 40px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #333;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
}

.cta-button {
    background: #333;
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-end;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background: #555;
}

.arrow {
    font-size: 18px;
}

/* Home Screen */
.content-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.new-review-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.new-review-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.new-review-section p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.recent-reviews-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.recent-reviews-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
}

.disclaimer {
    font-size: 14px;
    color: #999;
    margin-bottom: 25px;
    font-style: italic;
}

.review-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-item {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 16px 20px;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 16px;
    color: #333;
}

.review-item:hover {
    background: #ebebeb;
}

/* Review Screen */
.review-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.upload-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.upload-section h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    position: relative;
    background: #fafafa;
    transition: border-color 0.2s;
}

.upload-area:hover {
    border-color: #999;
}

.upload-area.dragover {
    border-color: #333;
    background: #f0f0f0;
}

.upload-content p {
    margin-bottom: 8px;
    font-size: 16px;
    color: #666;
}

.file-requirements {
    font-size: 14px;
    color: #999;
}

.browse-button {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ccc;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: border-color 0.2s;
}

.browse-button:hover {
    border-color: #999;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f0f0;
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 15px;
}

.filename {
    font-size: 14px;
    color: #333;
    font-family: 'Courier New', monospace;
}

.remove-file {
    background: none;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.remove-file:hover {
    background: #e0e0e0;
    color: #666;
}

.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.back-button {
    background: transparent;
    color: #333;
    border: 1px solid #333;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.back-button:hover {
    background: #333;
    color: white;
}

.get-report-button {
    background: #333;
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.get-report-button:hover {
    background: #555;
}

.get-report-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Report Screen */
.report-section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.report-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.report-content {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
    white-space: pre-wrap; /* Preserves formatting from Gemini output */
}

/* Markdown-specific styles */
.report-content h1 {
    font-size: 24px;
    font-weight: 700;
    margin: 20px 0 10px;
}

.report-content h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 15px 0 8px;
}

.report-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 12px 0 6px;
}

.report-content p {
    margin-bottom: 12px;
}

.report-content ul, .report-content ol {
    margin: 12px 0;
    padding-left: 30px;
}

.report-content li {
    margin-bottom: 6px;
}

.report-content strong {
    font-weight: 700;
}

.report-content code {
    background: #f5f5f5;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    .intro-container {
        flex-direction: column;
        margin: 20px;
        min-height: auto;
    }
    
    .intro-left {
        min-height: 300px;
    }
    
    .intro-right {
        padding: 40px 30px;
    }
    
    .headline {
        font-size: 28px;
    }
    
    .content-container,
    .review-container {
        padding: 0 16px;
    }
    
    .new-review-section,
    .recent-reviews-section,
    .upload-section,
    .report-section {
        padding: 30px 20px;
    }
    
    .upload-area {
        padding: 30px 20px;
    }
    
    .browse-button {
        position: static;
        transform: none;
        margin-top: 20px;
        width: 100%;
    }
    
    .button-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .back-button,
    .get-report-button {
        width: 100%;
        justify-content: center;
    }
}
