
/* Frontend Post Creator Styles */
#fpc-container {
    max-width: 800px;
    margin: 20px 0;
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fpc-form {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.fpc-tabs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
    gap: 0;
}

#fpc-posts-tab.fpc-tab-content {
    margin-top: 0;
}

.fpc-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    transition: all 0.3s;
}

.fpc-tab.active {
    color: #0073aa;
    border-bottom: 2px solid #0073aa;
}

.fpc-tab:hover {
    color: #0073aa;
}

.fpc-tab-content {
    display: none;
}

.fpc-tab-content.active {
    display: block;
}

.fpc-field {
    margin-bottom: 20px;
}

.fpc-field label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.fpc-field input[type="text"],
.fpc-field input[type="url"],
.fpc-field select,
.fpc-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.fpc-link-preview {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.fpc-preview-content img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.fpc-preview-content h4 {
    margin: 10px 0;
    color: #333;
}

.fpc-preview-content p {
    color: #666;
    margin: 10px 0;
}

.fpc-preview-content a {
    color: #0073aa;
    text-decoration: none;
}

.fpc-preview-content a:hover {
    text-decoration: underline;
}

/* Stili per embed e link card nel post */
.fpc-embed-wrapper {
    margin: 20px 0;
}

.fpc-link-card {
    transition: box-shadow 0.3s ease;
}

.fpc-link-card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.fpc-featured-image-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

#fpc-featured-image-preview img {
    max-width: 150px;
    height: auto;
}

.fpc-submit-container {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.fpc-loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.fpc-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
}

.fpc-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.fpc-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.button {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.button:hover {
    background: #005a87;
}

.button-primary {
    font-size: 16px;
    padding: 10px 20px;
}

.fpc-login-required,
.fpc-not-allowed {
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* Nasconde la toolbar WP sulla pagina del form (anche con cache/tema aggressivi) */
body.fpc-hide-admin-bar #wpadminbar,
html body.fpc-hide-admin-bar #wpadminbar {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

html body.fpc-hide-admin-bar,
html body.fpc-hide-admin-bar.admin-bar {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.fpc-posts-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.fpc-posts-search-input {
    flex: 1 1 220px;
    min-width: 180px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.fpc-posts-panel {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 20px;
}

.fpc-posts-summary {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
}

.fpc-posts-empty {
    margin: 0;
    color: #646970;
}

.fpc-posts-list {
    margin: 0;
    padding-left: 1.4em;
}

.fpc-posts-filter-no-thumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #50575e;
    cursor: pointer;
    user-select: none;
}

.fpc-posts-missing-notice {
    margin: -8px 0 14px;
    padding: 10px 12px;
    background: #fff8e5;
    border: 1px solid #f0d58c;
    border-radius: 4px;
    font-size: 13px;
    color: #8a6d00;
}

.fpc-posts-list-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.fpc-posts-list-item--no-thumb {
    padding: 10px 10px 10px 12px;
    margin-bottom: 10px;
    background: #fffbf0;
    border-left: 3px solid #dba617;
    border-bottom: 1px solid #f0e6c8;
    border-radius: 0 4px 4px 0;
}

.fpc-posts-list-item-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.fpc-posts-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

.fpc-posts-badge--warning {
    background: #fcf0cd;
    color: #8a6d00;
    border: 1px solid #f0d58c;
}

.fpc-posts-edit-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.fpc-posts-edit-link:hover {
    text-decoration: underline;
}

.fpc-posts-list-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.fpc-posts-list a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
}

.fpc-posts-list a:hover {
    text-decoration: underline;
}

.fpc-posts-meta {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #646970;
    font-weight: normal;
}

.fpc-posts-pagination {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fpc-posts-pagination-info {
    font-size: 13px;
    color: #646970;
}

.fpc-posts-pagination-buttons {
    display: flex;
    gap: 8px;
}

#fpc-posts-list-wrap.fpc-loading {
    opacity: 0.55;
    pointer-events: none;
}

.fpc-posts-share-notice {
    margin: 0 0 12px;
    padding: 10px 12px;
    background: #e7f5e8;
    border: 1px solid #b8e6bc;
    border-radius: 4px;
    font-size: 13px;
    color: #1e4620;
}

.fpc-posts-share-notice[hidden] {
    display: none !important;
}

.fpc-posts-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

.fpc-posts-share-label {
    font-size: 12px;
    font-weight: 600;
    color: #50575e;
    margin-right: 4px;
}

.fpc-share-btn {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 4px;
    border: 1px solid #c3c4c7;
    background: #fff;
    color: #1d2327;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.fpc-share-btn:hover {
    background: #f6f7f7;
    border-color: #8c8f94;
}

.fpc-share-btn--email {
    border-color: #6b6b6b;
}

.fpc-share-btn--whatsapp {
    background: #e8f8ee;
    border-color: #25d366;
    color: #128c7e;
}

.fpc-share-btn--facebook {
    background: #e8f0fb;
    border-color: #1877f2;
    color: #1877f2;
}

.fpc-share-btn--instagram {
    background: #fceef5;
    border-color: #e4405f;
    color: #c13584;
}

.fpc-share-btn--tiktok {
    background: #f2f2f2;
    border-color: #010101;
    color: #010101;
}

.fpc-schedule-panel {
    background: #fff;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 20px;
}

.fpc-schedule-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.fpc-schedule-toolbar label {
    font-weight: 600;
    color: #1d2327;
}

.fpc-schedule-month-select {
    min-width: 200px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.fpc-schedule-summary {
    margin: 0 0 18px;
    font-size: 14px;
    color: #50575e;
}

.fpc-schedule-chart-block {
    margin-bottom: 28px;
}

.fpc-schedule-chart-block:last-child {
    margin-bottom: 0;
}

.fpc-schedule-chart-title {
    margin: 0 0 12px;
    font-size: 15px;
    color: #1d2327;
}

.fpc-schedule-chart-wrap {
    overflow-x: auto;
    padding-bottom: 8px;
}

.fpc-schedule-empty {
    margin: 0;
    color: #646970;
    font-size: 14px;
}

.fpc-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    min-height: 160px;
    padding-top: 8px;
}

.fpc-schedule-chart-wrap--daily .fpc-bar-chart {
    min-width: 640px;
}

.fpc-bar-chart-col {
    flex: 1 1 0;
    min-width: 22px;
    max-width: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.fpc-bar-chart-bar {
    display: block;
    width: 100%;
    max-width: 28px;
    border-radius: 3px 3px 0 0;
    background: #0073aa;
    min-height: 0;
}

.fpc-bar-chart-bar--month {
    background: #3582c4;
}

.fpc-bar-chart-bar--day {
    background: #00a32a;
}

.fpc-bar-chart-val {
    font-size: 11px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1;
    min-height: 14px;
}

.fpc-bar-chart-label {
    font-size: 10px;
    color: #646970;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
}

.fpc-schedule-chart-wrap--daily .fpc-bar-chart-label {
    font-size: 9px;
}
    