* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.input-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.url-input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

#pageUrl {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

#pageUrl:focus {
    outline: none;
    border-color: #667eea;
}

#analyzeBtn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

#analyzeBtn:hover {
    transform: translateY(-2px);
}

.quick-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.quick-link {
    padding: 0.5rem 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-link:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.loading {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results {
    animation: fadeIn 0.5s ease-in;
}

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

.score-card, .sections-card, .content-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.score-header h2 {
    font-size: 1.5rem;
    color: #2d3748;
    word-break: break-all;
}

.detected-lang {
    color: #718096;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.score-circle::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
}

.score-circle.complete {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.score-circle.warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.score-circle.critical {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
}

.score-number {
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.score-circle.complete .score-number {
    color: #38a169;
}

.score-circle.warning .score-number {
    color: #dd6b20;
}

.score-circle.critical .score-number {
    color: #e53e3e;
}

.score-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
}

.stat-value.translated {
    color: #48bb78;
}

.stat-value.untranslated {
    color: #f56565;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.card-header h3 {
    font-size: 1.25rem;
    color: #2d3748;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-secondary {
    padding: 0.5rem 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

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

.section-item {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s;
}

.section-item:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.section-icon {
    font-size: 1.5rem;
}

.section-name {
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.section-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.progress-fill.complete {
    background: #48bb78;
}

.progress-fill.warning {
    background: #ed8936;
}

.progress-fill.critical {
    background: #f56565;
}

.section-percentage {
    font-weight: 600;
    color: #2d3748;
    min-width: 50px;
}

.section-count {
    font-size: 0.875rem;
    color: #718096;
    min-width: 60px;
}

.filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #edf2f7;
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.no-content {
    text-align: center;
    padding: 3rem;
    color: #48bb78;
    font-size: 1.1rem;
}

.content-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.2s;
}

.content-item:hover {
    border-color: #cbd5e0;
    background: #f7fafc;
}

.content-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.content-number {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

.content-section {
    padding: 0.25rem 0.75rem;
    background: #edf2f7;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #4a5568;
    font-weight: 500;
}

.priority-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

.priority-badge.high {
    background: #fed7d7;
    color: #742a2a;
}

.priority-badge.medium {
    background: #feebc8;
    color: #7c2d12;
}

.priority-badge.low {
    background: #e2e8f0;
    color: #4a5568;
}

.content-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.content-location, .content-type {
    font-size: 0.875rem;
    color: #4a5568;
}

.content-text {
    font-size: 0.875rem;
}

.text-box {
    margin-top: 0.5rem;
    padding: 1rem;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
}

.text-content {
    flex: 1;
    color: #2d3748;
    line-height: 1.6;
    word-break: break-word;
}

.copy-btn {
    padding: 0.4rem 0.75rem;
    background: white;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.copy-btn:hover {
    background: #edf2f7;
}

.error {
    background: #fee;
    color: #c53030;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #e74c3c;
}

@media (max-width: 768px) {
    .score-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .url-input-group {
        flex-direction: column;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
