/* =============================================================================
   Voidek SERP Schema Builder — UX Enhancements stylesheet
   ============================================================================= */

/* ----------------------------------------------------------------------------
   1. Activation Notice
   ---------------------------------------------------------------------------- */
.vserpb-activation-notice {
    border-left: 4px solid #3858e9 !important;
    background: #f0f4ff;
    padding: 14px 18px !important;
    border-radius: 0 4px 4px 0;
}
.vserpb-activation-notice p {
    margin: 0;
}
.vserpb-activation-notice .notice-dismiss {
    top: 50%;
    transform: translateY(-50%);
}

/* ----------------------------------------------------------------------------
   2. Schema Preview Metabox
   ---------------------------------------------------------------------------- */
.vserpb-schema-preview-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.vserpb-schema-preview-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0 12px;
    border-bottom: 1px solid #dcdcde;
    flex-wrap: wrap;
}

.vserpb-schema-preview-badge {
    font-weight: 600;
    font-size: 13px;
    margin-right: auto;
}

.vserpb-test-link,
.vserpb-copy-schema {
    font-size: 12px !important;
    padding: 3px 10px !important;
    height: auto !important;
    line-height: 1.6 !important;
    border-radius: 4px !important;
    text-decoration: none;
}

.vserpb-test-link {
    background: #3858e9 !important;
    border-color: #2c4bd4 !important;
    color: #fff !important;
}
.vserpb-test-link:hover {
    background: #2c4bd4 !important;
    color: #fff !important;
}

.vserpb-copy-schema {
    border-color: #3858e9 !important;
    color: #3858e9 !important;
}
.vserpb-copy-schema:hover,
.vserpb-copy-schema.copied {
    background: #3858e9 !important;
    color: #fff !important;
}

/* Collapsible details */
.vserpb-schema-details {
    margin-top: 12px;
}

.vserpb-schema-summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    color: #1d2327;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    user-select: none;
}
.vserpb-schema-summary::-webkit-details-marker {
    display: none;
}
.vserpb-toggle-icon {
    font-size: 10px;
    transition: transform .25s;
    color: #787c82;
}
.vserpb-schema-details:not([open]) .vserpb-toggle-icon {
    transform: rotate(180deg);
}

.vserpb-schema-code-wrap {
    background: #1e1e2e;
    border-radius: 6px;
    overflow: auto;
    max-height: 420px;
    margin-top: 6px;
    border: 1px solid #333;
}

.vserpb-schema-code {
    margin: 0;
    padding: 16px;
    font-size: 12px;
    font-family: "Fira Code", "Cascadia Code", Consolas, "Courier New", monospace;
    color: #cdd6f4;
    line-height: 1.6;
    white-space: pre;
    overflow-x: auto;
}

.vserpb-schema-empty {
    color: #787c82;
    font-style: italic;
    margin-top: 12px;
}

/* ----------------------------------------------------------------------------
   3. Schema Status Column
   ---------------------------------------------------------------------------- */
.column-vserpb_schema_status {
    width: 80px;
    text-align: center !important;
}

.vserpb-col-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}
a.vserpb-col-active {
    text-decoration: none;
}
a.vserpb-col-active:hover .dashicons {
    color: #2c8f3a !important;
}

/* ----------------------------------------------------------------------------
   4. Dashboard Counter Widget
   ---------------------------------------------------------------------------- */
.vserpb-counter-widget {
    background: #fff;
    border-radius: 6px;
    padding: 20px 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    grid-column: 1 / -1;
    border-top: 3px solid #3858e9;
}

.vserpb-counter-title {
    margin: 0 0 16px;
    font-size: 15px;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 8px;
}
.vserpb-counter-title .dashicons {
    color: #3858e9;
}

.vserpb-counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

@media (max-width: 960px) {
    .vserpb-counter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .vserpb-counter-grid {
        grid-template-columns: 1fr;
    }
}

.vserpb-counter-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 16px 10px;
    border-radius: 6px;
    border: 1px solid #dcdcde;
    background: #f6f7f7;
    text-align: center;
    transition: box-shadow .2s;
}
.vserpb-counter-card:hover {
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.vserpb-counter-active {
    border-color: #d0e8d1;
    background: #f0faf0;
}
.vserpb-counter-off {
    border-color: #dcdcde;
    background: #f6f7f7;
    opacity: .75;
}
.vserpb-counter-total {
    border-color: #c8d4f8;
    background: #f0f4ff;
}

.vserpb-counter-number {
    font-size: 32px;
    font-weight: 700;
    color: #1d2327;
    line-height: 1;
}
.vserpb-counter-off .vserpb-counter-number {
    color: #a0a5aa;
}
.vserpb-counter-total .vserpb-counter-number {
    color: #3858e9;
}

.vserpb-counter-label {
    font-size: 12px;
    font-weight: 600;
    color: #3c434a;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.vserpb-counter-status {
    font-size: 11px;
    color: #646970;
    margin-top: 2px;
}




.vserpb-pro-wrap {
	padding: 14px;
	border-radius: 12px;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px;
}

.vserpb-pro-header h2 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.vserpb-pro-header p {
	margin: 5px 0 15px;
	font-size: 12px;
	color: #666;
}

/* GRID */
.vserpb-pro-grid {
	display: grid;
	gap: 10px;
}

/* CARD BASE */
.vserpb-card {
	position: relative;
	border-radius: 12px;
	padding: 14px;
	background: #fff;
	border: 1px solid #e5e7eb;
	transition: all 0.2s ease;
}

.vserpb-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 20px rgba(0,0,0,0.06);
}

/* FREE */
.vserpb-card.free {
	opacity: 0.85;
}

/* PRO CARD */
.vserpb-card.pro {
	background: linear-gradient(135deg, #fff, #fff7f7);
	border: 1px solid #f1c0c0;
        display: flex;
}

/* BADGE */
.vserpb-badge {
	position: absolute;
	top: -8px;
	left: 10px;
	background: linear-gradient(90deg, #ff4d4d, #d63638);
	color: #fff;
	font-size: 10px;
	padding: 3px 8px;
	border-radius: 20px;
	font-weight: 600;
}

/* HEADERS */
.vserpb-card-header h3 {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 600;
}
.vserpb-card-header{
    margin-top: 45px;
}
/* LIST */
.vserpb-card ul {
	margin: 5px;
	padding-left: 35px;
}

.vserpb-card ul li {
	font-size: 12px;
	margin-bottom: 6px;
	color: #444;
        margin-right: 5px;
}

/* CTA */
.vserpb-card-footer {
	margin-top: 10px;
	text-align: center;
    margin-top: 35px;
    width:100%;
}

.vserpb-upgrade-btn {
	display: inline-block;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	background: linear-gradient(90deg, #ff4d4d, #d63638);
	border-radius: 8px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.vserpb-upgrade-btn:hover {
	transform: scale(1.05);
	box-shadow: 0 5px 15px rgba(214,54,56,0.3);
}

