/* PluxPro Public Styles - Version simplifiée */

/* Reset de base */
.pluxpro-single-plugin * {
    box-sizing: border-box;
}

/* Conteneur principal */
.pluxpro-single-plugin {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ===== EN-TÊTE ===== */
.plugin-header {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
}

.plugin-banner {
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f1;
}

.plugin-header-content {
    padding: 30px;
}

.plugin-title {
    font-size: 36px;
    margin: 0 0 10px 0;
    color: #1d2327;
}

.plugin-description {
    font-size: 16px;
    color: #50575e;
    margin-bottom: 20px;
    max-width: 75%;
}

.plugin-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    color: #646970;
}

.meta-item a {
    color: #2271b1;
    text-decoration: none;
}

.meta-item a:hover {
    text-decoration: underline;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2271b1;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.download-button:hover {
    background: #135e96;
    color: white;
}

.download-count {
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 14px;
}

/* ===== GRILLE ===== */
.plugin-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* ===== CONTENU PRINCIPAL ===== */
.plugin-main {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 30px;
}

/* Onglets */
.plugin-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f1;
    margin-bottom: 30px;
    gap: 5px;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #50575e;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}

.tab-button:hover {
    color: #2271b1;
}

.tab-button.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
}

/* Panels */
.tab-panel {
    display: none;
    line-height: 1.7;
}

.tab-panel.active {
    display: block;
}

/* ===== NOUVEAU STYLE POUR LA GALERIE VERTICALE ===== */
.plugin-gallery-vertical {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 15px 0;
}

.plugin-gallery-item-vertical {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.plugin-gallery-item-vertical a {
    display: block;
    width: 100%;
    cursor: pointer;
}

.plugin-gallery-item-vertical img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: opacity 0.3s;
}

.plugin-gallery-item-vertical img:hover {
    opacity: 0.9;
}

.plugin-gallery-item-vertical .gallery-caption {
    padding: 12px 15px;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    font-size: 0.95em;
    color: #50575e;
    text-align: center;
}
/* ===== FIN NOUVEAU STYLE ===== */

/* Avis */
.review-item {
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin-bottom: 20px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-rating {
    margin-bottom: 10px;
}

.star {
    color: #ddd;
    font-size: 18px;
}

.star.filled {
    color: #ffb900;
}

.show-review-form {
    background: #2271b1;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.review-form {
    margin-top: 20px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ===== SIDEBAR ===== */
.plugin-sidebar {
    position: sticky;
    top: 30px;
}

.sidebar-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 25px;
}

.sidebar-card h3 {
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f1;
}

.plugin-details {
    margin: 0 0 20px 0;
    padding: 0;
    list-style: none;
}

.plugin-details li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f1;
}

.plugin-details li:last-child {
    border-bottom: none;
}

.plugin-details strong {
    display: inline-block;
    width: 120px;
    color: #50575e;
}

.sidebar-download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #2271b1;
    color: white;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.sidebar-download-button:hover {
    background: #135e96;
    color: white;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 20px;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .plugin-grid {
        grid-template-columns: 1fr;
    }
    
    .plugin-sidebar {
        position: static;
    }
    
    .plugin-description {
        max-width: 100%;
    }
    
    .plugin-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .plugin-tabs {
        flex-wrap: wrap;
    }
}