/**
 * Sidebar & notice CSS for Profile Frame Generator
 * Tailwind-inspired design — no framework dependency.
 *
 * Variables are defined here so this file is self-contained and works on any
 * admin page (Dashboard, etc.), not just the settings page where admin-style.css
 * is also loaded.
 *
 * @package Profile_Frame_Generator
 */

:root {
    --pfg-color-primary:       #2563eb;
    --pfg-color-primary-hover: #1d4ed8;
    --pfg-color-success:       #16a34a;
    --pfg-color-success-hover: #15803d;
    --pfg-color-warning:       #d97706;
    --pfg-color-surface:       #ffffff;
    --pfg-color-bg:            #f8fafc;
    --pfg-color-border:        #e2e8f0;
    --pfg-color-border-strong: #cbd5e1;
    --pfg-color-text:          #0f172a;
    --pfg-color-text-muted:    #64748b;
    --pfg-color-text-subtle:   #94a3b8;
    --pfg-radius-sm:           4px;
    --pfg-radius-md:           8px;
    --pfg-radius-lg:           12px;
    --pfg-shadow-sm:           0 1px 2px 0 rgba(0,0,0,.05);
    --pfg-shadow-md:           0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
    --pfg-shadow-lg:           0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
}

/* =============================================
   Sidebar cards
   ============================================= */
.profileframegen-sidebar-box {
    background: var(--pfg-color-surface);
    border: 1px solid var(--pfg-color-border);
    border-radius: var(--pfg-radius-lg);
    padding: 20px;
    box-shadow: var(--pfg-shadow-md);
    text-align: left;
    margin-top: 0 !important;
    margin-bottom: 0;
}

.profileframegen-sidebar-box h3 {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--pfg-color-text);
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--pfg-color-border);
}

.profileframegen-sidebar-box p {
    font-size: .875rem;
    color: var(--pfg-color-text-muted);
    line-height: 1.6;
    margin: 0 0 12px;
}

.profileframegen-sidebar-box a {
    color: var(--pfg-color-primary);
    text-decoration: none;
    font-weight: 500;
}

.profileframegen-sidebar-box a:hover {
    text-decoration: underline;
}

.profileframegen-box-highlight {
    border-top: 3px solid var(--pfg-color-primary);
}

/* Heart icon */
.profileframegen-sidebar-header {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profileframegen-heart-icon {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: var(--pfg-color-primary);
    display: block;
    line-height: 32px;
    flex-shrink: 0;
}

.profileframegen-sidebar-footer-text {
    font-size: .75rem !important;
    color: var(--pfg-color-text-subtle) !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
    text-align: center;
}

/* =============================================
   Sidebar buttons
   ============================================= */
.profileframegen-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--pfg-color-primary);
    color: #fff !important;
    text-decoration: none !important;
    padding: 10px 16px;
    border-radius: var(--pfg-radius-md);
    font-size: .875rem;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--pfg-color-primary);
    box-shadow: var(--pfg-shadow-sm);
    transition: background .15s, box-shadow .15s;
    cursor: pointer;
    line-height: 1.5;
}

.profileframegen-button-primary:hover,
.profileframegen-button-primary:focus {
    background: var(--pfg-color-primary-hover);
    border-color: var(--pfg-color-primary-hover);
    box-shadow: var(--pfg-shadow-md);
    color: #fff !important;
    text-decoration: none !important;
}

.profileframegen-button-primary .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.profileframegen-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pfg-color-surface);
    color: var(--pfg-color-text) !important;
    text-decoration: none !important;
    padding: 8px 16px;
    border: 1px solid var(--pfg-color-border-strong);
    border-radius: var(--pfg-radius-md);
    font-size: .875rem;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    box-shadow: var(--pfg-shadow-sm);
    transition: background .15s, box-shadow .15s;
    line-height: 1.5;
}

.profileframegen-button-secondary:hover,
.profileframegen-button-secondary:focus {
    background: var(--pfg-color-bg);
    box-shadow: var(--pfg-shadow-md);
    color: var(--pfg-color-text) !important;
    text-decoration: none !important;
}

/* =============================================
   Review / rating sidebar box
   ============================================= */
.profileframegen-sidebar-box-review {
    background: var(--pfg-color-surface);
    border: 1px solid var(--pfg-color-border);
    border-top: 3px solid var(--pfg-color-warning);
    border-radius: var(--pfg-radius-lg);
    padding: 20px;
    box-shadow: var(--pfg-shadow-md);
    margin-top: 0 !important;
    text-align: left;
}

.profileframegen-stars {
    display: flex;
    gap: 3px;
    margin-bottom: 14px;
}

.profileframegen-stars svg {
    width: 20px;
    height: 20px;
    color: #f59e0b;
}

.profileframegen-state-initial h3,
.profileframegen-state-review h3,
.profileframegen-state-support h3 {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--pfg-color-text);
    margin: 0 0 8px;
    border: none;
    padding: 0;
}

.profileframegen-state-initial p,
.profileframegen-state-review p,
.profileframegen-state-support p {
    font-size: .8125rem;
    color: var(--pfg-color-text-muted);
    line-height: 1.55;
    margin-bottom: 14px;
}

.profileframegen-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* =============================================
   Shared inline button styles (state actions)
   ============================================= */
.profileframegen-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--pfg-radius-md);
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: background .15s, box-shadow .15s, opacity .15s;
    line-height: 1;
    white-space: nowrap;
}

.profileframegen-btn:hover {
    opacity: .9;
    text-decoration: none !important;
}

.profileframegen-btn-green {
    background: var(--pfg-color-success);
    color: #fff !important;
    border-color: var(--pfg-color-success);
    box-shadow: var(--pfg-shadow-sm);
}

.profileframegen-btn-green:hover {
    background: var(--pfg-color-success-hover);
    border-color: var(--pfg-color-success-hover);
    box-shadow: var(--pfg-shadow-md);
}

.profileframegen-btn-primary {
    background: var(--pfg-color-primary);
    color: #fff !important;
    border-color: var(--pfg-color-primary);
    box-shadow: var(--pfg-shadow-sm);
}

.profileframegen-btn-primary:hover {
    background: var(--pfg-color-primary-hover);
    border-color: var(--pfg-color-primary-hover);
    box-shadow: var(--pfg-shadow-md);
}

.profileframegen-btn-secondary {
    background: var(--pfg-color-surface);
    color: var(--pfg-color-text) !important;
    border-color: var(--pfg-color-border-strong);
    box-shadow: var(--pfg-shadow-sm);
}

.profileframegen-btn-secondary:hover {
    background: var(--pfg-color-bg);
    box-shadow: var(--pfg-shadow-md);
}

/* =============================================
   Admin notice (inline in sidebar)
   ============================================= */
.profileframegen-settings-sidebar .notice {
    border-radius: var(--pfg-radius-md);
    box-shadow: var(--pfg-shadow-sm);
    margin: 0;
}

/* =============================================
   Review notice (full-width above page)
   ============================================= */
.profileframegen-notice {
    background: var(--pfg-color-surface);
    border: 1px solid var(--pfg-color-border);
    border-left: 4px solid var(--pfg-color-success);
    border-radius: var(--pfg-radius-md);
    box-shadow: var(--pfg-shadow-sm);
    padding: 16px 20px;
    margin: 5px 0 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
}

.profileframegen-notice-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: #f0fdf4;
    border-radius: var(--pfg-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pfg-color-success);
}

.profileframegen-notice-icon svg {
    width: 24px;
    height: 24px;
}

.profileframegen-notice-content {
    flex-grow: 1;
}

.profileframegen-notice-content h3 {
    margin: 0 0 4px;
    font-size: .9375rem;
    font-weight: 700;
    color: var(--pfg-color-text);
    border: none;
    padding: 0;
}

.profileframegen-notice-content p {
    margin: 0 0 12px;
    font-size: .8125rem;
    color: var(--pfg-color-text-muted);
    line-height: 1.5;
}

.profileframegen-notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.profileframegen-notice-dismiss {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--pfg-color-text-subtle);
    padding: 4px;
    transition: color .15s;
}

.profileframegen-notice-dismiss:hover {
    color: #dc2626;
}

/* =============================================
   Responsive
   ============================================= */
@media screen and (max-width: 600px) {
    .profileframegen-sidebar-box,
    .profileframegen-sidebar-box-review {
        padding: 16px;
    }

    .profileframegen-actions {
        flex-direction: column;
    }

    .profileframegen-btn {
        width: 100%;
        justify-content: center;
    }

    .profileframegen-button-primary,
    .profileframegen-button-secondary {
        padding: 10px 12px;
    }
}
