/**
 * QuickCheck - Plakat Quickcheck Styles
 * Based on ooh.brains design with orange accent (#ed7d00)
 */

/* Variables */
:root {
    --qc-primary: #ed7d00;
    --qc-primary-dark: #cc6b00;
    --qc-primary-light: #ff9933;
    --qc-bg: #f5f5f5;
    --qc-card-bg: #ffffff;
    --qc-text: #333333;
    --qc-text-muted: #666666;
    --qc-border: #e0e0e0;
    --qc-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --qc-radius: 12px;

    /* Persona colors */
    --persona-commuter: #EF4444;
    --persona-pedestrian: #3B82F6;
    --persona-driver: #F59E0B;
    --persona-waiting: #8B5CF6;

    /* Rating colors */
    --star-active: #F59E0B;
    --star-inactive: #D1D5DB;
}

/* Container */
.quickcheck-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* Page Title */
.quickcheck-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--qc-primary);
    margin-bottom: 0;
}

.quickcheck-subtitle {
    font-size: 1.1rem;
    color: var(--qc-text-muted);
    margin-bottom: 0;
}

.quickcheck-tagline {
    font-size: 1rem;
    color: var(--qc-text);
    margin-top: 8px;
}

/* Cards */
.quickcheck-card {
    background: var(--qc-card-bg);
    border-radius: var(--qc-radius);
    box-shadow: var(--qc-shadow);
    padding: 20px;
}

.card-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--qc-text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-section-title i {
    color: var(--qc-primary);
}

/* Dropzone */
#quickcheck-dropzone {
    border: 2px dashed var(--qc-border);
    border-radius: 8px;
    background: #fafafa;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#quickcheck-dropzone:hover {
    border-color: var(--qc-primary);
    background: #fff8f0;
}

#quickcheck-dropzone .dz-message {
    text-align: center;
    margin: 0;
}

#quickcheck-dropzone .dz-message i {
    font-size: 48px;
    color: var(--qc-primary);
    margin-bottom: 12px;
    display: block;
}

#quickcheck-dropzone .dz-message p {
    margin: 0;
    font-weight: 500;
    color: var(--qc-text);
}

#quickcheck-dropzone .upload-hint {
    font-size: 0.85rem;
    color: var(--qc-text-muted);
}

/* Image Preview */
.image-preview {
    position: relative;
    margin-top: 12px;
}

.image-preview img {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    border-radius: 8px;
    background: #f0f0f0;
}

.btn-remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-remove-image:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* Context Textarea */
.context-card textarea {
    resize: vertical;
    border: 1px solid var(--qc-border);
    border-radius: 8px;
}

.context-card textarea:focus {
    border-color: var(--qc-primary);
    box-shadow: 0 0 0 3px rgba(237, 125, 0, 0.1);
}

/* Analyze Button */
.btn-analyze {
    width: 100%;
    padding: 14px 24px;
    background: var(--qc-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-analyze:hover:not(:disabled) {
    background: var(--qc-primary-dark);
    transform: translateY(-1px);
}

.btn-analyze:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-analyze .btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Pitch Card */
.pitch-card {
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    border-left: 4px solid var(--qc-primary);
}

.pitch-card h4 {
    color: var(--qc-primary);
    font-size: 1.1rem;
    margin-bottom: 12px;
}

.pitch-intro {
    margin-bottom: 12px;
    color: var(--qc-text);
}

.pitch-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.pitch-list li {
    padding: 6px 0;
    color: var(--qc-text);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.pitch-list li i {
    color: var(--qc-primary);
    margin-top: 3px;
}

.pitch-link {
    font-size: 0.9rem;
    color: var(--qc-text-muted);
}

.pitch-link a {
    color: var(--qc-primary);
    text-decoration: none;
    font-weight: 500;
}

.pitch-link a:hover {
    text-decoration: underline;
}

/* Welcome State */
.welcome-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.welcome-content {
    text-align: center;
    padding: 40px;
}

.welcome-icon {
    font-size: 64px;
    color: var(--qc-primary);
    margin-bottom: 24px;
}

.welcome-content h2 {
    font-size: 1.8rem;
    color: var(--qc-text);
    margin-bottom: 12px;
}

.welcome-content > p {
    color: var(--qc-text-muted);
    max-width: 500px;
    margin: 0 auto 32px;
}

.personas-preview {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.persona-preview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--qc-shadow);
}

.persona-preview-item i {
    font-size: 32px;
    color: var(--qc-primary);
}

.persona-preview-item span {
    font-size: 0.9rem;
    color: var(--qc-text);
    font-weight: 500;
}

/* Loading State */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--qc-border);
    border-top-color: var(--qc-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-content h3 {
    color: var(--qc-text);
    margin-bottom: 8px;
}

.loading-content p {
    color: var(--qc-text-muted);
}

/* Error State */
.error-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.error-content {
    text-align: center;
    padding: 40px;
}

.error-content i {
    font-size: 48px;
    color: #EF4444;
    margin-bottom: 16px;
}

.error-content h3 {
    color: var(--qc-text);
    margin-bottom: 8px;
}

.error-content p {
    color: var(--qc-text-muted);
    margin-bottom: 24px;
}

.btn-retry {
    padding: 12px 24px;
    background: var(--qc-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-retry:hover {
    background: var(--qc-primary-dark);
}

/* Results Section */
.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--qc-text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-title i {
    color: var(--qc-primary);
}

/* Poster Analysis Summary */
.analysis-summary-card .analysis-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--qc-border);
}

.analysis-summary-card .analysis-item:last-child {
    border-bottom: none;
}

.analysis-item-label {
    font-weight: 600;
    color: var(--qc-text);
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.analysis-item-value {
    color: var(--qc-text-muted);
    font-size: 0.95rem;
}

/* Verdict Card */
.verdict-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--qc-text);
    margin-bottom: 16px;
}

.verdict-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.verdict-item {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border-radius: 8px;
}

.verdict-item.strongest {
    background: #ECFDF5;
}

.verdict-item.weakest {
    background: #FEF2F2;
}

.verdict-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--qc-text-muted);
    margin-bottom: 4px;
}

.verdict-item.strongest .verdict-label i {
    color: #10B981;
}

.verdict-item.weakest .verdict-label i {
    color: #EF4444;
}

.verdict-value {
    font-weight: 600;
    color: var(--qc-text);
}

/* Personas Grid */
.personas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Persona Cards */
.persona-card {
    background: var(--qc-card-bg);
    border-radius: var(--qc-radius);
    box-shadow: var(--qc-shadow);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.persona-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Persona type colors */
.persona-card.persona-commuter {
    border-top: 4px solid var(--persona-commuter);
}

.persona-card.persona-pedestrian {
    border-top: 4px solid var(--persona-pedestrian);
}

.persona-card.persona-driver {
    border-top: 4px solid var(--persona-driver);
}

.persona-card.persona-waiting {
    border-top: 4px solid var(--persona-waiting);
}

.persona-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--qc-border);
}

.persona-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.persona-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.persona-commuter .persona-icon {
    background: var(--persona-commuter);
}

.persona-pedestrian .persona-icon {
    background: var(--persona-pedestrian);
}

.persona-driver .persona-icon {
    background: var(--persona-driver);
}

.persona-waiting .persona-icon {
    background: var(--persona-waiting);
}

.persona-label {
    font-weight: 600;
    color: var(--qc-text);
    font-size: 1.05rem;
}

.persona-context {
    font-size: 0.85rem;
    color: var(--qc-text-muted);
    margin-top: 2px;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 2px;
}

.star-active {
    color: var(--star-active);
    font-size: 18px;
}

.star-inactive {
    color: var(--star-inactive);
    font-size: 18px;
}

/* Persona Body */
.persona-body {
    padding: 20px;
}

.persona-field {
    margin-bottom: 14px;
}

.persona-field:last-child {
    margin-bottom: 0;
}

.persona-field-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--qc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.persona-field-value {
    color: var(--qc-text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.persona-reaction {
    font-style: italic;
    padding: 12px 16px;
    background: #f8f8f8;
    border-radius: 8px;
    border-left: 3px solid var(--qc-primary);
    margin-top: 4px;
}

.persona-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.persona-details-list li {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.persona-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.persona-badge.badge-success {
    background: #ECFDF5;
    color: #059669;
}

.persona-badge.badge-warning {
    background: #FEF3C7;
    color: #D97706;
}

.persona-badge.badge-danger {
    background: #FEE2E2;
    color: #DC2626;
}

/* Location Recommendations */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.location-card {
    background: var(--qc-card-bg);
    border-radius: var(--qc-radius);
    box-shadow: var(--qc-shadow);
    padding: 16px 20px;
}

.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.location-name {
    font-weight: 600;
    color: var(--qc-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-name i {
    color: var(--qc-primary);
}

.location-reason {
    font-size: 0.9rem;
    color: var(--qc-text-muted);
    line-height: 1.5;
}

/* Suitability indicator */
.suitability-indicator {
    display: flex;
    gap: 3px;
}

.suitability-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--qc-border);
}

.suitability-dot.active {
    background: var(--qc-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .quickcheck-container {
        padding: 0 12px 30px;
    }

    .quickcheck-title {
        font-size: 1.8rem;
    }

    .personas-grid {
        grid-template-columns: 1fr;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .verdict-meta {
        flex-direction: column;
    }

    .personas-preview {
        gap: 12px;
    }

    .persona-preview-item {
        padding: 12px 16px;
    }
}
