/* ============================================
   TRA CỨU ĐIỂM THI THPT - CSS
   ============================================ */

/* ── BREADCRUMB ── */
.thpt-breadcrumb {
    background: #f8fafc;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.thpt-breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.thpt-breadcrumb-nav a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.thpt-breadcrumb-nav a:hover {
    color: #dc2626;
}

.thpt-breadcrumb-nav .thpt-sep {
    font-size: 9px;
    color: #cbd5e1;
}

.thpt-breadcrumb-nav span {
    color: #dc2626;
    font-weight: 600;
}

/* ── HERO SECTION ── */
.thpt-hero {
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 50%, #fef2f2 100%);
    padding: 60px 0 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.thpt-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.thpt-hero::after {
    content: '';
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.04) 0%, transparent 70%);
    border-radius: 50%;
}

.thpt-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

/* Badge */
.thpt-badge {
    display: inline-block;
    background: #dc2626;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 20px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

/* Title */
.thpt-title {
    font-size: 38px;
    font-weight: 900;
    color: #1a1a1a;
    letter-spacing: 1px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.thpt-title span {
    color: #dc2626;
}

.thpt-subtitle {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 32px;
}

/* ── SEARCH FORM ── */
.thpt-search-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.thpt-search-form {
    margin-bottom: 12px;
}

.thpt-search-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 60px;
    padding: 6px 6px 6px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.thpt-search-input-group:focus-within {
    border-color: #dc2626;
    box-shadow: 0 4px 24px rgba(220, 38, 38, 0.12);
}

.thpt-search-icon {
    color: #9ca3af;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.thpt-search-input-group input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: var(--font-base, 'Be Vietnam Pro', sans-serif);
    color: #1a1a1a;
    background: transparent;
    padding: 10px 0;
    min-width: 0;
}

.thpt-search-input-group input::placeholder {
    color: #9ca3af;
}

.thpt-search-btn {
    flex-shrink: 0;
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-base, 'Be Vietnam Pro', sans-serif);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.thpt-search-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

.thpt-search-btn:active {
    transform: translateY(0);
}

.thpt-search-note {
    font-size: 13px;
    color: #9ca3af;
    text-align: center;
}

.thpt-search-note i {
    color: #dc2626;
}

/* ── RESULT SECTION ── */
.thpt-result-section {
    padding: 40px 0;
    background: #f8fafc;
}

.thpt-result-card {
    max-width: 760px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #f1f5f9;
}

/* Header thí sinh */
.thpt-result-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
}

.thpt-result-avatar {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.thpt-result-info h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #fff;
}

.thpt-result-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    opacity: 0.9;
}

/* Score Grid */
.thpt-score-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #f1f5f9;
    padding: 1px;
}

.thpt-score-item {
    background: #fff;
    padding: 20px;
    text-align: center;
    transition: background 0.2s ease;
}

.thpt-score-item:hover {
    background: #fef2f2;
}

.thpt-score-subject {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.thpt-score-subject i {
    color: #dc2626;
    font-size: 16px;
}

.thpt-score-value {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    font-family: var(--font-base, 'Be Vietnam Pro', sans-serif);
}

/* Tổng điểm */
.thpt-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    background: #fef2f2;
    border-top: 2px solid #fecaca;
}

.thpt-total-label {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.thpt-total-value {
    font-size: 30px;
    font-weight: 900;
    color: #dc2626;
}

/* Share Actions */
.thpt-share-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.thpt-share-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-base, 'Be Vietnam Pro', sans-serif);
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.thpt-share-fb {
    background: #1877f2;
    color: #fff;
}

.thpt-share-fb:hover {
    background: #1565d8;
}

.thpt-share-copy {
    background: #e2e8f0;
    color: #334155;
}

.thpt-share-copy:hover {
    background: #cbd5e1;
}

.thpt-share-new {
    background: #dc2626;
    color: #fff;
}

.thpt-share-new:hover {
    background: #b91c1c;
}

/* ── ERROR ── */
.thpt-error-message {
    padding: 40px 0;
}

.thpt-error-card {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    border: 1px solid #fecaca;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.06);
}

.thpt-error-card > i {
    font-size: 48px;
    color: #f59e0b;
    margin-bottom: 16px;
}

.thpt-error-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.thpt-error-card p {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.thpt-try-again {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-base, 'Be Vietnam Pro', sans-serif);
    cursor: pointer;
    transition: all 0.25s ease;
}

.thpt-try-again:hover {
    background: #b91c1c;
}

/* ── INFO SECTION ── */
.thpt-info-section {
    padding: 50px 0 60px;
    background: #fff;
}

.thpt-info-card {
    text-align: center;
    padding: 28px 20px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    height: 100%;
}

.thpt-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
    border-color: #e2e8f0;
}

.thpt-info-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 16px;
}

.thpt-info-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.thpt-info-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ── SEO CONTENT ── */
.thpt-seo-section {
    padding: 50px 0 60px;
    background: #f8fafc;
}

.thpt-seo-content {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 36px 40px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    font-size: 15px;
    line-height: 1.8;
    color: #334155;
}

.thpt-seo-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #fecaca;
    display: inline-block;
}

.thpt-seo-content h2:first-child {
    margin-top: 0;
}

.thpt-seo-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 24px 0 10px;
}

.thpt-seo-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 20px 0 8px;
}

.thpt-seo-content p {
    margin-bottom: 16px;
}

.thpt-seo-content ul,
.thpt-seo-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.thpt-seo-content li {
    margin-bottom: 6px;
}

.thpt-seo-content a {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
}

.thpt-seo-content a:hover {
    text-decoration: underline;
}

.thpt-seo-content strong {
    color: #1a1a1a;
    font-weight: 600;
}

.thpt-seo-content blockquote {
    border-left: 4px solid #dc2626;
    background: #fef2f2;
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    color: #64748b;
}

.thpt-seo-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.thpt-seo-content table th {
    background: #1a3a5c;
    color: #fff;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    font-size: 14px;
}

.thpt-seo-content table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

.thpt-seo-content table tr:last-child td {
    border-bottom: none;
}

.thpt-seo-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 16px 0;
}

@media (max-width: 768px) {
    .thpt-seo-content {
        padding: 24px 20px;
        font-size: 14px;
    }

    .thpt-seo-content h2 {
        font-size: 19px;
    }
}

/* ── LOADING OVERLAY ── */
.thpt-loading {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.thpt-loading-spinner {
    background: #fff;
    padding: 40px 60px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.thpt-loading-spinner .spinner-border {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
}

.thpt-loading-spinner p {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .thpt-hero {
        padding: 40px 0 36px;
    }

    .thpt-title {
        font-size: 26px;
    }

    .thpt-search-input-group {
        flex-direction: column;
        border-radius: 16px;
        padding: 12px;
        gap: 10px;
    }

    .thpt-search-icon {
        display: none;
    }

    .thpt-search-input-group input {
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .thpt-search-btn {
        width: 100%;
        border-radius: 12px;
    }

    .thpt-score-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .thpt-result-header {
        flex-direction: column;
        text-align: center;
    }

    .thpt-result-meta {
        flex-direction: column;
        gap: 4px;
    }

    .thpt-total-row {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .thpt-share-actions {
        flex-direction: column;
    }

    .thpt-share-btn {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .thpt-title {
        font-size: 22px;
    }

    .thpt-score-value {
        font-size: 22px;
    }

    .thpt-score-item {
        padding: 14px 10px;
    }
}
