/* ==========================================================================
   Fullurene Editorial Suite - Frontend Review & Gallery Styles
   ========================================================================== */

/* --- Stili Galleria Adattiva e Card Foto [pgc_galerie] --- */
.pgc-custom-photo-card,
.el-item.pgc-custom-photo-card {
    border-radius: 8px !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
    background: #ffffff !important;
}

.pgc-custom-photo-card.pgc-photo-approved,
.el-item.pgc-photo-approved {
    border: 3px solid #2e7d32 !important;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2) !important;
}

.pgc-custom-photo-card.pgc-photo-rejected,
.el-item.pgc-photo-rejected {
    border: 3px solid #dc3545 !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.2) !important;
}

/* --- Card Footer Segmentato 50% / 50% --- */
.pgc-custom-photo-card .uk-card-footer,
.pgc-photo-card-footer {
    padding: 0 !important;
    margin: 0 !important;
    border-top: 1px solid #e2e8f0 !important;
    border-radius: 0 0 5px 5px !important;
    overflow: hidden !important;
    width: 100% !important;
    background: #ffffff !important;
}

.pgc-photo-seg-wrapper {
    display: flex !important;
    width: 100% !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
    align-items: stretch !important;
}

.pgc-photo-seg-col {
    flex: 1 1 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: stretch !important;
}

.pgc-photo-seg-label {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border-radius: 0 !important;
    border: none !important;
    outline: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1 !important;
    transition: background-color 0.2s ease, color 0.2s ease !important;
}

.pgc-photo-seg-label svg,
.pgc-photo-seg-label [uk-icon] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    width: 16px !important;
    height: 16px !important;
}

.pgc-photo-seg-label.pgc-photo-app-active {
    background-color: #2e7d32 !important;
    color: #ffffff !important;
}

.pgc-photo-seg-label.pgc-photo-rej-active {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

.pgc-photo-seg-label.pgc-photo-inactive {
    background-color: #ffffff !important;
    color: #475569 !important;
}

.pgc-photo-seg-label.pgc-photo-inactive:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
}

/* --- Pannello di Controllo Redazione [pannello_editor] (Logged-In Editor/Admin) --- */
.pgc-editor-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f8f9fa;
    padding: 18px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-sizing: border-box;
}

.pgc-status-group {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.pgc-status-btn {
    flex: 1 1 50%;
    text-align: center;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.pgc-status-btn.is-pending {
    background: #2e7d32;
    border-color: #27672a;
    color: #ffffff;
}

.pgc-status-btn.is-pending:hover {
    background: #27672a;
}

.pgc-status-btn.is-approved {
    background: #e6f4ea;
    border-color: #2e7d32;
    color: #137333;
    cursor: not-allowed;
    opacity: 0.95;
}

.pgc-status-btn.is-pending-reject {
    background: #dc3545;
    border-color: #bd2130;
    color: #ffffff;
}

.pgc-status-btn.is-pending-reject:hover {
    background: #bd2130;
}

.pgc-status-btn.is-rejected-active {
    background: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
    cursor: not-allowed;
    opacity: 0.95;
}

.pgc-kommentar-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    border-top: 1px solid #e5e5e5;
    padding-top: 14px;
}

.pgc-wysiwyg-wrapper {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    overflow: hidden;
}

.pgc-wysiwyg-wrapper .wp-editor-container {
    border: none !important;
}

.pgc-btn-save-kommentar {
    background: #0073aa;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.pgc-btn-save-kommentar:hover {
    background: #005177;
}

.pgc-kommentar-msg {
    font-size: 12px;
    font-weight: 600;
}

.pgc-action-group {
    display: flex;
    gap: 10px;
    border-top: 1px solid #e5e5e5;
    padding-top: 14px;
    width: 100%;
}

.pgc-btn-action {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.pgc-btn-edit {
    background: #1e293b;
    color: #ffffff !important;
    flex-grow: 1;
}

.pgc-btn-edit:hover {
    background: #0f172a;
}

.pgc-btn-logout {
    background: #ef4444;
    color: #ffffff !important;
    width: auto;
}

.pgc-btn-logout:hover {
    background: #dc2626;
}

/* --- Modulo Approvazione Cliente (Front-End & Guest) --- */
.pgc-review-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
}

.pgc-review-container .uk-button-success,
.pgc-btn-approve {
    background-color: #2e7d32 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    transition: background-color 0.2s ease !important;
}

.pgc-review-container .uk-button-success:hover,
.pgc-btn-approve:hover {
    background-color: #246327 !important;
}

.pgc-review-container .uk-button-warning,
.pgc-btn-revision {
    background-color: #f59e0b !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    transition: background-color 0.2s ease !important;
}

.pgc-review-container .uk-button-warning:hover,
.pgc-btn-revision:hover {
    background-color: #d97706 !important;
}

.pgc-review-container .uk-button-danger,
.pgc-btn-reject {
    background-color: #dc3545 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    transition: background-color 0.2s ease !important;
}

.pgc-review-container .uk-button-danger:hover,
.pgc-btn-reject:hover {
    background-color: #bd2130 !important;
}

.pgc-btn-download {
    background-color: #f8fafc !important;
    color: #1e293b !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.pgc-btn-download:hover {
    background-color: #f1f5f9 !important;
    border-color: #94a3b8 !important;
}

/* --- Box Note Legali [pgc_rechtlicher_hinweis] --- */
.pgc-legal-disclaimer-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
    margin: 20px 0;
    font-size: 13px;
    color: #334155;
    line-height: 1.6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
