:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --bg: #0f0f23;
    --bg-card: #1a1a2e;
    --bg-card-hover: #16213e;
    --text: #ffffff;
    --text-muted: #94a3b8;
    --border: #2d2d44;
    --shadow: rgba(124, 58, 237, 0.3);
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-danger: linear-gradient(135deg, #ff6b6b 0%, #ff0052 100%);
    --gradient-success: linear-gradient(135deg, #00c896 0%, #00d4ff 100%);
    --gradient-warning: linear-gradient(135deg, #ffa500 0%, #ff6b6b 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(124, 58, 237, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(16, 185, 129, 0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

header {
    text-align: center;
    padding: 60px 20px 40px;
    position: relative;
}

header h1 {
    font-size: 3rem;
    font-weight: 900;
    background: linear-gradient(90deg, #7c3aed 0%, #ec4899 25%, #f59e0b 50%, #10b981 75%, #7c3aed 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: -0.025em;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tagline {
    color: var(--text-muted);
    font-size: 1.25rem;
    font-weight: 300;
}

.card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 36px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    animation: gradient-shift 3s ease infinite;
}

.card h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-container {
    margin-bottom: 32px;
}

#profession-search {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    transition: all 0.3s;
    font-family: inherit;
}

#profession-search:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.professions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.profession-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 16px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.profession-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.profession-card:hover::before {
    width: 300px;
    height: 300px;
}

.profession-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.05));
}

.profession-card .icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    position: relative;
}

.profession-card .icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--text-muted);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.profession-card:hover .icon svg {
    stroke: var(--text);
    transform: scale(1.1);
}

.profession-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}

.category {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: inline-block;
}

.profession-card.tech { border-left: 4px solid #3b82f6; }
.profession-card.tech:hover { background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(59, 130, 246, 0.05)); }
.profession-card.tech .icon { background: rgba(59, 130, 246, 0.1); }
.profession-card.tech:hover .icon svg { stroke: #3b82f6; }

.profession-card.health { border-left: 4px solid #ef4444; }
.profession-card.health:hover { background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.05)); }
.profession-card.health .icon { background: rgba(239, 68, 68, 0.1); }
.profession-card.health:hover .icon svg { stroke: #ef4444; }

.profession-card.creative { border-left: 4px solid #f59e0b; }
.profession-card.creative:hover { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05)); }
.profession-card.creative .icon { background: rgba(245, 158, 11, 0.1); }
.profession-card.creative:hover .icon svg { stroke: #f59e0b; }

.profession-card.business { border-left: 4px solid #10b981; }
.profession-card.business:hover { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05)); }
.profession-card.business .icon { background: rgba(16, 185, 129, 0.1); }
.profession-card.business:hover .icon svg { stroke: #10b981; }

.profession-card.education { border-left: 4px solid #8b5cf6; }
.profession-card.education:hover { background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05)); }
.profession-card.education .icon { background: rgba(139, 92, 246, 0.1); }
.profession-card.education:hover .icon svg { stroke: #8b5cf6; }

.profession-card.service { border-left: 4px solid #f97316; }
.profession-card.service:hover { background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(249, 115, 22, 0.05)); }
.profession-card.service .icon { background: rgba(249, 115, 22, 0.1); }
.profession-card.service:hover .icon svg { stroke: #f97316; }

.profession-card.legal { border-left: 4px solid #6366f1; }
.profession-card.legal:hover { background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05)); }
.profession-card.legal .icon { background: rgba(99, 102, 241, 0.1); }
.profession-card.legal:hover .icon svg { stroke: #6366f1; }

.profession-card.transport { border-left: 4px solid #06b6d4; }
.profession-card.transport:hover { background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(6, 182, 212, 0.05)); }
.profession-card.transport .icon { background: rgba(6, 182, 212, 0.1); }
.profession-card.transport:hover .icon svg { stroke: #06b6d4; }

.profession-card.retail { border-left: 4px solid #ec4899; }
.profession-card.retail:hover { background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(236, 72, 153, 0.05)); }
.profession-card.retail .icon { background: rgba(236, 72, 153, 0.1); }
.profession-card.retail:hover .icon svg { stroke: #ec4899; }

.profession-card.other { border-left: 4px solid #64748b; }
.profession-card.other:hover { background: linear-gradient(135deg, rgba(100, 116, 139, 0.15), rgba(100, 116, 139, 0.05)); }
.profession-card.other .icon { background: rgba(100, 116, 139, 0.1); }
.profession-card.other:hover .icon svg { stroke: #64748b; }

.hidden {
    display: none !important;
}

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    padding: 20px;
}

.pagination-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 12px 16px;
    border: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-number {
    padding: 10px 14px;
    border: 2px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 40px;
    text-align: center;
    font-weight: 500;
}

.page-number:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
}

.page-number.active {
    background: var(--gradient-1);
    border-color: var(--primary);
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

.pagination-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 12px;
}

.back-button {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.back-button:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
}

#profession-title {
    font-size: 2.5rem;
    margin-bottom: 32px;
    text-align: center;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vulnerability-meter {
    margin: 40px 0;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
}

.meter-label {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 16px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.meter-container {
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border);
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.3);
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #f59e0b 50%, #ef4444 100%);
    border-radius: 30px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
    position: relative;
    overflow: hidden;
}

.meter-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.meter-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.risk-level {
    text-align: center;
    font-size: 1.4rem;
    margin-top: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.risk-level.low { 
    color: var(--success);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}
.risk-level.moderate { 
    color: var(--warning);
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}
.risk-level.high { 
    color: var(--danger);
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.5);
}

.timeline-section {
    margin-top: 40px;
    margin-bottom: 20px;
}

.timeline-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--primary-light);
}

.analysis-sections {
    margin-top: 20px;
}

.analysis-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.analysis-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-1);
}

.analysis-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--primary-light);
}

.analysis-section p {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.05rem;
}

.analysis-section ul {
    list-style: none;
}

.analysis-section li {
    padding: 12px 0;
    padding-left: 28px;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.analysis-section li:before {
    content: "▸";
    position: absolute;
    left: 8px;
    color: var(--primary);
    font-weight: bold;
}

#news-section {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.05));
    border: 1px solid rgba(124, 58, 237, 0.3);
}

#news-section h3 {
    color: var(--primary-light);
}

#news-list li {
    padding: 14px 0;
}

#news-list a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    position: relative;
}

#news-list a:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

#news-list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s;
}

#news-list a:hover::after {
    width: 100%;
}

.timeline {
    display: flex;
    justify-content: space-between;
    padding: 28px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    margin-top: 16px;
    overflow-x: auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--gradient-1);
    z-index: 0;
}

.timeline-item {
    text-align: center;
    min-width: 100px;
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    padding: 12px;
    border-radius: 12px;
    border: 2px solid var(--border);
}

.timeline-year {
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.share-section {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
}

.share-button, .compare-button {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-button {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(124, 58, 237, 0.5);
}

.compare-button {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.compare-button:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.3);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stats span {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.stats .count {
    color: var(--primary-light);
    font-weight: 700;
}

#most-vulnerable-job {
    color: var(--danger);
    font-weight: 700;
}

.footer-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .professions-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .pagination-container {
        gap: 12px;
        padding: 16px 8px;
    }
    
    .pagination-buttons {
        gap: 8px;
    }
    
    .pagination-btn {
        padding: 10px 12px;
        min-width: 44px;
        font-size: 0.9rem;
    }
    
    .page-number {
        padding: 8px 12px;
        min-width: 36px;
        font-size: 0.9rem;
    }
    
    .pagination-info {
        margin-bottom: 0px;
        margin-top: 0;
    }
    
    .stats {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .timeline {
        flex-direction: column;
        gap: 16px;
    }
    
    .timeline::before {
        display: none;
    }
}