/* View Profile Specific Styles */

/* Back Button */
#backToBrowse {
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Profile Container */
.profile-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Profile Actions */
.profile-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.follow-btn {
    background: linear-gradient(135deg, #1DA1F2, #0d8ddb);
    color: white;
}

.follow-btn:hover {
    background: linear-gradient(135deg, #0d8ddb, #0a7bbf);
    transform: translateY(-2px);
}

.follow-btn.following {
    background: #f0f0f0;
    color: #666;
}

.report-btn {
    background: #ffeaea;
    color: #e74c3c;
}

.report-btn:hover {
    background: #ffd6d6;
}

.share-btn {
    background: #f0f0f0;
    color: #666;
}

.share-btn:hover {
    background: #e0e0e0;
}

/* Contact Seller Button */
.contact-btn {
    background: linear-gradient(135deg, rgb(37, 189, 37), rgb(30, 160, 30));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 189, 37, 0.4);
}

/* Product Grid for Other Profiles */
.products-grid .product-card {
    position: relative;
}

.product-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    z-index: 1;
}

.product-status.sold {
    background: #e74c3c;
}

.product-status.reserved {
    background: #f39c12;
}

.product-status.new {
    background: rgb(37, 189, 37);
}

/* Enhanced Review Form */
.review-form-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.review-form-container h3 {
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-selection {
    margin-bottom: 20px;
}

.rating-label {
    display: block;
    margin-bottom: 10px;
    color: #555;
    font-weight: 600;
}

.rating-description {
    margin-top: 10px;
    color: #666;
    font-size: 14px;
}

/* ── SKELETON LOADING ───────────────────────────────────────── */

@keyframes skel-shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

.skel-pulse {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 600px 100%;
    animation: skel-shimmer 1.4s infinite linear;
    border-radius: 6px;
}

.profile-skeleton {
    max-width: 1400px;
    margin: 0 auto;
}

/* Action buttons row */
.skel-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}
.skel-btn {
    height: 40px;
    width: 130px;
    border-radius: 25px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 600px 100%;
    animation: skel-shimmer 1.4s infinite linear;
}

/* Card wrapper */
.skel-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* Profile header inside card */
.skel-profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}
.skel-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 600px 100%;
    animation: skel-shimmer 1.4s infinite linear;
}
.skel-name-block {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Generic shimmer lines */
.skel-line {
    height: 14px;
    border-radius: 6px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 600px 100%;
    animation: skel-shimmer 1.4s infinite linear;
}
.w25 { width: 25%; }
.w30 { width: 30%; }
.w40 { width: 40%; }
.w50 { width: 50%; }
.w60 { width: 60%; }
.w70 { width: 70%; }
.w80 { width: 80%; }
.w90 { width: 90%; }

/* Info rows */
.skel-info-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
    padding-left: 4px;
}

/* Stats row */
.skel-stats {
    display: flex;
    gap: 20px;
}
.skel-stat {
    flex: 1;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 600px 100%;
    animation: skel-shimmer 1.4s infinite linear;
}

/* Filter buttons row */
.skel-filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.skel-filter-btn {
    height: 34px;
    width: 80px;
    border-radius: 20px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 600px 100%;
    animation: skel-shimmer 1.4s infinite linear;
}

/* Products grid */
.skel-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.skel-product-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}
.skel-product-img {
    height: 160px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 600px 100%;
    animation: skel-shimmer 1.4s infinite linear;
}
.skel-product-body {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Review skeletons */
.skel-review {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.skel-reviewer-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 600px 100%;
    animation: skel-shimmer 1.4s infinite linear;
}

/* Mobile */
@media (max-width: 768px) {
    .skel-products-grid { grid-template-columns: repeat(2, 1fr); }
    .skel-actions { flex-wrap: wrap; }
    .skel-btn { width: 100px; }
}
@media (max-width: 480px) {
    .skel-products-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone Modal */
.phone-display {
    background: #f0f9f0;
    padding: 30px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: center;
    border: 2px solid rgb(37, 189, 37);
}

.phone-display i {
    font-size: 40px;
    color: rgb(37, 189, 37);
    margin-bottom: 15px;
}

.phone-display h3 {
    font-size: 36px;
    color: #333;
    margin: 0;
}

.modal-info {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

/* Product Filters */
.product-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 20px;
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: linear-gradient(135deg, rgb(37, 189, 37), rgb(30, 160, 30));
    color: white;
}

.filter-btn:hover:not(.active) {
    background: #e0e0e0;
}

/* No Products Message */
.no-products, .no-reviews {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.no-products i, .no-reviews i {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-products h3, .no-reviews h3 {
    color: #666;
    margin-bottom: 10px;
}

.no-products p, .no-reviews p {
    color: #888;
}

/* Message Seller Button */
.message-btn {
    background: linear-gradient(135deg, #1DA1F2, #0d8ddb);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.message-btn:hover {
    background: linear-gradient(135deg, #0d8ddb, #0a7bbf);
    transform: translateY(-2px);
}

/* Premium Banner */
.premium-banner {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .profile-actions {
        flex-wrap: wrap;
    }
    
    .product-filters {
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .phone-display h3 {
        font-size: 28px;
    }
}