/**
 * AboveWP Admin Dashboard Styles
 * Premium dark theme matching AboveWP platform
 */

/* Override WordPress admin background for AboveWP page */
body.toplevel_page_abovewp #wpcontent {
    padding-left: 0;
}

body.toplevel_page_abovewp #wpbody-content {
    padding-bottom: 0;
}

body.toplevel_page_abovewp .update-nag,
body.toplevel_page_abovewp .notice:not(.abovewp-notice) {
    display: none !important;
}

/* Full-page dark wrapper */
.abovewp-wrap {
    margin: -10px -20px 0 -20px;
    min-height: 100vh;
    background: linear-gradient(180deg, #0a0a0f 0%, #111118 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

/* Background effects */
.abovewp-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.abovewp-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.abovewp-bg-orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(5, 130, 255, 0.08);
    top: -200px;
    left: -100px;
}

.abovewp-bg-orb-2 {
    width: 500px;
    height: 500px;
    background: rgba(168, 85, 247, 0.06);
    bottom: -150px;
    right: -100px;
}

/* Main content container */
.abovewp-container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 30px 60px;
}

/* Header */
.abovewp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.abovewp-logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.abovewp-logo {
    height: 36px;
    width: auto;
}

.abovewp-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(5, 130, 255, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(5, 130, 255, 0.3);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #0582FF;
}

.abovewp-badge-dot {
    width: 6px;
    height: 6px;
    background: #0582FF;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.abovewp-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.abovewp-header-actions a {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.abovewp-header-actions a:hover {
    color: #0582FF;
}

/* Section Cards */
.abovewp-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
}

.abovewp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.abovewp-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

/* Dashboard Grid Layout */
.aw-admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* Plugin Cards */
.aw-admin-dashboard-plugin {
    background: rgba(0, 0, 0, 0.2);
    padding: 24px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.aw-admin-dashboard-plugin:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(5, 130, 255, 0.4);
}

.aw-admin-dashboard-plugin h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.aw-admin-dashboard-plugin p {
    margin-bottom: 20px;
    color: #94a3b8;
    flex-grow: 1;
    line-height: 1.6;
    font-size: 13px;
}

.aw-admin-dashboard-plugin .button,
.aw-admin-dashboard-plugin .button-primary {
    align-self: flex-start;
    background: #0582FF;
    border: none;
    color: white;
    padding: 8px 20px;
    height: auto;
    line-height: 1.5;
    text-shadow: none;
    box-shadow: 0 4px 20px rgba(5, 130, 255, 0.3);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
}

.aw-admin-dashboard-plugin .button-primary:hover {
    background: #0470d8;
    box-shadow: 0 6px 30px rgba(5, 130, 255, 0.4);
    color: white;
    transform: translateY(-1px);
}

/* Footer */
.abovewp-footer {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 40px;
}

.abovewp-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

.abovewp-footer-links a {
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.abovewp-footer-links a:hover {
    color: #0582FF;
}

.abovewp-footer-copy {
    font-size: 12px;
    color: #475569;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .abovewp-container {
        padding: 20px 15px 40px;
    }

    .abovewp-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .aw-admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .abovewp-section {
        padding: 20px;
        border-radius: 16px;
    }

    .abovewp-footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* AI Agent Promo Banner */
.abovewp-ai-banner {
    background: linear-gradient(135deg, rgba(5, 130, 255, 0.15) 0%, rgba(168, 85, 247, 0.15) 50%, rgba(236, 72, 153, 0.1) 100%);
    border: 1px solid rgba(5, 130, 255, 0.3);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.abovewp-ai-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(5, 130, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.abovewp-ai-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.abovewp-ai-banner-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.abovewp-ai-banner-text p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin: 0 0 16px 0;
    max-width: 600px;
}

.abovewp-ai-banner-perks {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.abovewp-ai-banner-perk {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #0582FF;
    background: rgba(5, 130, 255, 0.1);
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid rgba(5, 130, 255, 0.2);
}

.abovewp-ai-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.abovewp-ai-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.abovewp-ai-banner-btn-primary {
    background: #0582FF;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(5, 130, 255, 0.3);
}

.abovewp-ai-banner-btn-primary:hover {
    background: #0470d8;
    color: #ffffff;
    box-shadow: 0 6px 30px rgba(5, 130, 255, 0.4);
    transform: translateY(-1px);
}

.abovewp-ai-banner-btn-secondary {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.abovewp-ai-banner-btn-secondary:hover {
    background: rgba(168, 85, 247, 0.25);
    color: #c084fc;
    transform: translateY(-1px);
}

@media screen and (max-width: 782px) {
    .abovewp-ai-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .abovewp-ai-banner-perks {
        justify-content: center;
    }

    .abovewp-ai-banner-actions {
        width: 100%;
    }

    .abovewp-ai-banner-btn {
        width: 100%;
    }
}
