/**
 * Profiles styles for WC Artist Dashboard.
 *
 * @package WC_ArtistDash
 */

/* Artist Profile Page Styles - Updated Layout */
.wad-profile-header {
    position: relative;
    width: 100%;
    height: 358px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #121212;
    color: #fff;
    margin-bottom: 30px;
    overflow: hidden;
}

.wad-profile-header-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column; /* Changed to column for better mobile stacking */
    align-items: center;    /* Center everything horizontally */
    text-align: center;     /* Center text */
}

.wad-profile-picture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin: 0 auto 15px auto; /* Center with margin */
    position: relative;
    z-index: 2;
}

.wad-profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.wad-profile-info {
    width: 100%;
    max-width: 600px;
}

.wad-profile-name {
    margin: 0 0 10px 0;
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.wad-profile-stats {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
}

.wad-profile-biography {
    margin-bottom: 40px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
}

.wad-profile-products {
    margin-bottom: 40px;
}

.wad-product-category {
    margin-bottom: 40px;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wad-product-category h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
    text-align: center;
}

.wad-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.wad-product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wad-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

.wad-product-item a {
    display: block;
    text-decoration: none;
    color: #333;
}

.wad-product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.wad-product-item h4 {
    padding: 15px;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* Verified Badge Styles */
.wad-verified-badge-inline {
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
    vertical-align: middle;
    margin-left: 10px;
}

/* Responsive Styles - Mobile Centering */
@media (max-width: 768px) {
    .wad-profile-header {
        height: 300px; /* Slightly smaller cover on mobile */
    }

    .wad-profile-header-content {
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .wad-profile-picture {
        width: 120px;
        height: 120px;
        margin: 0 auto 15px auto;
    }

    .wad-profile-name {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .wad-profile-stats {
        font-size: 16px;
    }

    .wad-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .wad-product-item img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .wad-profile-header {
        height: 260px;
    }

    .wad-profile-picture {
        width: 100px;
        height: 100px;
    }

    .wad-profile-name {
        font-size: 24px;
    }

    .wad-profile-stats {
        font-size: 14px;
    }

    .wad-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }

    .wad-product-item img {
        height: 140px;
    }
}