/* ============================================
   Custom Post Views UI - Frontend Base
   Solo variables globales y reset base
   ============================================ */

/* Variables CSS Globales */
:root {
    --cpv-primary-color: #2271b1;
    --cpv-secondary-color: #135e96;
    --cpv-text-color: #1d2327;
    --cpv-text-light: #646970;
    --cpv-border-color: #e5e5e5;
    --cpv-background: #ffffff;
    --cpv-background-alt: #f9f9f9;
    --cpv-spacing-small: 10px;
    --cpv-spacing-medium: 20px;
    --cpv-spacing-large: 30px;
    --cpv-border-radius: 8px;
    --cpv-transition: all 0.3s ease;
}

/* Reset Base */
.cpv-view * {
    box-sizing: border-box;
}

.cpv-view {
    width: 100%;
    margin: 0 auto;
    clear: both;
    color: var(--cpv-text-color);
}

.cpv-view img {
    max-width: 100%;
    height: auto;
}

.cpv-view a {
    color: var(--cpv-primary-color);
    text-decoration: none;
    transition: var(--cpv-transition);
}

.cpv-view a:hover {
    color: var(--cpv-secondary-color);
}

/* Loading State Global */
.cpv-view.cpv-loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Utilidades Básicas */
.cpv-hidden {
    display: none !important;
}

.cpv-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Accesibilidad */
.cpv-view a:focus,
.cpv-view button:focus {
    outline: 2px solid var(--cpv-primary-color);
    outline-offset: 2px;
}

/* RTL Support */
.rtl .cpv-view {
    direction: rtl;
    text-align: right;
}