/* =====================================
   ESTILOS PARA MIS PUBLICACIONES
   ===================================== */

   .my-publications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.my-publications-title {
    color: #333;
    font-size: 2rem;
    margin: 0;
}

.publications-count {
    color: #666;
    font-size: 1rem;
    margin-left: 1rem;
}

.btn-new-publication {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-new-publication:hover {
    background: linear-gradient(135deg, #45a049, #4CAF50);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.my-publications-container {
    min-height: 50vh;
}

.empty-publications {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 2rem 0;
}

.empty-publications i {
    font-size: 4rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-publications h3 {
    color: #666;
    margin-bottom: 1rem;
}

.empty-publications p {
    color: #999;
    margin-bottom: 2rem;
}

/* Ocultar el botón duplicado "Crear Primera Publicación" */
.empty-publications .btn-new-publication {
    display: none;
}

.publication-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: white;
    transition: all 0.3s ease;
}

.publication-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Estilos para botones de acción estilo index */
.card-image-container {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    height: 260px;
}

.card-action-buttons {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.publication-card:hover .card-action-buttons {
    opacity: 1;
    transform: translateY(0);
}

.card-action-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-action-btn:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.card-action-btn:active {
    transform: scale(0.95);
}

/* Estilos específicos para cada botón */
.pause-btn {
    background: rgba(255, 152, 0, 0.95);
    color: white;
}

.pause-btn:hover {
    background: #ff9800;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.3);
}

.resume-btn {
    background: rgba(76, 175, 80, 0.95);
    color: white;
}

.resume-btn:hover {
    background: #4CAF50;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.edit-btn:hover {
    background: #2196F3;
    color: white;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.3);
}

.delete-btn:hover {
    background: #f44336;
    color: white;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 25px rgba(244, 67, 54, 0.3);
}

.publication-status {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background: rgba(76, 175, 80, 0.9);
    z-index: 5;
}

.status-paused {
    background: rgba(255, 152, 0, 0.9);
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
    overflow-x: auto;
    /* Estilos para scroll horizontal suave */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Ocultar scrollbar en algunos navegadores pero mantener funcionalidad */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 123, 255, 0.3) transparent;
}

.filter-tabs::-webkit-scrollbar {
    height: 4px;
}

.filter-tabs::-webkit-scrollbar-track {
    background: transparent;
}

.filter-tabs::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 255, 0.3);
    border-radius: 2px;
}

.filter-tabs::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 123, 255, 0.5);
}

.filter-tab {
    padding: 0.8rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    /* Evitar que los tabs se encojan */
    flex-shrink: 0;
    white-space: nowrap;
}

.filter-tab.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

.filter-tab:hover {
    color: #007bff;
}

/* =====================================
   ESTILOS PARA EL MODAL
   ===================================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-close {
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e9ecef;
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.modal-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cancel {
    background: #6c757d;
    color: white;
}

.btn-cancel:hover {
    background: #5a6268;
}

.btn-confirm {
    background: #dc3545;
    color: white;
}

.btn-confirm:hover {
    background: #c82333;
}

/* =====================================
   ESTILOS PARA EL CONTENIDO DE TARJETAS - ESTILO INDEX
   ===================================== */

/* Información de la tarjeta */
.card-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    background: inherit;
}

.card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin: 1.5rem 1.5rem 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
    min-height: 2.6rem;
}

.publication-card:hover .card-title {
    color: #2563eb;
}

.card-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2563eb;
    margin: 0 1.5rem 0.75rem;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.card-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0 1.5rem 1rem;
    line-height: 1.2;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    margin: 0.8rem 1.5rem 1.5rem;
    padding-top: 0.8rem;
    border-top: 1px solid #f0f0f0;
    font-size: 0.85rem;
    color: #666;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.stat-item i {
    color: #999;
}

/* =====================================
   RESPONSIVE DESIGN
   ===================================== */

@media (max-width: 768px) {
    .my-publications-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .filter-tabs {
        /* Mantener tabs en una sola fila con scroll horizontal */
        gap: 0.5rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0 1rem;
        /* Indicador visual sutil de que se puede hacer scroll */
        position: relative;
    }
    
    .filter-tabs::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8));
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .filter-tabs:hover::after {
        opacity: 1;
    }
    
    .filter-tab {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        min-width: fit-content;
        /* Mejor área de toque en móvil */
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Ajustar tamaño del precio en móvil */
    .card-price {
        font-size: 1.8rem;
    }
    
    /* Botones de acción siempre visibles en móvil */
    .card-action-buttons {
        top: 8px;
        right: 8px;
        gap: 6px;
        opacity: 1;
        transform: translateY(0);
    }
    
    .card-action-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .my-publications-title {
        font-size: 1.5rem;
    }
    
    .btn-new-publication {
        width: 100%;
        justify-content: center;
    }
    
    .empty-publications {
        padding: 2rem 1rem;
    }
    
    .empty-publications i {
        font-size: 3rem;
    }
    
    .filter-tabs {
        /* Más espacio lateral en pantallas muy pequeñas */
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        padding: 0 0.5rem;
        gap: 0.3rem;
    }
    
    .filter-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        /* Asegurar área de toque mínima de 44px */
        min-height: 44px;
    }
    
    .filter-tab span {
        /* Espaciado de los números de conteo */
        margin-left: 0.3rem;
        font-size: 0.8rem;
    }
    
    /* Precio aún más pequeño en pantallas muy pequeñas */
    .card-price {
        font-size: 1.7rem;
    }
} 

/* Estilos para las tarjetas de reseñas */
.review-card {
    background: #f8f9fa;
    border-left: 4px solid #ffc107;
}

.review-status {
    background: #ffc107;
    color: #212529;
    font-weight: 600;
}

/* Estilos para las tarjetas de "Mis Reseñas" */
.my-review-card {
    background: #f0f8ff;
    border-left: 4px solid #17a2b8;
}

.my-review-status {
    background: #17a2b8;
    color: white;
    font-weight: 600;
}

.review-content {
    padding: 1.5rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.reviewer-details h4 {
    margin: 0;
    color: #333;
    font-size: 1.1rem;
}

.review-rating {
    display: flex;
    gap: 2px;
    margin-top: 4px;
}

.review-rating .star {
    color: #ddd;
    font-size: 1.1rem;
}

.review-rating .star.filled {
    color: #ffc107;
}

.review-text {
    margin-bottom: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.review-text p {
    margin: 0;
    color: #666;
    font-style: italic;
}

.review-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.review-store {
    margin: 0;
}

.review-date {
    margin: 0;
    color: #999;
}

/* Estilos para respuestas de tiendas */
.store-reply {
    margin-top: 1rem;
    padding: 1rem;
    background: #e8f5e8;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.store-reply .reply-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 600;
}

.store-reply .reply-content {
    color: #333;
    line-height: 1.5;
}

.no-reply-message {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-style: italic;
}

/* Responsivo para reseñas */
@media (max-width: 768px) {
    .review-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
} 

/* Estilos para las respuestas del vendedor */
.vendor-reply {
    background: #e8f4f8;
    border-left: 4px solid #007bff;
    padding: 12px 16px;
    margin-top: 12px;
    border-radius: 0 6px 6px 0;
}

.vendor-reply .reply-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.vendor-reply .reply-header i {
    color: #007bff;
}

.vendor-reply .reply-author {
    font-weight: 600;
    color: #007bff;
}

.vendor-reply .reply-date {
    color: #666;
    font-size: 0.8rem;
    margin-left: auto;
}

.vendor-reply .reply-content {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .vendor-reply .reply-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .vendor-reply .reply-date {
        margin-left: 0;
    }
}

/* =====================================
   ESTILOS PARA FORMULARIOS DE RESPUESTA
   ===================================== */

.reply-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.btn-reply {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-reply:hover {
    background: linear-gradient(135deg, #0056b3, #007bff);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.reply-form-container {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.reply-form .form-group {
    margin-bottom: 1rem;
}

.reply-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.875rem;
}

.reply-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.875rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.2s ease;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

.char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: #666;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.reply-form .btn-cancel,
.reply-form .btn-submit {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reply-form .btn-cancel {
    background: #6c757d;
    color: white;
}

.reply-form .btn-cancel:hover {
    background: #5a6268;
}

.reply-form .btn-submit {
    background: #007bff;
    color: white;
}

.reply-form .btn-submit:hover {
    background: #0056b3;
}

.reply-form .btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .reply-form-container {
        padding: 0.75rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .reply-form .btn-cancel,
    .reply-form .btn-submit {
        justify-content: center;
        width: 100%;
    }
}

/* =====================================
   MODAL DE ACCESO RESTRINGIDO
   ===================================== */

.access-restricted-modal {
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 2px solid #ff8c00;
}

.access-restricted-modal .modal-header {
    background: none;
    border-bottom: none;
    padding: 1rem 1rem 0 1rem;
    display: flex;
    justify-content: flex-end;
}

.access-restricted-modal .modal-close {
    color: #999;
    font-size: 1.5rem;
    font-weight: normal;
    cursor: pointer;
    transition: color 0.3s ease;
}

.access-restricted-modal .modal-close:hover {
    color: #666;
}

.access-restricted-content {
    text-align: center;
    padding: 1rem 2rem 2rem 2rem;
}

.warning-icon {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.warning-icon i {
    font-size: 3rem;
    color: #ff8c00;
    background: #fff8dc;
    padding: 1rem;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.access-restricted-content h3 {
    color: #ff8c00;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.access-restricted-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .access-restricted-modal {
        max-width: 320px;
        margin: 1rem;
    }
    
    .access-restricted-content {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
    
    .warning-icon i {
        font-size: 2.5rem;
        width: 70px;
        height: 70px;
    }
    
    .access-restricted-content h3 {
        font-size: 1.3rem;
    }
}