/**
 * PDF Quick Check - Modern CSS Styles
 * Beautiful, responsive design for the accessibility checker
 */

/* Base Styles */
.pdf-quick-check-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
}

/* Override Theme CSS with highest specificity - MAXIMUM FORCE */
body .pdf-quick-check-container .quick-check-hero h1,
body .pdf-quick-check-container .quick-check-hero h2,
body .pdf-quick-check-container .quick-check-hero h3,
body .pdf-quick-check-container .quick-check-hero p,
body .pdf-quick-check-container .hero-content h1,
body .pdf-quick-check-container .hero-content h2,
body .pdf-quick-check-container .hero-content h3,
body .pdf-quick-check-container .hero-content p,
body .pdf-quick-check-container .quick-check-hero .hero-title,
body .pdf-quick-check-container .quick-check-hero .hero-subtitle,
body .pdf-quick-check-container .quick-check-hero .hero-description,
html body .pdf-quick-check-container .quick-check-hero *,
html body .pdf-quick-check-container .hero-content * {
    color: #1f2937 !important;
    text-shadow: 0 2px 4px rgba(255,255,255,0.3) !important;
}

/* Hero Section */
.quick-check-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    border-radius: 20px;
    color: #1f2937 !important;
    box-shadow: 0 10px 40px rgba(251, 191, 36, 0.4);
}

/* ALLE Elemente in Hero Section - MAXIMUM FORCE */
html body .pdf-quick-check-container .quick-check-hero *,
html body .pdf-quick-check-container .quick-check-hero h1,
html body .pdf-quick-check-container .quick-check-hero h2, 
html body .pdf-quick-check-container .quick-check-hero h3,
html body .pdf-quick-check-container .quick-check-hero p,
html body .pdf-quick-check-container .quick-check-hero span,
html body .pdf-quick-check-container .quick-check-hero div,
html body .pdf-quick-check-container .hero-content *,
html body .pdf-quick-check-container .hero-title,
html body .pdf-quick-check-container .hero-subtitle,
html body .pdf-quick-check-container .hero-description {
    color: #1f2937 !important;
}

/* Zusätzliche Spezifität für alle Hero-Elemente */
html body .quick-check-hero h1,
html body .quick-check-hero h2,
html body .quick-check-hero h3,
html body .quick-check-hero p,
html body .quick-check-hero span,
html body .quick-check-hero div {
    color: #1f2937 !important;
}

html body .pdf-quick-check-container .hero-title,
html body .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1f2937 !important;
    text-shadow: 0 2px 4px rgba(255,255,255,0.3) !important;
}

html body .pdf-quick-check-container .hero-subtitle,
html body .hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    font-weight: 500;
    color: #1f2937 !important;
}

html body .pdf-quick-check-container .hero-description,
html body .hero-description {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto;
    color: #1f2937 !important;
}

/* Upload Section */
.upload-section {
    margin-bottom: 3rem;
}

.upload-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 0;
    overflow: hidden;
    border: 2px solid #f1f5f9;
    transition: all 0.3s ease;
}

.upload-card:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.upload-area {
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    border: 3px dashed #e2e8f0;
    margin: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.upload-area:hover {
    border-color: #667eea;
    background: #f8faff;
}

.upload-area.drag-over {
    border-color: #667eea;
    background: #f0f7ff;
    transform: scale(1.02);
}

.upload-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: grayscale(0.3);
}

.upload-text {
    font-size: 1.3rem;
    color: #475569;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.upload-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.upload-requirements {
    margin-top: 1.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* Example Files */
.example-files {
    text-align: center;
    margin-top: 2rem;
}

.example-title {
    color: #475569;
    margin-bottom: 1rem;
    font-weight: 500;
}

.example-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.example-btn {
    background: white;
    border: 2px solid #e2e8f0;
    color: #475569;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.example-btn:hover {
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.example-btn.good {
    border-color: #10b981;
    color: #10b981;
}

.example-btn.bad {
    border-color: #ef4444;
    color: #ef4444;
}

/* Analysis Progress */
.analysis-progress {
    text-align: center;
    padding: 4rem 2rem;
}

.progress-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.progress-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: spin 2s linear infinite;
}

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

.progress-card h3 {
    color: #1e293b;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.progress-bar {
    background: #f1f5f9;
    border-radius: 10px;
    height: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #667eea, #764ba2);
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
    width: 0%;
}

.progress-text {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

/* Results Section */
.results-container {
    animation: fadeInUp 0.5s ease;
}

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

/* Score Overview */
.score-overview {
    margin-bottom: 3rem;
}

.score-card {
    background: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 50px rgba(251, 191, 36, 0.4);
    display: flex;
    align-items: center;
    gap: 2rem;
    border: 2px solid rgba(255,255,255,0.2);
}

.score-card * {
    color: #1f2937 !important;
}

.score-card h1,
.score-card h2,
.score-card h3,
.score-card p,
.score-card span,
.score-card div {
    color: #1f2937 !important;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    position: relative;
    flex-shrink: 0;
}

.score-circle.score-excellent {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.score-circle.score-good {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

.score-circle.score-fair {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.4);
}

.score-circle.score-poor {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

.score-number {
    font-size: 2.5rem;
    line-height: 1;
}

.score-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.score-info h2 {
    color: white !important;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.score-description {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.score-description.score-excellent {
    color: #a7f3d0 !important;
}

.score-description.score-good {
    color: #fed7aa !important;
}

.score-description.score-fair {
    color: #fed7aa !important;
}

.score-description.score-poor {
    color: #fecaca !important;
}

.file-info {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.file-detail {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: white !important;
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(10px);
}

/* Detailed Results */
.detailed-results {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.detailed-results h3 {
    color: #1e293b;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.checks-grid {
    display: grid;
    gap: 1rem;
}

.check-item {
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.check-item.check-pass {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border-color: #10b981;
}

.check-item.check-fail {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    border-color: #ef4444;
}

.check-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
}

.check-icon {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.check-name {
    flex-grow: 1;
    color: #1e293b;
    font-weight: 600;
}

.check-score {
    font-size: 1.1rem;
    font-weight: 700;
}

.check-issues {
    margin-top: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* Recommendations */
.recommendations-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.recommendations-section h3 {
    color: #1e293b;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendation-item {
    background: #f8fafc;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    color: #475569;
    position: relative;
    padding-left: 3rem;
}

.recommendation-item:before {
    content: "💡";
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    font-size: 1.2rem;
}

.recommendation-item:last-child {
    margin-bottom: 0;
}

/* Call to Action */
.cta-section {
    margin-bottom: 2rem;
}

.cta-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4);
}

.cta-card * {
    color: white !important;
}

.cta-card h1,
.cta-card h2,
.cta-card h3,
.cta-card p,
.cta-card span,
.cta-card div {
    color: white !important;
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: white !important;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    color: white !important;
}

.cta-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    color: white !important;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button.primary {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.4);
    color: #5a6fd8;
}

.cta-button.secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.cta-button.secondary:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* New Check Button */
.new-check-section {
    text-align: center;
    margin-top: 2rem;
}

.new-check-button {
    background: #f8fafc;
    color: #475569;
    border: 2px solid #e2e8f0;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.new-check-button:hover {
    background: white;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Error Messages */
.error-message {
    background: #fef2f2;
    color: #dc2626;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid #fecaca;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-icon {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pdf-quick-check-container {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .score-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .file-info {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .example-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .example-btn {
        width: 100%;
        max-width: 250px;
    }
}

/* ULTIMATE OVERRIDE - MAXIMAL SPEZIFISCH FÜR HERO TEXT */
html body .pdf-quick-check-container .quick-check-hero,
html body .pdf-quick-check-container .quick-check-hero *,
html body .pdf-quick-check-container .quick-check-hero h1,
html body .pdf-quick-check-container .quick-check-hero h2,
html body .pdf-quick-check-container .quick-check-hero h3,
html body .pdf-quick-check-container .quick-check-hero p,
html body .pdf-quick-check-container .quick-check-hero span,
html body .pdf-quick-check-container .quick-check-hero div,
html body .pdf-quick-check-container .hero-content,
html body .pdf-quick-check-container .hero-content *,
html body .pdf-quick-check-container .hero-content h1,
html body .pdf-quick-check-container .hero-content h2,
html body .pdf-quick-check-container .hero-content h3,
html body .pdf-quick-check-container .hero-content p,
html body .pdf-quick-check-container .hero-title,
html body .pdf-quick-check-container .hero-subtitle,
html body .pdf-quick-check-container .hero-description {
    color: #1f2937 !important;
    text-shadow: none !important;
}

/* Nochmal extra für ganz spezielle Fälle */
.pdf-quick-check-container .quick-check-hero {
    color: #1f2937 !important;
}

.pdf-quick-check-container .quick-check-hero * {
    color: #1f2937 !important;
}

.pdf-quick-check-container .hero-content * {
    color: #1f2937 !important;
}

@media (max-width: 480px) {
    .upload-area {
        padding: 2rem 1rem;
        margin: 1rem;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .upload-text {
        font-size: 1.1rem;
    }
    
    .cta-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
}