/*
 * Theme Name: Modern Portal Pro
 * Theme URI: /
 * Description: Ultra-modern, responsive government welfare portal theme with glassmorphic accents, interactive search, and smooth animations.
 * Version: 1.0.0
 * Author: Yojana CMS Pro
 */

:root {
    --mp-primary: #0f172a;
    --mp-accent: #10b981;
    --mp-accent-hover: #059669;
    --mp-indigo: #4f46e5;
    --mp-soft-bg: #f8fafc;
    --mp-card-bg: #ffffff;
    --mp-border: #e2e8f0;
    --mp-ink: #0f172a;
    --mp-muted: #64748b;
    --mp-radius: 14px;
    --mp-radius-lg: 20px;
    --mp-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    --mp-shadow-hover: 0 12px 28px -4px rgba(15, 23, 42, 0.12);
}

/* Modern Header Overrides */
.modern-theme-header {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Modern Hero Section */
.mp-hero {
    background: radial-gradient(circle at top right, #1e1b4b, #0f172a 80%) !important;
    border-radius: var(--mp-radius-lg) !important;
    padding: 50px 36px !important;
    color: #ffffff !important;
    position: relative;
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.3);
}

.mp-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
    pointer-events: none;
}

.mp-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: 20%;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2), transparent 70%);
    pointer-events: none;
}

.mp-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.5);
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 700;
    color: #a7f3d0;
    margin-bottom: 16px;
}

.mp-pulse-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: mpPulse 2s infinite;
}

@keyframes mpPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Modern Floating Search Bar */
.mp-search-container {
    background: #ffffff;
    border-radius: 99px;
    padding: 6px 8px 6px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.25);
    max-width: 680px;
    margin-top: 25px;
    position: relative;
    z-index: 10;
}

.mp-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    font-size: 16px;
    color: #0f172a;
    background: transparent;
    font-family: inherit;
}

.mp-search-btn {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 26px !important;
    border-radius: 99px !important;
    font-weight: 700 !important;
    font-size: 14.5px !important;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mp-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}

/* Category Chips Bar */
.mp-category-chip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    padding: 9px 18px;
    border-radius: 99px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.mp-category-chip:hover,
.mp-category-chip.active {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
}

/* Modern Scheme Card */
.mp-card {
    background: var(--mp-card-bg);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--mp-shadow);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.mp-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mp-shadow-hover);
    border-color: #cbd5e1;
}

.mp-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 14px;
    background: #f1f5f9;
    display: block;
    position: relative;
}

.mp-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mp-card:hover .mp-card-thumb img {
    transform: scale(1.05);
}

.mp-card-badge {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.mp-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin: 10px 0 8px;
}

.mp-card-title a {
    color: var(--mp-ink);
    text-decoration: none;
    transition: color 0.15s ease;
}

.mp-card-title a:hover {
    color: var(--mp-indigo);
}

.mp-card-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff !important;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    margin-top: 12px;
    transition: all 0.2s ease;
}

.mp-card-btn:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

/* Modern State Card */
.mp-state-item {
    background: #ffffff;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mp-state-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--mp-shadow-hover);
    border-color: #94a3b8;
}

.mp-state-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    background: #f8fafc;
    padding: 5px;
    border: 1px solid #e2e8f0;
    flex: 0 0 48px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mp-hero { padding: 35px 22px !important; }
    .mp-search-container { flex-direction: column; border-radius: 18px; padding: 12px; }
    .mp-search-btn { width: 100%; border-radius: 12px !important; }
}
