/* ═══════════════════════════════════════
   Name Meaning Corrector — Frontend Styles
   ═══════════════════════════════════════ */

/* ─── Header Card ─── */
.nmc-header-card {
    border-radius: 16px;
    padding: 30px;
    margin: 25px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
}
.nmc-header-card.nmc-boy {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}
.nmc-header-card.nmc-girl {
    background: linear-gradient(135deg, #f10020, #bf6d76);
    color: #fff;
}
.nmc-header-card.nmc-unisex {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    color: #333;
}
.nmc-header-name {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 8px;
}
.nmc-header-meaning {
    font-size: 18px;
    opacity: 0.9;
    margin-top: 8px;
}
.nmc-header-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-top: 20px;
}
.nmc-header-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}
.nmc-header-item-label {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.8;
}
.nmc-header-item-value {
    font-size: 16px;
    font-weight: 700;
    margin-top: 3px;
}

/* ─── Info Table ─── */
.nmc-info-table-wrap {
    background: #e5e5e520;
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    border: 1px solid #b3b5b720;
}
.nmc-info-table {
    width: 100%;
    border-collapse: collapse;
}
.nmc-info-table tr {
    border-bottom: 1px solid #dee2e620;
}
.nmc-info-table tr:last-child {
    border-bottom: none;
}
.nmc-info-table tr:nth-child(even) {
    background: #ffffff20;
}
.nmc-info-table td {
    padding: 10px 12px;
}
.nmc-info-table td:first-child {
    font-weight: 600;
    width: 40%;
}
.nmc-info-table .nmc-urdu-text {
    font-size: 20px;
    direction: rtl;
}

/* ─── Old Post Banner (if banner mode) ─── */
.nmc-redirect-banner {
    background: linear-gradient(135deg, #00b09b, #96c93d);
    border-radius: 16px;
    padding: 20px 25px;
    margin: 20px 0;
    box-shadow: 0 8px 25px rgba(0, 176, 155, 0.25);
}
.nmc-redirect-banner-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.nmc-redirect-banner-icon {
    font-size: 24px;
}
.nmc-redirect-banner-text {
    flex: 1;
    color: #fff;
}
.nmc-redirect-banner-text strong {
    font-size: 16px;
}
.nmc-redirect-banner-text span {
    font-size: 13px;
    opacity: 0.9;
}
.nmc-redirect-banner-btn {
    background: #fff;
    color: #00b09b;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    display: inline-block;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nmc-redirect-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #00b09b;
    text-decoration: none;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .nmc-header-name {
        font-size: 32px;
    }
    .nmc-header-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nmc-info-table td:first-child {
        width: 35%;
    }
    .nmc-redirect-banner-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nmc-header-card {
        padding: 20px 15px;
    }
    .nmc-header-name {
        font-size: 26px;
    }
    .nmc-header-meaning {
        font-size: 15px;
    }
    .nmc-header-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }
}
