:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #64748b;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --border: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: white;
    color: var(--secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--bg);
}

/* Upload Section */
.upload-section {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    text-align: center;
    margin-bottom: 3rem;
}

.upload-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.file-input-wrapper {
    position: relative;
}

.file-input-wrapper input[type="file"] {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

/* Results Page */
.score-card {
    display: flex;
    align-items: center;
    gap: 3rem;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 10px solid var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
}

.score-label {
    font-size: 1rem;
    color: var(--text-light);
}

.feedback-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feedback-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    background: white;
}

.feedback-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.critical { border-left: 5px solid var(--danger); }
.improvements { border-left: 5px solid var(--warning); }
.strengths { border-left: 5px solid var(--success); }

.feedback-card ul {
    list-style-position: inside;
}

.analysis-details {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
}

.summary-text {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: var(--bg);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    border: 1px solid var(--border);
}

.section-list {
    margin-top: 1rem;
    list-style: none;
}

.section-list li::before {
    content: "✓ ";
    color: var(--success);
}

.share-box {
    margin-top: 3rem;
    text-align: center;
    padding: 2rem;
    background: #eff6ff;
    border-radius: 1rem;
}

.share-url {
    width: 100%;
    max-width: 400px;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    margin-top: 0.5rem;
    text-align: center;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.gallery-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.gallery-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.gallery-summary {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

footer {
    text-align: center;
    margin-top: 5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.back-link {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
}

.flashes {
    list-style: none;
    color: var(--danger);
    margin-top: 1rem;
}
