/*
Theme Name: Clean Video Player
Description: Tema minimalista para reproducción de videos
Version: 1.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: #111;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

.site-title {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Post Container */
.post-container {
    background-color: #000;
    padding: 2rem 0;
    text-align: center;
}

.post-thumbnail {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

/* Videos responsive en el contenido */
.post-content video {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    background-color: #000;
    display: block;
    margin: 1rem auto;
    
    /* Atributos para evitar pantalla completa en móviles */
    -webkit-playsinline: true;
    playsinline: true;
    webkit-playsinline: true;
}

/* CPA Container */
#container-4f0dc8abfa5a32f17b3cc9bc4d938983 {
    margin: 1rem 0;
    min-height: 50px;
    text-align: center;
}

/* Indicador de tiempo restante */
.time-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 107, 107, 0.9);
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 20;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    animation: pulse 1s infinite;
}

.time-indicator .countdown {
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
}

/* Animación de pulso para el indicador */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Mensaje de redirección */
.redirect-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 107, 107, 0.95);
    color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 25;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    animation: fadeInScale 0.5s ease-out;
    text-align: center;
}

@keyframes fadeInScale {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Mejorar visibilidad del contenedor de video */
.video-responsive {
    position: relative;
    margin: 1rem 0;
}

/* Overlay de loading para videos */
.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 15px 25px;
    border-radius: 25px;
    font-size: 0.9rem;
    z-index: 15;
}

/* Asegurar que todos los videos tengan comportamiento inline y autoplay */
video {
    -webkit-playsinline: true !important;
    playsinline: true !important;
    webkit-playsinline: true !important;
}

/* Indicador visual para videos con autoplay */
.post-content video[autoplay] {
    border: 2px solid #ff6b6b;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

/* Indicador de video silenciado */
.video-muted-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    z-index: 10;
    pointer-events: none;
    opacity: 0.8;
}

/* Contenedor para video con indicador */
.video-responsive {
    position: relative;
}

/* Overlay para activar sonido */
.sound-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 107, 107, 0.9);
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    z-index: 15;
    font-size: 0.9rem;
    transition: all 0.3s;
    opacity: 0;
    pointer-events: none;
}

.video-responsive:hover .sound-overlay {
    opacity: 1;
    pointer-events: all;
}

.sound-overlay:hover {
    background-color: rgba(255, 107, 107, 1);
    transform: translate(-50%, -50%) scale(1.05);
}

/* Contenedor responsive para videos */
.post-content .video-container,
.post-content .wp-video,
.post-content .wp-block-video {
    width: 100% !important;
    max-width: 100% !important;
    margin: 1rem auto !important;
    position: relative;
}

/* Videos embebidos (YouTube, Vimeo, etc.) */
.post-content iframe {
    width: 100% !important;
    height: auto !important;
    min-height: 315px;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin: 1rem auto;
    display: block;
}

/* Responsive para diferentes tamaños */
@media (max-width: 768px) {
    .post-content video {
        border-radius: 4px;
        margin: 0.5rem auto;
    }
    
    .post-content iframe {
        min-height: 200px;
        border-radius: 4px;
        margin: 0.5rem auto;
    }
}

/* Contenedor de aspect ratio para videos responsive */
.post-content .video-responsive {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 ratio */
    margin: 1rem auto;
}

.post-content .video-responsive video,
.post-content .video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.post-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Post Meta */
.post-meta {
    background-color: #111;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 8px;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.post-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 1rem;
    color: #ccc;
    font-size: 0.9rem;
}

.stats-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stats-item i {
    color: #ff6b6b;
}

/* Categories/Tags */
.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 1rem;
}

.category-tag {
    background-color: #333;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    text-decoration: none;
    font-size: 0.8rem;
    transition: background-color 0.3s;
}

.category-tag:hover {
    background-color: #ff6b6b;
    color: #fff;
}

/* Related Videos y Sidebar - REMOVIDO */

/* Botones de acción */
.action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 1rem;
    justify-content: center;
}

.btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: #ff6b6b;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: #ff6b6b;
}

.btn-primary:hover {
    background-color: #ff5252;
}

.btn.liked {
    background-color: #ff1744;
}

/* Estilos específicos para el botón CPA */
.btn.cpa {
    background-color: #4CAF50;
    color: #fff;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.btn.cpa:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn.cpa:active {
    transform: translateY(0);
}

/* Efecto de loading para botón CPA */
.btn.cpa.loading {
    background-color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn.cpa.loading:hover {
    background-color: #666;
    transform: none;
    box-shadow: none;
}

/* Loading state para botones */
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ff6b6b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 9999;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos adicionales para mejorar la apariencia */
.main-content {
    min-height: 80vh;
}

.video-post {
    margin-bottom: 2rem;
}

.no-posts {
    text-align: center;
    padding: 3rem 1rem;
    color: #ccc;
}

.no-posts h2 {
    color: #fff;
    margin-bottom: 1rem;
}

/* Mejorar la visualización del video */
.video-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.no-video {
    background-color: #222;
    color: #ccc;
    padding: 3rem;
    text-align: center;
    border-radius: 8px;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 107, 107, 0.8);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-btn-large {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}