/*
 * CopyBlocker Pro - Premium Dark Retro-Futuristic Theme
 * Version: 1.2.0
 * Pure vanilla CSS — WordPress.org ready
 */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Inter:wght@400;500;600;700&display=swap');

/* ===== BASE ===== */
.copyblocker-pro-wrap {
    background-color: #050510;
    color: #e0e0ff;
    font-family: 'Inter', sans-serif;
    padding: 40px;
    max-width: 1000px;
    margin: 20px auto !important;
    border: 4px solid #007cf0;
    box-shadow: 10px 10px 0px rgba(0, 124, 240, 0.3);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.copyblocker-pro-wrap *, .copyblocker-pro-wrap *::before, .copyblocker-pro-wrap *::after { box-sizing: border-box; }
#wpbody-content .copyblocker-pro-wrap { margin-top: 40px !important; }

/* WP Notices */
.copyblocker-pro-wrap .notice,
.copyblocker-pro-wrap .settings-error {
    background: #0f0f2d !important;
    border: 2px solid #00f3ff !important;
    color: #e0e0ff !important;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    padding: 15px !important;
    margin: 20px 0 !important;
    box-shadow: 4px 4px 0px #007cf0;
    border-radius: 0;
}
.copyblocker-pro-wrap .notice-success { border-color: #00ff00 !important; }
.copyblocker-pro-wrap .notice-error { border-color: #ff0000 !important; }

/* Animated Grid Background */
.copyblocker-pro-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(0, 124, 240, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 124, 240, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}
.copyblocker-pro-wrap > * { position: relative; z-index: 1; }

/* ===== HEADER ===== */
.header-container { text-align: center; margin-bottom: 40px; }
.logo-box { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 10px; }
.logo-icon { font-size: 40px; filter: drop-shadow(0 0 10px rgba(0, 243, 255, 0.5)) drop-shadow(0 0 20px rgba(0, 243, 255, 0.2)); }
.header-container h1 {
    font-family: 'Press Start 2P', cursive; font-size: 32px;
    color: #00f3ff; text-shadow: 4px 4px 0px #007cf0;
    margin: 0; letter-spacing: 2px;
}
.header-container .description {
    font-family: 'Press Start 2P', cursive; font-size: 10px;
    color: #a0a0c0; margin-top: 15px; opacity: 0.8;
}
.cbp-version-badge {
    display: inline-block; margin-top: 10px; padding: 4px 14px;
    border: 2px solid #00ff88; color: #00ff88;
    font-family: 'Press Start 2P', cursive; font-size: 9px; letter-spacing: 1px;
}

/* ===== STATUS SUMMARY ===== */
.status-summary-box {
    background: rgba(0, 124, 240, 0.05);
    border: 2px solid #007cf0;
    padding: 30px;
    margin-bottom: 30px;
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
    position: relative;
}
.status-summary-box::before {
    content: "SYSTEM STATUS"; position: absolute; top: -12px; left: 20px;
    background: #050510; padding: 0 10px;
    font-family: 'Press Start 2P', cursive; font-size: 10px; color: #007cf0;
}
.shield-container { display: flex; flex-direction: column; gap: 15px; }
.shield-header { display: flex; justify-content: space-between; align-items: center; }
.shield-label { font-family: 'Press Start 2P', cursive; font-size: 12px; color: #e0e0ff; }
.shield-value { font-family: 'Press Start 2P', cursive; font-size: 16px; color: #00f3ff; text-shadow: 0 0 10px #00f3ff; }
.shield-bar-bg {
    height: 12px; background: #1a1a3d; border: 2px solid #007cf0;
    position: relative; padding: 2px; overflow: hidden;
}
.shield-bar-fill {
    height: 100%; background: linear-gradient(90deg, #007cf0, #00f3ff);
    box-shadow: 0 0 15px #00f3ff;
    transition: width 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}
.shield-bar-fill::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: scan 2s linear infinite;
}
@keyframes scan { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.status-stats {
    display: flex; flex-direction: column; justify-content: center; gap: 15px;
    border-left: 1px solid rgba(0, 124, 240, 0.2); padding-left: 40px;
}
.stat-item { display: flex; justify-content: space-between; align-items: center; }
.stat-label { font-family: 'Press Start 2P', cursive; font-size: 10px; color: #a0a0c0; }
.stat-count, .stat-text { font-family: 'Press Start 2P', cursive; font-size: 12px; }
.stat-count.active { color: #00f3ff; }
.stat-text.protected { color: #00ff00; text-shadow: 0 0 10px #00ff00; }
.stat-text.vulnerable { color: #ff0000; text-shadow: 0 0 10px #ff0000; animation: flicker 1s infinite; }
@keyframes flicker { 0%,19%,21%,23%,25%,54%,56%,100% { opacity: 1; } 20%,22%,24%,55% { opacity: 0.4; } }

/* ===== TABS ===== */
.cbp-tabs {
    display: flex; gap: 0; margin-bottom: 0;
    border-bottom: 3px solid #007cf0;
    position: relative; z-index: 2;
}
.cbp-tab {
    padding: 14px 28px; background: transparent;
    border: 2px solid transparent; border-bottom: none;
    color: #a0a0c0; font-family: 'Press Start 2P', cursive;
    font-size: 10px; cursor: pointer;
    transition: all 0.25s ease;
    position: relative; top: 3px; letter-spacing: 0.5px;
}
.cbp-tab:hover { color: #00f3ff; background: rgba(0, 243, 255, 0.03); }
.cbp-tab.active {
    color: #00f3ff; background: #050510;
    border-color: #007cf0;
    border-bottom: 3px solid #050510;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.4);
}

/* ===== TAB PANELS ===== */
.cbp-tab-panel {
    display: none; padding: 30px 0;
    animation: fadeIn 0.3s ease;
}
.cbp-tab-panel.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.cbp-section-title {
    font-family: 'Press Start 2P', cursive; font-size: 13px;
    color: #00f3ff; margin-bottom: 8px;
    text-shadow: 0 0 8px rgba(0, 243, 255, 0.3); letter-spacing: 1px;
}
.cbp-section-desc { font-size: 14px; color: #a0a0c0; margin-bottom: 25px; line-height: 1.6; }

/* ===== SETTINGS GRID ===== */
.settings-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px; margin-bottom: 40px;
}

/* ===== SETTING CARD ===== */
.setting-card {
    background: #0f0f2d; border: 2px solid rgba(0, 243, 255, 0.15);
    padding: 22px 25px; display: flex; justify-content: space-between;
    align-items: center; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}
.setting-card:hover {
    border-color: #00f3ff; transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 25px rgba(0, 243, 255, 0.12);
}
.setting-card::after {
    content: ''; position: absolute; bottom: -5px; right: -5px;
    width: 100%; height: 100%;
    border-right: 3px solid #007cf0; border-bottom: 3px solid #007cf0;
    z-index: -1; opacity: 0.25; transition: all 0.3s ease;
}
.setting-card:hover::after { opacity: 0.7; bottom: -8px; right: -8px; }

.card-content { flex: 1; padding-right: 20px; }
.setting-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.setting-name { font-family: 'Press Start 2P', cursive; font-size: 11px; color: #00f3ff; line-height: 1.4; }
.setting-description { font-size: 13px; color: #a0a0c0; margin: 0; line-height: 1.5; }

/* ===== TOGGLE SWITCH ===== */
.neon-switch { position: relative; display: inline-block; width: 60px; height: 30px; }
.neon-switch input { opacity: 0; width: 0; height: 0; }
.neon-slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #1a1a3d; transition: .4s; border: 2px solid #007cf0;
}
.neon-slider:before {
    position: absolute; content: ""; height: 18px; width: 18px;
    left: 4px; bottom: 4px; background-color: #007cf0;
    transition: .4s; box-shadow: 2px 2px 0px rgba(0,0,0,0.5);
}
input:checked + .neon-slider {
    background-color: rgba(0, 243, 255, 0.1);
    border-color: #00f3ff;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.2);
}
input:checked + .neon-slider:before { transform: translateX(30px); background-color: #00f3ff; }

/* ===== TOOLTIP ===== */
.tooltip {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; background: #007cf0; color: #fff;
    font-size: 10px; font-weight: bold; cursor: help; border: 1px solid #00f3ff;
}
.tooltip-text {
    visibility: hidden; width: 250px; background: #0f0f2d; color: #e0e0ff;
    text-align: left; border: 2px solid #00f3ff; padding: 15px;
    position: absolute; z-index: 10; bottom: 125%; left: 0;
    font-size: 12px; opacity: 0; transition: opacity 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); line-height: 1.4;
}
.tooltip:hover + .tooltip-text { visibility: visible; opacity: 1; }

/* ===== FIELD CARDS ===== */
.cbp-fields-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px; margin-bottom: 30px;
}
.cbp-field-card {
    background: #0f0f2d; border: 2px solid rgba(0, 243, 255, 0.12);
    padding: 22px; transition: border-color 0.3s;
}
.cbp-field-card:hover { border-color: rgba(0, 243, 255, 0.3); }
.cbp-field-wide { grid-column: 1 / -1; }
.cbp-field-label {
    display: block; font-family: 'Press Start 2P', cursive; font-size: 10px;
    color: #00f3ff; margin-bottom: 6px; letter-spacing: 0.5px;
}
.cbp-field-help { font-size: 12px; color: #a0a0c0; margin: 0 0 12px 0; line-height: 1.4; }

/* ===== INPUTS ===== */
.cbp-textarea, .cbp-input {
    width: 100%; background: #0a0a20;
    border: 2px solid rgba(0, 124, 240, 0.3);
    color: #e0e0ff; padding: 10px 14px;
    font-family: 'Inter', monospace; font-size: 13px;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box; outline: none;
}
.cbp-textarea:focus, .cbp-input:focus {
    border-color: #00f3ff; box-shadow: 0 0 12px rgba(0, 243, 255, 0.15);
}
.cbp-textarea::placeholder, .cbp-input::placeholder { color: rgba(160, 160, 192, 0.4); }

/* ===== CHECKBOXES ===== */
.cbp-checkbox-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px;
}
.cbp-check-item {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; background: #0a0a20;
    border: 1px solid rgba(0, 124, 240, 0.2);
    cursor: pointer; transition: all 0.2s;
}
.cbp-check-item:hover { border-color: #00f3ff; }
.cbp-check-item input { accent-color: #00f3ff; }
.cbp-check-label { font-size: 12px; color: #e0e0ff; }
.cbp-check-label code {
    font-size: 10px; color: #a0a0c0; background: rgba(0,124,240,0.1);
    padding: 1px 5px; margin-left: 4px;
}

/* ===== RADIO GROUP ===== */
.cbp-radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.cbp-radio-item {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; background: #0a0a20;
    border: 2px solid rgba(0, 124, 240, 0.2);
    cursor: pointer; transition: all 0.2s;
    font-size: 12px; color: #e0e0ff;
}
.cbp-radio-item:hover { border-color: #007cf0; }
.cbp-radio-item:has(input:checked) {
    border-color: #00f3ff; background: rgba(0, 243, 255, 0.05);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.1);
}
.cbp-radio-item input { accent-color: #00f3ff; }

/* ===== RANGE SLIDER ===== */
.cbp-range {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 8px; background: #1a1a3d;
    border: 2px solid #007cf0; outline: none; cursor: pointer;
}
.cbp-range::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 20px;
    background: #00f3ff; border: 2px solid #fff;
    cursor: pointer; box-shadow: 0 0 10px #00f3ff;
}
.cbp-range::-moz-range-thumb {
    width: 20px; height: 20px; background: #00f3ff;
    border: 2px solid #fff; cursor: pointer;
    box-shadow: 0 0 10px #00f3ff;
}

/* ===== STATISTICS ===== */
.cbp-stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px; margin-bottom: 30px;
}
.cbp-stat-card {
    background: #0f0f2d; border: 2px solid rgba(0, 243, 255, 0.15);
    padding: 25px; display: flex; align-items: center; gap: 20px;
    transition: all 0.3s;
}
.cbp-stat-card:hover {
    border-color: #00f3ff; box-shadow: 0 5px 20px rgba(0, 243, 255, 0.1);
}
.cbp-stat-primary { border-color: #00f3ff; background: rgba(0, 243, 255, 0.03); }
.cbp-stat-icon { font-size: 36px; }
.cbp-stat-data { flex: 1; }
.cbp-stat-number {
    display: block; font-family: 'Press Start 2P', cursive; font-size: 22px;
    color: #00f3ff; text-shadow: 0 0 10px rgba(0, 243, 255, 0.4); margin-bottom: 6px;
}
.cbp-stat-number.cbp-stat-url {
    font-family: 'Inter', monospace; font-size: 13px;
    word-break: break-all; text-shadow: none; color: #e0e0ff;
}
.cbp-stat-label { font-size: 11px; color: #a0a0c0; letter-spacing: 0.3px; }

/* ===== BAR CHART ===== */
.cbp-chart-container {
    background: #0f0f2d; border: 2px solid rgba(0, 243, 255, 0.12);
    padding: 25px; margin-bottom: 25px;
}
.cbp-bar-chart {
    display: flex; align-items: flex-end; justify-content: space-between;
    height: 140px; gap: 12px; padding-top: 10px;
}
.cbp-bar-col {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end; height: 100%; gap: 6px;
}
.cbp-bar-val { font-family: 'Press Start 2P', cursive; font-size: 9px; color: #00f3ff; }
.cbp-bar {
    width: 100%; max-width: 50px;
    background: linear-gradient(to top, #007cf0, #00f3ff);
    box-shadow: 0 0 8px rgba(0, 243, 255, 0.3);
    transition: height 0.6s ease; min-height: 4px;
}
.cbp-bar-day {
    font-family: 'Press Start 2P', cursive; font-size: 8px;
    color: #a0a0c0; text-transform: uppercase;
}

/* ===== BUTTONS ===== */
.cbp-reset-section { text-align: center; padding: 15px 0; }
.cbp-reset-btn {
    background: transparent; border: 2px solid #ff3366; color: #ff3366;
    font-family: 'Press Start 2P', cursive; font-size: 9px;
    padding: 10px 24px; cursor: pointer; transition: all 0.2s; letter-spacing: 0.5px;
}
.cbp-reset-btn:hover { background: #ff3366; color: #fff; box-shadow: 0 0 15px rgba(255, 51, 102, 0.3); }
.cbp-reset-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.submit-section { text-align: center; padding-top: 20px; }
.neon-button {
    background: transparent !important; border: 4px solid #00f3ff !important;
    color: #00f3ff !important; font-family: 'Press Start 2P', cursive !important;
    font-size: 14px !important; padding: 18px 50px !important;
    cursor: pointer !important; transition: all 0.2s ease !important;
    text-transform: uppercase !important; position: relative !important;
    overflow: hidden !important; height: auto !important; line-height: 1 !important;
    border-radius: 0 !important;
}
.neon-button:hover {
    background: #00f3ff !important; color: #050510 !important;
    box-shadow: 0 0 20px #00f3ff; transform: scale(1.05);
}
.neon-button:active { transform: scale(0.95); }

/* ===== SUPPORT ===== */
.copyblocker-pro-support {
    margin-top: 60px; text-align: center; padding: 40px;
    background: rgba(255, 0, 255, 0.05); border: 2px dashed #ff00ff;
}
.copyblocker-pro-support p {
    font-family: 'Press Start 2P', cursive; font-size: 10px;
    color: #ff00ff; margin-bottom: 25px;
}
.coffee-button {
    display: inline-block; padding: 15px 30px; background: #ff00ff;
    color: #fff; text-decoration: none; font-family: 'Press Start 2P', cursive;
    font-size: 12px; border: 4px solid #fff;
    box-shadow: 6px 6px 0px rgba(255, 0, 255, 0.3); transition: all 0.2s;
}
.coffee-button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px rgba(255, 0, 255, 0.5); filter: brightness(1.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 782px) {
    .settings-grid, .cbp-fields-grid, .cbp-stats-grid { grid-template-columns: 1fr; }
    .copyblocker-pro-wrap { padding: 20px; margin: 20px; }
    .header-container h1 { font-size: 18px; }
    .cbp-tabs { flex-wrap: wrap; }
    .cbp-tab { font-size: 8px; padding: 10px 14px; }
    .status-summary-box { grid-template-columns: 1fr; gap: 20px; }
    .status-stats { border-left: none; padding-left: 0; border-top: 1px solid rgba(0,124,240,0.2); padding-top: 20px; }
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #050510; }
::-webkit-scrollbar-thumb { background: #007cf0; border: 2px solid #050510; }
::-webkit-scrollbar-thumb:hover { background: #00f3ff; }