/**
 * Admin CSS styles for Vibe Testimonial Shoutouts
 * Tailwind-inspired design — no framework dependency.
 *
 * @package Vibe_Testimonial_Shoutouts
 */

/* =============================================
   Design tokens (Tailwind-inspired)
   ============================================= */
:root {
    --vts-color-primary:       #7c3aed; /* violet-600  */
    --vts-color-primary-hover: #6d28d9; /* violet-700  */
    --vts-color-success:       #16a34a; /* green-600   */
    --vts-color-success-hover: #15803d; /* green-700   */
    --vts-color-warning:       #d97706; /* amber-600   */
    --vts-color-surface:       #ffffff;
    --vts-color-bg:            #f8fafc; /* slate-50    */
    --vts-color-border:        #e2e8f0; /* slate-200   */
    --vts-color-border-strong: #cbd5e1; /* slate-300   */
    --vts-color-text:          #0f172a; /* slate-900   */
    --vts-color-text-muted:    #64748b; /* slate-500   */
    --vts-color-text-subtle:   #94a3b8; /* slate-400   */

    --vts-radius-sm:  4px;
    --vts-radius-md:  8px;
    --vts-radius-lg:  12px;

    --vts-shadow-sm:  0 1px 2px 0 rgba(0,0,0,.05);
    --vts-shadow-md:  0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
}

/* =============================================
   Page heading
   ============================================= */
.wrap h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--vts-color-text);
    letter-spacing: -.01em;
    margin-bottom: 4px;
}

/* =============================================
   Settings page layout
   ============================================= */
.vibetesh-shoutout-settings-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 24px;
    align-items: flex-start;
}

.vibetesh-shoutout-settings-main {
    flex: 2;
    min-width: 0;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

.vibetesh-shoutout-settings-sidebar {
    flex: 1;
    min-width: 260px;
    width: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* =============================================
   WP settings form — section heading
   ============================================= */
.vibetesh-shoutout-settings-main h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--vts-color-text);
    margin: 28px 0 8px;
}

/* =============================================
   WP settings form — form-table as card
   ============================================= */
.vibetesh-shoutout-settings-main .form-table {
    background: var(--vts-color-surface);
    border: 1px solid var(--vts-color-border);
    border-radius: var(--vts-radius-lg);
    box-shadow: var(--vts-shadow-md);
    overflow: hidden;
    margin-bottom: 24px;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.vibetesh-shoutout-settings-main .form-table th {
    padding: 16px 20px;
    font-size: .875rem;
    font-weight: 600;
    color: var(--vts-color-text);
    background: var(--vts-color-bg);
    border-bottom: 1px solid var(--vts-color-border);
    width: 200px;
    vertical-align: top;
}

.vibetesh-shoutout-settings-main .form-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--vts-color-border);
    vertical-align: top;
}

.vibetesh-shoutout-settings-main .form-table tr:last-child th,
.vibetesh-shoutout-settings-main .form-table tr:last-child td {
    border-bottom: none;
}

/* Inputs */
.vibetesh-shoutout-settings-main input[type="text"],
.vibetesh-shoutout-settings-main input[type="url"],
.vibetesh-shoutout-settings-main input[type="number"],
.vibetesh-shoutout-settings-main input[type="color"],
.vibetesh-shoutout-settings-main select,
.vibetesh-shoutout-settings-main textarea {
    border: 1px solid var(--vts-color-border-strong);
    border-radius: var(--vts-radius-md);
    padding: 8px 12px;
    font-size: .875rem;
    color: var(--vts-color-text);
    background: var(--vts-color-surface);
    box-shadow: var(--vts-shadow-sm);
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}

.vibetesh-shoutout-settings-main input[type="text"]:focus,
.vibetesh-shoutout-settings-main input[type="url"]:focus,
.vibetesh-shoutout-settings-main input[type="number"]:focus,
.vibetesh-shoutout-settings-main select:focus,
.vibetesh-shoutout-settings-main textarea:focus {
    border-color: var(--vts-color-primary);
    box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}

.vibetesh-shoutout-settings-main .description {
    font-size: .8125rem;
    color: var(--vts-color-text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

/* Submit button */
.vibetesh-shoutout-settings-main p.submit {
    margin-top: 4px;
}

.vibetesh-shoutout-settings-main .button-primary {
    background: var(--vts-color-primary) !important;
    border-color: var(--vts-color-primary) !important;
    border-radius: var(--vts-radius-md) !important;
    padding: 8px 20px !important;
    font-size: .875rem !important;
    font-weight: 600 !important;
    box-shadow: var(--vts-shadow-sm) !important;
    transition: background .15s, box-shadow .15s !important;
    height: auto !important;
    line-height: 1.5 !important;
}

.vibetesh-shoutout-settings-main .button-primary:hover {
    background: var(--vts-color-primary-hover) !important;
    border-color: var(--vts-color-primary-hover) !important;
    box-shadow: var(--vts-shadow-md) !important;
}

/* =============================================
   How to Use card (inside settings-main)
   ============================================= */
.vibetesh-shoutout-settings-main .card {
    background: var(--vts-color-surface);
    border: 1px solid var(--vts-color-border);
    border-radius: var(--vts-radius-lg);
    box-shadow: var(--vts-shadow-md);
    padding: 20px !important;
    margin-top: 0;
}

.vibetesh-shoutout-settings-main .card h3 {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--vts-color-text);
    margin: 0 0 8px;
}

.vibetesh-shoutout-settings-main .card p {
    font-size: .875rem;
    color: var(--vts-color-text-muted);
    line-height: 1.6;
    margin-bottom: 6px;
}

.vibetesh-shoutout-settings-main .card code {
    background: var(--vts-color-bg);
    border: 1px solid var(--vts-color-border);
    border-radius: var(--vts-radius-sm);
    padding: 2px 6px;
    font-size: .8125rem;
    color: var(--vts-color-primary);
}

/* =============================================
   Sidebar boxes
   ============================================= */
.vibetesh-shoutout-sidebar-box {
    background: var(--vts-color-surface);
    border: 1px solid var(--vts-color-border);
    border-radius: var(--vts-radius-lg);
    padding: 20px;
    box-shadow: var(--vts-shadow-md);
    margin-bottom: 0;
    text-align: left;
}

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

.vibetesh-shoutout-sidebar-header {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--vts-color-border);
}

.vibetesh-shoutout-sidebar-header h3 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: .9375rem;
    font-weight: 700;
    color: var(--vts-color-text);
}

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

.vibetesh-shoutout-sidebar-footer-text {
    font-size: .75rem !important;
    color: var(--vts-color-text-subtle) !important;
    margin-top: 10px !important;
    margin-bottom: 0 !important;
}

.vibetesh-shoutout-sidebar-box.vibetesh-shoutout-box-highlight {
    border-top: 3px solid var(--vts-color-primary);
}

/* =============================================
   Heart / dashicon in sidebar
   ============================================= */
.vibetesh-shoutout-heart-icon {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: var(--vts-color-primary);
    display: block;
    line-height: 24px;
    flex-shrink: 0;
}

/* =============================================
   Shared button styles
   ============================================= */
.vibetesh-shoutout-button-primary,
.vibetesh-shoutout-btn,
.vibetesh-shoutout-btn-green,
.vibetesh-shoutout-btn-primary,
.vibetesh-shoutout-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: var(--vts-radius-md);
    font-size: .8125rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .15s, box-shadow .15s, opacity .15s;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    width: 100%;
}

.vibetesh-shoutout-button-primary,
.vibetesh-shoutout-btn-primary {
    background: var(--vts-color-primary);
    color: #fff !important;
    border-color: var(--vts-color-primary);
    box-shadow: var(--vts-shadow-sm);
}

.vibetesh-shoutout-button-primary:hover,
.vibetesh-shoutout-button-primary:focus,
.vibetesh-shoutout-btn-primary:hover {
    background: var(--vts-color-primary-hover);
    border-color: var(--vts-color-primary-hover);
    box-shadow: var(--vts-shadow-md);
    color: #fff !important;
}

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

.vibetesh-shoutout-btn-green:hover {
    background: var(--vts-color-success-hover);
    border-color: var(--vts-color-success-hover);
    box-shadow: var(--vts-shadow-md);
}

.vibetesh-shoutout-button-secondary,
.vibetesh-shoutout-btn-secondary {
    background: var(--vts-color-surface);
    color: var(--vts-color-text) !important;
    border-color: var(--vts-color-border-strong);
    box-shadow: var(--vts-shadow-sm);
}

.vibetesh-shoutout-button-secondary:hover,
.vibetesh-shoutout-button-secondary:focus,
.vibetesh-shoutout-btn-secondary:hover {
    background: var(--vts-color-bg);
    box-shadow: var(--vts-shadow-md);
    color: var(--vts-color-text) !important;
}

.vibetesh-shoutout-button-primary .dashicons {
    margin-right: 6px;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* =============================================
   Review / rating sidebar box
   ============================================= */
.vibetesh-shoutout-sidebar-box-review {
    background: var(--vts-color-surface);
    border: 1px solid var(--vts-color-border);
    border-top: 3px solid var(--vts-color-warning);
    border-radius: var(--vts-radius-lg);
    padding: 20px;
    box-shadow: var(--vts-shadow-md);
    margin-bottom: 0;
    text-align: left;
    position: relative;
    overflow: hidden;
}

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

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

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

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

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

/* =============================================
   Notice Designs (site-wide review notice)
   ============================================= */
.vibetesh-shoutout-notice {
    background: var(--vts-color-surface);
    border-left: 4px solid var(--vts-color-success);
    box-shadow: var(--vts-shadow-sm);
    padding: 15px 20px;
    margin: 5px 0 25px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: var(--vts-radius-md);
    transition: all 0.3s ease;
}

.vibetesh-shoutout-notice-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #f0f8f1;
    border-radius: var(--vts-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vts-color-success);
}

.vibetesh-shoutout-notice-icon svg {
    width: 28px;
    height: 28px;
}

.vibetesh-shoutout-notice-content {
    flex-grow: 1;
}

.vibetesh-shoutout-notice-content h3 {
    margin: 0 0 5px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--vts-color-text);
}

.vibetesh-shoutout-notice-content p {
    margin: 0 0 12px;
    font-size: .8125rem;
    color: var(--vts-color-text-muted);
}

.vibetesh-shoutout-notice-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.vibetesh-shoutout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    font-size: .8125rem;
    font-weight: 600;
    min-height: 32px;
    margin: 0;
    padding: 0 12px;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    appearance: none;
    border-radius: var(--vts-radius-md);
    white-space: nowrap;
    box-sizing: border-box;
    transition: background .15s, box-shadow .15s;
    width: auto;
}

.vibetesh-shoutout-notice-dismiss {
    position: absolute;
    top: 10px;
    right: 15px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--vts-color-text-muted);
    padding: 5px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vibetesh-shoutout-notice-dismiss:hover {
    color: #d63638;
}

/* =============================================
   Responsive
   ============================================= */
@media screen and (max-width: 1100px) {
    .vibetesh-shoutout-settings-wrapper {
        flex-direction: column;
    }

    .vibetesh-shoutout-settings-main,
    .vibetesh-shoutout-settings-sidebar {
        min-width: 100%;
        flex: unset;
    }
}

@media screen and (max-width: 782px) {
    .vibetesh-shoutout-settings-wrapper {
        gap: 16px;
        margin-top: 16px;
    }

    .vibetesh-shoutout-settings-main .form-table th {
        width: 160px;
        padding: 12px 14px;
    }

    .vibetesh-shoutout-settings-main .form-table td {
        padding: 12px 14px;
    }
}

@media screen and (max-width: 600px) {
    .wrap h1 {
        font-size: 1.25rem;
    }

    .vibetesh-shoutout-settings-main .form-table {
        border-radius: var(--vts-radius-md);
    }

    .vibetesh-shoutout-settings-main .form-table tr {
        display: flex;
        flex-direction: column;
    }

    .vibetesh-shoutout-settings-main .form-table th {
        width: 100%;
        border-bottom: none;
        padding: 12px 14px 6px;
    }

    .vibetesh-shoutout-settings-main .form-table td {
        width: 100%;
        padding: 6px 14px 14px;
    }

    .vibetesh-shoutout-settings-main .form-table tr:last-child td {
        border-bottom: none;
    }

    .vibetesh-shoutout-sidebar-box,
    .vibetesh-shoutout-sidebar-box-review {
        padding: 16px;
    }

    .vibetesh-shoutout-actions {
        flex-direction: column;
    }

    .vibetesh-shoutout-btn,
    .vibetesh-shoutout-button-primary,
    .vibetesh-shoutout-button-secondary {
        width: 100%;
        justify-content: center;
    }
}
