/**
 * Theme-Aware Styles
 * 
 * Estilos que se adaptan según si hay un tema compatible
 * 
 * @package Video_Marketplace_v2
 * @version 6.5.0
 */

/* ==========================================================================
   MODO STANDALONE (Sin tema compatible)
   Estilos completos con tipografía, colores, etc.
   ========================================================================== */

body.vme-standalone .vme-video-title,
body.vme-standalone .vme-dashboard-title,
body.vme-standalone .vme-section-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

body.vme-standalone .vme-video-info,
body.vme-standalone .vme-video-meta,
body.vme-standalone p,
body.vme-standalone .vme-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
}

body.vme-standalone .vme-btn,
body.vme-standalone .vme-btn-primary,
body.vme-standalone button {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    font-weight: 600;
}

/* ==========================================================================
   MODO INTEGRADO (Con HotMe Theme o tema compatible)
   Solo estructura, el tema controla estética
   ========================================================================== */

body.has-hotme-theme .vme-video-title,
body.has-hotme-theme .vme-dashboard-title,
body.has-hotme-theme .vme-section-title {
    /* NO especificar font-family - hereda del tema */
    /* NO especificar font-size - lo controla el tema */
    /* NO especificar font-weight - lo controla el tema */
    /* NO especificar color - lo controla el tema */
    
    /* Solo estructura necesaria */
    display: block;
    margin-bottom: 1rem;
    line-height: inherit; /* Hereda del tema */
}

body.has-hotme-theme .vme-video-info,
body.has-hotme-theme .vme-video-meta,
body.has-hotme-theme p,
body.has-hotme-theme .vme-text {
    /* Hereda TODO del tema */
    line-height: inherit;
}

body.has-hotme-theme .vme-btn,
body.has-hotme-theme .vme-btn-primary,
body.has-hotme-theme button {
    /* Hereda tipografía del tema */
    /* Solo mantener estructura del botón */
}

/* ==========================================================================
   ESTRUCTURA COMÚN (Siempre aplicado)
   Layout, spacing, positioning - NO estética
   ========================================================================== */

.vme-video-card {
    position: relative;
    display: block;
    border-radius: var(--vme-border-radius, 8px);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.vme-video-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

@media (min-width: 768px) {
    .vme-video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .vme-video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1280px) {
    .vme-video-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.vme-section {
    margin-bottom: 40px;
}

.vme-dashboard-title {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* Botones - Solo estructura */
.vme-btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--vme-border-radius, 8px);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vme-btn-primary {
    background: var(--vme-primary-color, #D73744);
    color: #fff;
}

.vme-btn-primary:hover {
    background: var(--vme-primary-dark, #B21E2E);
    transform: translateY(-2px);
}

/* Forms - Solo estructura */
.vme-form-field {
    margin-bottom: 20px;
}

.vme-form-field label {
    display: block;
    margin-bottom: 8px;
}

.vme-form-field input,
.vme-form-field select,
.vme-form-field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: var(--vme-border-radius, 6px);
    transition: border-color 0.3s ease;
}

.vme-form-field input:focus,
.vme-form-field select:focus,
.vme-form-field textarea:focus {
    border-color: var(--vme-primary-color, #D73744);
    outline: none;
}

/* ==========================================================================
   RESPONSIVE - Estructura común
   ========================================================================== */

@media (max-width: 768px) {
    .vme-video-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .vme-section {
        margin-bottom: 30px;
    }
    
    .vme-btn {
        width: 100%;
    }
}
