/* ============================================
   ALVIM CLASSIFIEDS PRO - FRONTEND STYLES
   ============================================ */

:root {
    --wpcp-primary: #0073aa;
    --wpcp-secondary: #005a87;
    --wpcp-bg: #f8f9fa;
    --wpcp-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --wpcp-shadow-hover: 0 8px 25px rgba(0,0,0,0.15);
    --wpcp-radius: 8px;
    --wpcp-transition: all 0.3s ease;
}

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */
.wpcp-classifieds {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.wpcp-breadcrumbs {
    font-size: 14px;
    padding: 10px 0;
    color: #666;
    margin-bottom: 15px;
}
.wpcp-breadcrumbs a {
    color: var(--wpcp-primary);
    text-decoration: none;
}
.wpcp-breadcrumbs a:hover {
    text-decoration: underline;
}
.wpcp-breadcrumbs .separator {
    margin: 0 8px;
    color: #999;
}

/* ============================================
   SLIDER
   ============================================ */
.wpcp-slider-wrapper {
    margin-bottom: 30px;
    border-radius: var(--wpcp-radius);
    overflow: hidden;
    position: relative;
}

.wpcp-slide-item {
    height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.wpcp-slide-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    transition: var(--wpcp-transition);
}

.wpcp-slide-item:hover::before {
    background: rgba(0,0,0,0.6);
}

.wpcp-slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 20px;
    max-width: 600px;
}

.wpcp-slide-content h3 {
    font-size: 32px;
    margin: 0 0 10px;
    font-weight: 700;
}

.wpcp-slide-content h3 a {
    color: #fff;
    text-decoration: none;
    transition: var(--wpcp-transition);
}

.wpcp-slide-content h3 a:hover {
    color: #ffd700;
}

.wpcp-slide-content p {
    font-size: 16px;
    margin: 0 0 20px;
    opacity: 0.9;
    line-height: 1.6;
}

.wpcp-slide-link {
    display: inline-block;
    background: var(--wpcp-primary);
    color: #fff;
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--wpcp-transition);
}

.wpcp-slide-link:hover {
    background: var(--wpcp-secondary);
    color: #fff;
    transform: scale(1.05);
}

/* Swiper custom */
.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
    background: rgba(0,0,0,0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: var(--wpcp-transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0,0,0,0.6);
}

.swiper-pagination-bullet {
    background: #fff !important;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: #fff !important;
}

/* ============================================
   SEARCH BAR
   ============================================ */
.wpcp-search-bar {
    margin-bottom: 20px;
}

.wpcp-search-form {
    display: flex;
    gap: 10px;
    max-width: 500px;
}

.wpcp-search-form input[type="text"] {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: var(--wpcp-radius);
    font-size: 16px;
    transition: var(--wpcp-transition);
    background: #fff;
}

.wpcp-search-form input[type="text"]:focus {
    border-color: var(--wpcp-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
}

.wpcp-search-form button {
    padding: 12px 30px;
    background: var(--wpcp-primary);
    color: #fff;
    border: none;
    border-radius: var(--wpcp-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--wpcp-transition);
    white-space: nowrap;
}

.wpcp-search-form button:hover {
    background: var(--wpcp-secondary);
    transform: scale(1.02);
}

.wpcp-search-form button i {
    margin-right: 8px;
}

/* ============================================
   FILTROS
   ============================================ */
.wpcp-filters {
    background: var(--wpcp-bg);
    padding: 15px 20px;
    border-radius: var(--wpcp-radius);
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 25px;
    align-items: center;
    border: 1px solid #e9ecef;
}

.wpcp-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wpcp-filter-item label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.wpcp-filter-item select {
    padding: 8px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    font-size: 14px;
    transition: var(--wpcp-transition);
    cursor: pointer;
}

.wpcp-filter-item select:focus {
    border-color: var(--wpcp-primary);
    outline: none;
}

/* ============================================
   TAGS CLOUD (UNIFICADO)
   ============================================ */
.wpcp-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
}

.wpcp-tags-label {
    font-weight: 600;
    margin-right: 5px;
    font-size: 14px;
    color: #333;
}

.wpcp-tag {
    display: inline-block;
    padding: 5px 16px;
    background: #e9ecef;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    transition: var(--wpcp-transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.wpcp-tag:hover {
    background: var(--wpcp-primary);
    color: #fff;
    border-color: var(--wpcp-primary);
    transform: translateY(-2px);
}

.wpcp-tag-count {
    font-size: 11px;
    opacity: 0.7;
    margin-left: 4px;
}

.wpcp-tags-top {
    margin-bottom: 20px;
}

.wpcp-tags-bottom {
    margin-top: 20px;
}

/* ============================================
   GRID/LISTA DE CLASSIFICADOS
   ============================================ */
.wpcp-items {
    display: grid;
    gap: 25px;
}

.wpcp-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.wpcp-list {
    grid-template-columns: 1fr;
}

/* ============================================
   CARD
   ============================================ */
.wpcp-card {
    background: #fff;
    border-radius: var(--wpcp-radius);
    overflow: hidden;
    box-shadow: var(--wpcp-shadow);
    transition: var(--wpcp-transition);
    display: flex;
    flex-direction: column;
}

.wpcp-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--wpcp-shadow-hover);
}

.wpcp-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.wpcp-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--wpcp-transition);
}

.wpcp-card:hover .wpcp-card-image img {
    transform: scale(1.05);
}

/* Badges */
.wpcp-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.wpcp-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: 0.5px;
}

.wpcp-badge.featured {
    background: #f39c12;
}

.wpcp-badge.new {
    background: #27ae60;
}

/* Conteúdo do Card */
.wpcp-card-content {
    padding: 15px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wpcp-card-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.wpcp-card-title a {
    color: #222;
    text-decoration: none;
    transition: var(--wpcp-transition);
}

.wpcp-card-title a:hover {
    color: var(--wpcp-primary);
}

.wpcp-card-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--wpcp-primary);
    margin: 6px 0 10px;
}

.wpcp-card-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px;
    flex: 1;
}

/* Metadados no Card */
.wpcp-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 13px;
    color: #888;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    margin-top: auto;
}

.wpcp-card-meta i {
    margin-right: 5px;
    width: 14px;
}

.wpcp-card-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wpcp-card-author img {
    border-radius: 50%;
    border: 2px solid #f0f0f0;
}

.wpcp-card-author a {
    color: #555;
    text-decoration: none;
    transition: var(--wpcp-transition);
}

.wpcp-card-author a:hover {
    color: var(--wpcp-primary);
}

.wpcp-updated {
    font-size: 12px;
    color: #aaa;
}

/* Ações do Card */
.wpcp-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    gap: 10px;
}

.wpcp-card-link {
    display: inline-block;
    background: var(--wpcp-primary);
    color: #fff;
    padding: 8px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--wpcp-transition);
}

.wpcp-card-link:hover {
    background: var(--wpcp-secondary);
    color: #fff;
    transform: scale(1.02);
}

.wpcp-favorite {
    background: none;
    border: none;
    font-size: 22px;
    color: #ccc;
    cursor: pointer;
    transition: var(--wpcp-transition);
    padding: 8px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpcp-favorite:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.wpcp-favorite.active {
    color: #e74c3c;
}

.wpcp-favorite.active:hover {
    color: #c0392b;
}

/* ============================================
   SINGLE (PÁGINA INDIVIDUAL)
   ============================================ */
.wpcp-single-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.wpcp-single-title {
    font-size: 32px;
    margin: 0 0 15px;
    color: #222;
}

.wpcp-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 30px;
    padding: 15px 0 20px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    align-items: center;
}

.wpcp-single-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wpcp-single-author img {
    border-radius: 50%;
    border: 3px solid #f0f0f0;
}

.wpcp-single-author-name a {
    font-weight: 600;
    font-size: 16px;
    color: #222;
    text-decoration: none;
}

.wpcp-single-author-name a:hover {
    color: var(--wpcp-primary);
}

.wpcp-single-author-about {
    font-size: 14px;
    color: #777;
    display: block;
}

.wpcp-single-date {
    font-size: 14px;
    color: #555;
}

.wpcp-single-date i {
    margin-right: 6px;
    color: var(--wpcp-primary);
}

.wpcp-single-price {
    font-size: 30px;
    font-weight: 700;
    color: var(--wpcp-primary);
    margin-left: auto;
}

.wpcp-single-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.wpcp-single-image {
    margin: 0 0 25px;
}

.wpcp-single-image img {
    width: 100%;
    height: auto;
    border-radius: var(--wpcp-radius);
    box-shadow: var(--wpcp-shadow);
}

.wpcp-single-content p {
    margin-bottom: 1.5em;
}

.wpcp-single-content h2,
.wpcp-single-content h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

/* ============================================
   ITENS RELACIONADOS
   ============================================ */
.wpcp-related {
    margin-top: 45px;
    padding-top: 35px;
    border-top: 2px solid #f0f0f0;
}

.wpcp-related h3 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #222;
}

.wpcp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

/* Botão Voltar */
.wpcp-back-link {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 25px;
    background: #f0f0f0;
    color: #333;
    border-radius: var(--wpcp-radius);
    text-decoration: none;
    transition: var(--wpcp-transition);
}

.wpcp-back-link:hover {
    background: var(--wpcp-primary);
    color: #fff;
}

/* ============================================
   LAYOUT COM BANNERS LATERAIS (SINGLE)
   ============================================ */
.wpcp-single-layout {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    gap: 30px;
    margin: 30px 0;
}

.wpcp-sidebar-left,
.wpcp-sidebar-right {
    position: relative;
}

.wpcp-sidebar-left .wpcp-banner-vertical,
.wpcp-sidebar-right .wpcp-banner-vertical {
    position: sticky;
    top: 30px;
}

.wpcp-sidebar-left .wpcp-banner-vertical img,
.wpcp-sidebar-right .wpcp-banner-vertical img {
    width: 100%;
    height: auto;
    border-radius: var(--wpcp-radius);
    box-shadow: var(--wpcp-shadow);
}

.wpcp-main-content {
    min-width: 0; /* Previne overflow */
}

/* ============================================
   BANNERS
   ============================================ */
.wpcp-banner {
    text-align: center;
    margin: 20px 0;
}

.wpcp-banner-horizontal {
    width: 100%;
}

.wpcp-banner-horizontal img,
.wpcp-banner-horizontal video {
    max-width: 100%;
    height: auto;
    border-radius: var(--wpcp-radius);
    box-shadow: var(--wpcp-shadow);
}

.wpcp-banner-vertical {
    max-width: 100%;
    margin: 0 auto;
}

.wpcp-banner-vertical img,
.wpcp-banner-vertical video {
    width: 100%;
    height: auto;
    border-radius: var(--wpcp-radius);
    box-shadow: var(--wpcp-shadow);
}

.wpcp-banner a:hover img,
.wpcp-banner a:hover video {
    opacity: 0.95;
    transition: var(--wpcp-transition);
}

/* ============================================
   FRONTEND FORM
   ============================================ */
.wpcp-frontend-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 30px;
    border-radius: var(--wpcp-radius);
    box-shadow: var(--wpcp-shadow);
}

.wpcp-frontend-form h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 24px;
    color: #222;
}

.wpcp-form-group {
    margin-bottom: 20px;
}

.wpcp-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
}

.wpcp-form-group input,
.wpcp-form-group textarea,
.wpcp-form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    font-size: 15px;
    transition: var(--wpcp-transition);
    background: #fafafa;
}

.wpcp-form-group input:focus,
.wpcp-form-group textarea:focus,
.wpcp-form-group select:focus {
    border-color: var(--wpcp-primary);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

.wpcp-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.wpcp-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.wpcp-form-actions button {
    padding: 12px 35px;
    background: var(--wpcp-primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: var(--wpcp-transition);
}

.wpcp-form-actions button:hover {
    background: var(--wpcp-secondary);
    transform: translateY(-2px);
}

.wpcp-form-actions button[type="submit"]:first-child {
    background: #27ae60;
}

.wpcp-form-actions button[type="submit"]:first-child:hover {
    background: #219a52;
}

/* ============================================
   LISTAGENS E ESTATÍSTICAS
   ============================================ */
.wpcp-listings-table,
.wpcp-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    background: #fff;
    border-radius: var(--wpcp-radius);
    overflow: hidden;
    box-shadow: var(--wpcp-shadow);
}

.wpcp-listings-table th,
.wpcp-stats-table th {
    background: #f0f0f0;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.wpcp-listings-table td,
.wpcp-stats-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.wpcp-listings-table tr:last-child td,
.wpcp-stats-table tr:last-child td {
    border-bottom: none;
}

.wpcp-listings-table tr:hover,
.wpcp-stats-table tr:hover {
    background: #fafafa;
}

.wpcp-listings-table .wpcp-action {
    display: inline-block;
    padding: 4px 14px;
    margin: 0 3px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: var(--wpcp-transition);
}

.wpcp-action.view { background: #0073aa; }
.wpcp-action.view:hover { background: #005a87; }

.wpcp-action.edit { background: #ffba00; color: #333; }
.wpcp-action.edit:hover { background: #e6a700; }

.wpcp-action.delete { background: #d63638; }
.wpcp-action.delete:hover { background: #b5272a; }

.wpcp-stats-table tfoot th {
    background: #f8f9fa;
    font-size: 16px;
}

/* ============================================
   PAGINAÇÃO
   ============================================ */
.wpcp-pagination {
    margin-top: 30px;
    text-align: center;
}

.wpcp-pagination .page-numbers {
    display: inline-block;
    padding: 10px 18px;
    margin: 0 4px;
    background: #f1f1f1;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: var(--wpcp-transition);
    border: 1px solid transparent;
}

.wpcp-pagination .page-numbers.current {
    background: var(--wpcp-primary);
    color: #fff;
    border-color: var(--wpcp-primary);
}

.wpcp-pagination .page-numbers:hover:not(.current) {
    background: var(--wpcp-secondary);
    color: #fff;
}

/* ============================================
   NO RESULTS
   ============================================ */
.wpcp-no-results {
    text-align: center;
    padding: 50px 20px;
    color: #666;
    background: var(--wpcp-bg);
    border-radius: var(--wpcp-radius);
}

.wpcp-no-results p {
    font-size: 18px;
    margin: 0;
}

/* ============================================
   LOADING
   ============================================ */
.wpcp-loading {
    text-align: center;
    padding: 40px 20px;
}

.wpcp-loading p {
    font-size: 16px;
    color: #888;
}

.wpcp-loading::before {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f0f0f0;
    border-top-color: var(--wpcp-primary);
    border-radius: 50%;
    animation: wpcp-spin 0.8s linear infinite;
    margin-bottom: 10px;
}

@keyframes wpcp-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVO
   ============================================ */

/* Tablets e telas menores */
@media (max-width: 992px) {
    /* Layout com banners laterais */
    .wpcp-single-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .wpcp-sidebar-left,
    .wpcp-sidebar-right {
        display: none; /* Esconde banners laterais em telas menores */
    }
    
    .wpcp-sidebar-left .wpcp-banner-vertical,
    .wpcp-sidebar-right .wpcp-banner-vertical {
        position: static;
    }
    
    /* Preço no single */
    .wpcp-single-price {
        margin-left: 0;
        width: 100%;
    }
}

/* Tablets pequenos e celulares grandes */
@media (max-width: 768px) {
    /* Grid */
    .wpcp-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .wpcp-related-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
    
    /* Filtros */
    .wpcp-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wpcp-filter-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wpcp-filter-item select {
        width: 100%;
    }
    
    /* Search */
    .wpcp-search-form {
        max-width: 100%;
        flex-direction: column;
    }
    
    .wpcp-search-form button {
        width: 100%;
    }
    
    /* Slider */
    .wpcp-slide-item {
        height: 300px;
    }
    
    .wpcp-slide-content h3 {
        font-size: 22px;
    }
    
    /* Single */
    .wpcp-single-title {
        font-size: 26px;
    }
    
    .wpcp-single-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Banners */
    .wpcp-banner-horizontal img,
    .wpcp-banner-horizontal video {
        border-radius: 4px;
    }
}

/* Celulares */
@media (max-width: 480px) {
    .wpcp-grid {
        grid-template-columns: 1fr;
    }
    
    .wpcp-related-grid {
        grid-template-columns: 1fr;
    }
    
    .wpcp-card-image {
        height: 180px;
    }
    
    .wpcp-slide-item {
        height: 250px;
    }
    
    .wpcp-slide-content h3 {
        font-size: 18px;
    }
    
    .wpcp-slide-content p {
        font-size: 14px;
    }
    
    .wpcp-slide-link {
        padding: 8px 25px;
        font-size: 14px;
    }
    
    .wpcp-single-title {
        font-size: 22px;
    }
    
    .wpcp-single-price {
        font-size: 24px;
    }
    
    .wpcp-single-layout {
        gap: 15px;
    }
    
    .wpcp-frontend-form {
        padding: 20px;
    }
    
    .wpcp-form-actions {
        flex-direction: column;
    }
    
    .wpcp-form-actions button {
        width: 100%;
    }
    
    .wpcp-listings-table,
    .wpcp-stats-table {
        font-size: 13px;
    }
    
    .wpcp-listings-table th,
    .wpcp-listings-table td,
    .wpcp-stats-table th,
    .wpcp-stats-table td {
        padding: 8px 10px;
    }
    
    .wpcp-listings-table .wpcp-action {
        padding: 3px 10px;
        font-size: 11px;
        margin: 2px;
    }
}
/* ============================================
   FRONTEND FORM - ESTILO PROFISSIONAL
   ============================================ */

.wpcp-frontend-form-wrapper {
    max-width: 800px;
    margin: 0 auto 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 35px 40px;
}

.wpcp-form-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.wpcp-form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px;
}

.wpcp-form-header p {
    color: #666;
    font-size: 15px;
    margin: 0;
}

/* Mensagens */
.wpcp-form-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

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

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

.wpcp-form-message.wpcp-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.wpcp-form-message p {
    margin: 0;
}

/* Formulário */
.wpcp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wpcp-form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.wpcp-form-row-2 .wpcp-form-group {
    flex: 1 1 calc(50% - 10px);
    min-width: 200px;
}

.wpcp-form-group-full {
    flex: 1 1 100%;
}

.wpcp-form-group {
    display: flex;
    flex-direction: column;
}

.wpcp-form-group label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 6px;
}

.wpcp-form-group label .wpcp-required {
    color: #dc3545;
    font-weight: 700;
}

.wpcp-form-group input[type="text"],
.wpcp-form-group input[type="number"],
.wpcp-form-group input[type="url"],
.wpcp-form-group select {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
    width: 100%;
}

.wpcp-form-group input:focus,
.wpcp-form-group select:focus {
    border-color: #0073aa;
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.1);
}

.wpcp-form-group textarea {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
    width: 100%;
    min-height: 150px;
    resize: vertical;
}

.wpcp-form-group textarea:focus {
    border-color: #0073aa;
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.1);
}

/* File Upload */
.wpcp-file-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.wpcp-file-upload input[type="file"] {
    display: none;
}

.wpcp-file-name {
    color: #666;
    font-size: 14px;
    padding: 8px 14px;
    background: #f5f5f5;
    border-radius: 6px;
    flex: 1;
    min-width: 120px;
}

.wpcp-file-button {
    display: inline-block;
    padding: 10px 24px;
    background: #e9ecef;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.wpcp-file-button:hover {
    background: #dee2e6;
}

.wpcp-current-image {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wpcp-current-image img {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.wpcp-current-image p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

/* Botões */
.wpcp-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.wpcp-btn {
    padding: 12px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.wpcp-btn i {
    font-size: 16px;
}

.wpcp-btn-primary {
    background: #0073aa;
    color: #ffffff;
}

.wpcp-btn-primary:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.wpcp-btn-secondary {
    background: #6c757d;
    color: #ffffff;
}

.wpcp-btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.wpcp-btn-cancel {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.wpcp-btn-cancel:hover {
    background: #e9ecef;
}

/* ============================================
   MY LISTINGS
   ============================================ */

.wpcp-my-listings {
    max-width: 1000px;
    margin: 0 auto 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 30px 35px;
}

.wpcp-listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.wpcp-listings-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.wpcp-listings-stats {
    display: flex;
    gap: 15px;
}

.wpcp-stat-item {
    background: #f8f9fa;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    color: #555;
}

.wpcp-stat-item i {
    margin-right: 6px;
    color: #0073aa;
}

/* Tabela */
.wpcp-listings-table-wrapper {
    overflow-x: auto;
}

.wpcp-listings-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wpcp-listings-table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.wpcp-listings-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.wpcp-listings-table tr:hover {
    background: #f8f9fa;
}

.wpcp-col-id {
    width: 60px;
    text-align: center;
}

.wpcp-col-title {
    min-width: 200px;
}

.wpcp-col-title a {
    color: #1a1a2e;
    text-decoration: none;
    font-weight: 500;
}

.wpcp-col-title a:hover {
    color: #0073aa;
}

.wpcp-col-status {
    text-align: center;
}

.wpcp-status-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.wpcp-status-publish {
    background: #d4edda;
    color: #155724;
}

.wpcp-status-draft {
    background: #fff3cd;
    color: #856404;
}

.wpcp-status-pending {
    background: #cce5ff;
    color: #004085;
}

.wpcp-col-date {
    text-align: center;
    color: #666;
    font-size: 13px;
}

.wpcp-col-actions {
    text-align: center;
    white-space: nowrap;
}

.wpcp-action {
    display: inline-block;
    padding: 6px 10px;
    margin: 0 3px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
}

.wpcp-action i {
    font-size: 14px;
}

.wpcp-action-view {
    background: #0073aa;
}

.wpcp-action-view:hover {
    background: #005a87;
    transform: scale(1.05);
}

.wpcp-action-edit {
    background: #ffba00;
    color: #333;
}

.wpcp-action-edit:hover {
    background: #e6a700;
    transform: scale(1.05);
}

.wpcp-action-delete {
    background: #dc3545;
}

.wpcp-action-delete:hover {
    background: #bd2130;
    transform: scale(1.05);
}

/* ============================================
   STATS
   ============================================ */

.wpcp-stats-wrapper {
    max-width: 1000px;
    margin: 0 auto 40px;
}

.wpcp-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.wpcp-stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.wpcp-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.wpcp-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.wpcp-stat-icon-blue {
    background: linear-gradient(135deg, #0073aa, #005a87);
}

.wpcp-stat-icon-green {
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.wpcp-stat-icon-orange {
    background: linear-gradient(135deg, #fd7e14, #e06b0a);
}

.wpcp-stat-icon-purple {
    background: linear-gradient(135deg, #6f42c1, #5935a0);
}

.wpcp-stat-content {
    display: flex;
    flex-direction: column;
}

.wpcp-stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}

.wpcp-stat-label {
    font-size: 13px;
    color: #888;
    margin-top: 2px;
}

.wpcp-stat-sub {
    font-size: 12px;
    color: #666;
    font-style: italic;
    margin-top: 2px;
}

.wpcp-stats-table-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    padding: 25px 30px;
}

.wpcp-stats-table-wrapper h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 20px;
}

.wpcp-stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.wpcp-stats-table th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
}

.wpcp-stats-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.wpcp-stats-table tr:hover {
    background: #f8f9fa;
}

.wpcp-views-count {
    font-weight: 600;
    color: #0073aa;
}

/* Empty State */
.wpcp-empty-state {
    text-align: center;
    padding: 50px 20px;
}

.wpcp-empty-state i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.wpcp-empty-state h3 {
    font-size: 20px;
    color: #333;
    margin: 0 0 8px;
}

.wpcp-empty-state p {
    color: #888;
    margin: 0 0 20px;
}
/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
    .wpcp-frontend-form-wrapper {
        padding: 20px;
    }
    
    .wpcp-form-row-2 .wpcp-form-group {
        flex: 1 1 100%;
    }
    
    .wpcp-stats-cards {
        grid-template-columns: 1fr 1fr;
    }
    
    .wpcp-listings-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .wpcp-my-listings {
        padding: 20px;
    }
    
    .wpcp-stats-table-wrapper {
        padding: 15px;
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .wpcp-stats-cards {
        grid-template-columns: 1fr;
    }
    
    .wpcp-form-actions {
        flex-direction: column;
    }
    
    .wpcp-form-actions .wpcp-btn {
        width: 100%;
        justify-content: center;
    }
    
    .wpcp-file-upload {
        flex-direction: column;
        align-items: stretch;
    }
}