/* ==========================================================================
   JUSTPICSPLEASE (JPP) THEME DESIGN SYSTEM - STYLESHEET
   ========================================================================== */

:root {
    --bg-body: #f8fafc;
    --bg-main: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-surface: #f1f5f9;
    --border-color: #e2e8f0;
    --border-light: rgba(0, 0, 0, 0.06);
    --border-focus: #00aba9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --primary: #0088cc;
    --primary-hover: #0077b3;
    --primary-glow: rgba(0, 136, 204, 0.2);
    --accent-teal: #00aba9;
    --accent-teal-hover: #009391;
    --accent-orange: #ff6b35;
    --accent-orange-hover: #e55a2b;
    --accent-green: #10b981;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 8px 24px rgba(0, 136, 204, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
    --transition: all 0.22s ease-in-out;
}

/* Base resets & typography */
body {
    background-color: var(--bg-body);
    color: var(--text-primary);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Main Container */
.jpp-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 16px 40px; /* Top padding accommodates fixed menubar */
    box-sizing: border-box;
}

/* Breadcrumbs Bar */
.breadcrumb-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin: 16px 0 20px;
    font-size: 13.5px;
    box-shadow: var(--shadow-card);
}

.breadcrumb-bar a {
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.breadcrumb-bar a:hover {
    color: var(--primary);
}

.breadcrumb-bar .sep {
    color: var(--text-muted);
}

.breadcrumb-bar .current {
    color: var(--text-primary);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 280px;
}

/* Catalog Hero Header */
.catalog-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    box-shadow: var(--shadow-card);
}

.catalog-hero-text h1 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.catalog-hero-text p {
    font-size: 14.5px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.catalog-hero-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-pill-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-pill-action:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

/* Sort Tabs Bar */
.sort-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.sort-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sort-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

.sort-tab:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
    border-color: var(--text-muted);
}

.sort-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 10px var(--primary-glow);
}

.sort-catalog-count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Creators Grid */
.creators-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

/* Creator Card (Item) */
.creator-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow-card);
}

.creator-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.creator-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.creator-avatar-link {
    display: block;
    flex-shrink: 0;
    position: relative;
}

.creator-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    transition: var(--transition);
    background-color: var(--bg-surface);
}

.creator-avatar-link:hover .creator-avatar {
    border-color: var(--primary);
    transform: scale(1.03);
}

.creator-avatar-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc 0%, #005580 100%);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.creator-info {
    flex: 1;
    min-width: 0;
}

.creator-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.creator-info h2, .creator-name {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.creator-info h2 a {
    color: var(--text-primary);
}

.creator-info h2 a:hover {
    color: var(--primary);
}

.creator-verified-badge {
    color: var(--primary);
    font-size: 15px;
    flex-shrink: 0;
}

.creator-username-link {
    font-size: 13.5px;
    color: var(--text-secondary);
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 500;
}

.creator-username-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Badges & Pills */
.creator-badges-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.badge-price {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-price-paid {
    background: rgba(0, 136, 204, 0.08);
    color: #0284c7;
    border: 1px solid rgba(0, 136, 204, 0.25);
}

.badge-price-free {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.creator-stat-pill {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.creator-stat-pill i {
    font-size: 11px;
    color: var(--primary);
}

.creator-bio {
    color: var(--text-secondary);
    font-size: 13.5px;
    line-height: 1.5;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination System */
.pagination-wrapper {
    margin: 36px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.pagination-info {
    font-size: 13.5px;
    color: var(--text-secondary);
}

.pagination-info strong {
    color: var(--text-primary);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 14px;
    background: #ffffff;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.pagination-btn:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 10px var(--primary-glow);
}

.pagination-btn.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 10px var(--primary-glow);
}

.pagination-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: var(--bg-surface);
}

.pagination-disabled:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--border-color);
    box-shadow: none;
}

.pagination-dots {
    padding: 8px 6px;
    color: var(--text-muted);
}

/* ==========================================================================
   CREATOR PROFILE PAGE STYLES
   ========================================================================== */
.creator-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-card);
}

.creator-profile-top {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.creator-profile-avatar-wrap {
    flex-shrink: 0;
}

.creator-profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow: 0 6px 20px var(--primary-glow);
    background-color: var(--bg-surface);
}

.creator-profile-avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc 0%, #004c73 100%);
    border: 4px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 42px;
    font-weight: 800;
    box-shadow: 0 6px 20px var(--primary-glow);
}

.creator-profile-details {
    flex: 1;
    min-width: 260px;
}

.creator-profile-name {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
}

.creator-profile-username {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 16px;
}

.creator-profile-username:hover {
    color: var(--primary);
}

.creator-cta-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.btn-visit-of {
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: #ffffff;
    padding: 13px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 18px rgba(255, 107, 53, 0.3);
    transition: var(--transition);
}

.btn-visit-of:hover {
    background: linear-gradient(135deg, #ff7a47 0%, #d84e20 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(255, 107, 53, 0.4);
}

.btn-subscription-badge {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-subscription-badge.is-free {
    color: #059669;
    border-color: rgba(16, 185, 129, 0.35);
    background: rgba(16, 185, 129, 0.08);
}

/* Bio Card */
.creator-bio-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 22px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.creator-bio-card p {
    margin: 0 0 10px;
}

.creator-bio-card p:last-child {
    margin-bottom: 0;
}

/* Section Box */
.section-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-card);
}

.section-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-box-title {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 18px 16px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-icon {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 800;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.social-item-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.social-item-btn:hover {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 14px var(--primary-glow);
    transform: translateY(-2px);
}

/* Tags Container */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    background: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 7px 15px;
    border-radius: var(--radius-full);
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--transition);
}

.tag-pill:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 3px 12px var(--primary-glow);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
    transform: scale(1.06);
}

/* Related Creators Grid */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.related-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.related-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.related-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-color);
    margin-bottom: 10px;
    transition: var(--transition);
    background-color: #ffffff;
}

.related-card:hover .related-avatar {
    border-color: var(--primary);
}

.related-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc 0%, #004c73 100%);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.related-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.related-username {
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 0 0 8px;
}

/* Tags Hub Page (/tags/) */
.tags-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.tag-hub-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: block;
    box-shadow: var(--shadow-card);
}

.tag-hub-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.tag-hub-image-container {
    position: relative;
    height: 180px;
    background: var(--bg-surface);
    overflow: hidden;
}

.tag-hub-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tag-hub-card:hover .tag-hub-image {
    transform: scale(1.05);
}

.tag-hub-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0088cc 0%, #004c73 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 38px;
    font-weight: 800;
}

.tag-hub-count {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tag-hub-content {
    padding: 16px;
}

.tag-hub-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.tag-hub-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .jpp-container {
        padding-top: 60px;
    }
    .creators-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .creator-profile-top {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .creator-profile-name {
        justify-content: center;
        font-size: 24px;
    }
    .creator-cta-buttons {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .catalog-hero {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .creator-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .creator-avatar, .creator-avatar-placeholder {
        width: 80px;
        height: 80px;
    }
    .creator-badges-row {
        justify-content: center;
    }
}
