/**
 * RCAD Auto Publisher Pro - Frontend Bundle CSS
 * v5.4.0 - CSS Global Unificado
 * 
 * Este archivo combina todos los estilos necesarios para:
 * - Info Block (Detalles de Archivo CAD)
 * - Download Button (Botón de Descarga)
 * - FAQ Section (Preguntas Frecuentes)
 * 
 * NO se inserta en cada entrada - se carga GLOBALMENTE una sola vez
 */

/* ============================================
   INFO BLOCK - Technical Information
   ============================================ */

.rcad-info-block {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 24px;
    margin: 30px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.rcad-info-title {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #dee2e6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rcad-info-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rcad-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 15px;
    line-height: 1.6;
}

.rcad-info-label {
    font-weight: 600;
    color: #495057;
    min-width: 120px;
    flex-shrink: 0;
}

.rcad-info-label::before {
    content: "• ";
    color: #6c757d;
    font-weight: bold;
    margin-right: 4px;
}

.rcad-info-value {
    color: #212529;
    flex: 1;
}

/* Tags styling */
.rcad-info-tags {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
}

.rcad-info-tags .rcad-info-label {
    flex-shrink: 0;
    min-width: 120px;
}

.rcad-info-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
    margin-left: 8px;
}

.rcad-info-tag {
    display: inline-block;
    background: #007AFF;
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.rcad-info-tag:hover {
    background: #0056CC;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Categories styling */
.rcad-info-categories {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
}

.rcad-info-categories .rcad-info-label {
    flex-shrink: 0;
    min-width: 120px;
}

.rcad-info-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
    margin-left: 8px;
}

.rcad-info-category {
    display: inline-block;
    background: #28a745;
    color: white !important;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.rcad-info-category:hover {
    background: #218838;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ============================================
   DOWNLOAD BUTTON - Botón de Descarga
   ============================================ */

.rcad-download-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    text-align: center;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.rcad-download-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    color: #fff;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 8px 24px rgba(0,122,255,0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.rcad-download-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,122,255,0.5) !important;
    color: #fff !important;
    text-decoration: none !important;
}

.rcad-download-btn:active {
    transform: translateY(-2px);
}

.rcad-download-title {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 22px;
    font-weight: 700;
}

.rcad-adsense-container {
    margin-bottom: 20px;
}

.rcad-download-button-wrapper {
    margin: 20px 0;
}

.rcad-download-icon {
    flex-shrink: 0;
}

.rcad-download-text {
    flex: 1;
}

.rcad-download-size {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.rcad-download-note {
    margin: 20px 0 0 0;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* ============================================
   FAQ SECTION - SSL Style (Estilo Blanco Premium)
   ============================================ */

.ssl-faq {
    margin: 2rem 0;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    overflow: hidden;
}

.ssl-faq-item + .ssl-faq-item {
    border-top: 1px solid #efefef;
}

.ssl-faq-question {
    margin: 0;
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    background: #ffffff;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.18s ease, padding-left 0.18s ease;
}

.ssl-faq-question:hover {
    background: #f9f9f9;
    padding-left: 1.35rem;
}

.ssl-faq-toggle {
    font-size: 1.2rem;
    margin-left: 0.75rem;
    color: #666666;
    transition: transform 0.2s ease;
}

.ssl-faq-question.active .ssl-faq-toggle {
    transform: rotate(180deg);
}

.ssl-faq-answer {
    padding: 0.9rem 1.2rem 1rem;
    font-size: 0.92rem;
    color: #444444;
    background: #ffffff;
    display: none;
    animation: faqFade 0.2s ease;
}

@keyframes faqFade {
    from { opacity: 0; transform: translateY(-3px); }
    to { opacity: 1; transform: translateY(0); }
}

.ssl-faq-answer p {
    margin: 0.35rem 0;
}

/* ============================================
   RESPONSIVE - Mobile
   ============================================ */

@media (max-width: 768px) {
    /* Info Block */
    .rcad-info-block {
        padding: 16px;
        margin: 20px 0;
    }
    
    .rcad-info-title {
        font-size: 16px;
    }
    
    .rcad-info-item {
        flex-direction: column;
        gap: 4px;
    }
    
    .rcad-info-label {
        min-width: auto;
    }
    
    .rcad-info-tag-list,
    .rcad-info-category-list {
        margin-left: 0;
    }
    
    /* Download Section */
    .rcad-download-section {
        padding: 20px;
        margin: 30px 0;
    }
    
    .rcad-download-btn {
        padding: 14px 30px;
        font-size: 14px;
    }
    
    /* FAQ */
    .ssl-faq {
        margin: 1.5rem 0;
        border-radius: 8px;
    }
    
    .ssl-faq-question {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }
    
    .ssl-faq-question:hover {
        padding-left: 1.15rem;
    }
    
    .ssl-faq-toggle {
        font-size: 1.1rem;
    }
    
    .ssl-faq-answer {
        padding: 0.75rem 1rem 0.85rem;
        font-size: 0.88rem;
    }
}

/* ============================================
   DARK MODE - Optional Support
   ============================================ */

@media (prefers-color-scheme: dark) {
    /* Info Block */
    .rcad-info-block {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .rcad-info-title {
        color: #f7fafc;
        border-bottom-color: #4299e1;
    }
    
    .rcad-info-label {
        color: #cbd5e0;
    }
    
    .rcad-info-value {
        color: #e2e8f0;
    }
    
    .rcad-info-tag {
        background: #4299e1;
    }
    
    .rcad-info-tag:hover {
        background: #3182ce;
    }
    
    .rcad-info-category {
        background: #48bb78;
    }
    
    .rcad-info-category:hover {
        background: #38a169;
    }
    
    /* Download Section */
    .rcad-download-section {
        background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    }
    
    /* FAQ */
    .ssl-faq {
        background: #2a2a2a;
        border-color: #404040;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }
    
    .ssl-faq-item + .ssl-faq-item {
        border-top-color: #404040;
    }
    
    .ssl-faq-question {
        background: #2a2a2a;
        color: #ffffff;
    }
    
    .ssl-faq-question:hover {
        background: #333333;
    }
    
    .ssl-faq-toggle {
        color: #cccccc;
    }
    
    .ssl-faq-answer {
        background: #2a2a2a;
        color: #cccccc;
    }
}

/* ============================================
   ACCORDION MODE - FAQ Collapsible
   Applied via JavaScript when enabled
   ============================================ */

.faq-item.accordion-enabled {
    cursor: pointer;
}

.faq-item.accordion-enabled .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.accordion-enabled.active .faq-answer {
    max-height: 500px;
}

.faq-item.accordion-enabled.active .faq-question::before {
    content: "▲ ";
}

/* ============================================
   FORCE OVERRIDE - v5.7.3
   Sobrescribe cualquier caché con !important
   ============================================ */

.rcad-info-block {
    border-left: none !important;
    border: 1px solid #dee2e6 !important;
}

.rcad-info-title {
    border-bottom: 2px solid #dee2e6 !important;
}

.rcad-info-label::before {
    color: #6c757d !important;
}
