/**
 * Estilos del Frontend
 * Tutor LMS WhatsApp Groups
 */

/* Contenedor del Botón */
.twg-whatsapp-button-container {
    margin: 25px 0;
    padding: 0;
}

/* Botón de WhatsApp */
.twg-whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff !important;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    text-align: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.twg-whatsapp-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.twg-whatsapp-button:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    color: #ffffff !important;
}

.twg-whatsapp-button:hover::before {
    left: 100%;
}

.twg-whatsapp-button:active {
    transform: translateY(0);
}

/* Icono de WhatsApp */
.twg-whatsapp-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Texto del Botón */
.twg-whatsapp-button span {
    white-space: nowrap;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .twg-whatsapp-button {
        padding: 14px 20px;
        font-size: 15px;
        gap: 10px;
    }
    
    .twg-whatsapp-icon {
        width: 20px;
        height: 20px;
    }
}

/* Animación de pulso opcional */
@keyframes twg-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    }
}

.twg-whatsapp-button.pulse {
    animation: twg-pulse 2s infinite;
}

/* Tema oscuro (si el tema lo soporta) */
@media (prefers-color-scheme: dark) {
    .twg-whatsapp-button {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
    }
}

/* ================================
   SILABUS STYLES
   ================================ */

/* Contenedor principal de extras del curso */
.twg-course-extras {
    margin: 25px 0;
}

/* Contenedor del Silabus */
.twg-syllabus-container {
    margin-top: 15px;
    padding: 18px 25px;
    background: linear-gradient(135deg, #ffffff 0%, #fef9f9 100%);
    border: 2px solid #e74c3c;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

/* Título del Silabus */
.twg-syllabus-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.twg-syllabus-title svg.twg-pdf-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px;
    max-width: 24px;
    color: #e74c3c;
    flex-shrink: 0;
}

/* Botón de Descargar */
.twg-syllabus-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #e74c3c;
    color: #ffffff !important;
    padding: 12px 28px;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
}

.twg-syllabus-download-btn:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.twg-syllabus-download-btn:active {
    transform: translateY(0);
}

.twg-syllabus-download-btn svg.twg-download-icon {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    max-width: 18px;
    flex-shrink: 0;
}

/* Responsive para Silabus */
@media screen and (max-width: 600px) {
    .twg-syllabus-container {
        flex-direction: column;
        text-align: center;
        padding: 15px 20px;
    }

    .twg-syllabus-title {
        justify-content: center;
        font-size: 16px;
    }

    .twg-syllabus-download-btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ================================
   LANDING PAGE STYLES
   ================================ */

/* Contenedor del Botón de Landing */
.twg-landing-button-container {
    margin-top: 15px;
    padding: 0;
}

/* Botón de Landing Page */
.twg-landing-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: #ffffff !important;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
    text-align: center;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.35);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.twg-landing-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.twg-landing-button:hover {
    background: linear-gradient(135deg, #8e44ad 0%, #7d3c98 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.45);
    color: #ffffff !important;
}

.twg-landing-button:hover::before {
    left: 100%;
}

.twg-landing-button:active {
    transform: translateY(0);
}

/* Icono de Landing */
.twg-landing-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Texto del Botón */
.twg-landing-button span {
    white-space: nowrap;
}

/* Responsive para Landing */
@media screen and (max-width: 600px) {
    .twg-landing-button {
        padding: 14px 20px;
        font-size: 15px;
        gap: 10px;
    }
    
    .twg-landing-icon {
        width: 20px;
        height: 20px;
    }
}
