/* Semantic Profile Styles */

body {
        background-color: #f5f7fa;
        padding: 20px;
    }

    main {
        max-width: 1600px;
        margin: 0 auto;
        background: white;
        padding: 30px;
        border-radius: 10px;
        box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    }

    .realizations-header {
        text-align: center;
        margin-bottom: 30px;
        padding-bottom: 20px;
        border-bottom: 3px solid #3498db;
    }

    .realizations-title {
        font-size: 32px;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 10px;
    }

    .macroshift-info {
        font-size: 18px;
        color: #7f8c8d;
        margin: 10px 0;
    }

    .macroshift-visual {
        font-size: 24px;
        font-weight: 600;
        color: #3498db;
        margin: 15px 0;
    }

    .direction-arrow {
        font-weight: 700;
        color: #e74c3c;
        margin: 0 10px;
    }

    #realizations_table {
        margin-top: 20px;
    }

    #realizations_table th {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        font-weight: 600;
    }

    #realizations_table tbody tr:hover {
        background-color: #f1f8ff;
    }

    .shift-link {
        color: #3498db;
        text-decoration: none;
        font-weight: 500;
    }

    .shift-link:hover {
        text-decoration: underline;
    }

    .lang-badge {
        display: inline-block;
        padding: 4px 10px;
        background: #ecf0f1;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 600;
        color: #2c3e50;
        margin: 2px;
    }

.direction-counts {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #555;
}

.dir-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    background: #f0f0f0;
    border-radius: 4px;
    font-weight: 600;
}

.dir-arrow {
    font-weight: 700;
    color: #3498db;
}

.dir-count {
    color: #2c3e50;
}

.dir-badge.zero {
    opacity: 0.4;
}

/* Compare Profiles Specific */
.direction-counts-compare {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-start;
    font-size: 12px;
    margin-top: 5px;
}

.direction-counts-compare .dir-badge {
    padding: 2px 5px;
}

.direction-counts-compare .dir-arrow {
    font-size: 13px;
}

.direction-counts-compare .dir-count {
    font-size: 12px;
}

.direction-counts-compare .dir-badge.zero {
    opacity: 0.3;
}

/* Semantic Profile Page Specific */
.profile-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #3498db;
}

.profile-title {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.profile-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.stat-box {
    text-align: center;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 5px;
}

#profile_table {
    margin-top: 20px;
}

#profile_table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

#profile_table tbody tr:hover {
    background-color: #f1f8ff;
    cursor: pointer;
}

.direction-symbol {
    font-size: 18px;
    font-weight: 700;
    color: #3498db;
}

.count-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
}

.tag-cell {
    font-weight: 500;
    color: #2c3e50;
}

.na-tag {
    color: #95a5a6;
    font-style: italic;
}

/* Compare Profiles Result Page Specific */
.compare-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #3498db;
}

.compare-title {
    padding-top: 20px;
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.languages-compared {
    font-size: 18px;
    color: #7f8c8d;
    margin: 10px 0;
}

#compare_table {
    margin-top: 30px;
}

#compare_table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-align: center;
}

#compare_table td {
    vertical-align: middle;
}

.macroshift-cell {
    padding: 10px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    font-size: 13px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.macroshift-text {
    font-weight: 600;
    margin-bottom: 5px;
}

.macroshift-total {
    background: rgba(255,255,255,0.3);
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    display: inline-block;
    margin-top: 3px;
}

.back-button {
    display: inline-block;
    margin: 20px auto;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
}

.back-button:hover {
    background: #764ba2;
    color: white;
    text-decoration: none;
}
