/**
 * Gallery App Styles
 * Premium design matching JollyGrid site aesthetic
 * Uses theme variables from theme-variables.css
 */

/* ========================
   GALLERY PAGE BASE
   ======================== */
.gallery-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.gallery-section-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
    width: 100%;
}

/* ========================
   GALLERY HERO
   ======================== */
.gallery-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background-image: radial-gradient(var(--accent-purple) 2px, transparent 2px);
    background-size: 24px 24px;
    opacity: 0.12;
    border-radius: 50%;
    animation: floatSlow 20s ease-in-out infinite;
}

.gallery-hero::after {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 3%;
    width: 200px;
    height: 200px;
    background-image: radial-gradient(var(--accent-pink) 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.10;
    border-radius: 50%;
    animation: floatSlow 15s ease-in-out infinite reverse;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.gallery-hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 2;
}

.gallery-hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    animation: fadeSlideUp 0.8s var(--ease-out-expo) 0.2s backwards;
}

.gallery-hero-badge {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: white;
    padding: 8px 18px;
    background: var(--gradient-primary);
    border-radius: 100px;
    box-shadow: var(--shadow-glow-purple);
}

.gallery-hero-divider {
    width: 40px;
    height: 3px;
    background: var(--gradient-warm);
    border-radius: 3px;
}

.gallery-hero-tagline {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.gallery-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    animation: fadeSlideUp 0.8s var(--ease-out-expo) 0.3s backwards;
}

.gallery-hero-title em {
    font-style: normal;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-hero-subtitle {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    animation: fadeSlideUp 0.8s var(--ease-out-expo) 0.4s backwards;
}

.gallery-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeSlideUp 0.8s var(--ease-out-expo) 0.5s backwards;
}

.btn-gallery-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-gallery-hero.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow-purple);
}

.btn-gallery-hero.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4);
}

.btn-gallery-hero.secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

.btn-gallery-hero.secondary:hover {
    border-color: var(--accent-purple);
    background: var(--accent-purple-10);
    transform: translateY(-2px);
}

/* ========================
   SECTION HEADERS
   ======================== */
.gallery-section {
    padding: 80px 0;
}

.gallery-section.alt-bg {
    background: var(--bg-secondary);
}

.gallery-section-header {
    max-width: 600px;
    margin-bottom: 48px;
}

.gallery-section-header.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.gallery-section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: white;
    margin-bottom: 16px;
    padding: 8px 18px;
    background: var(--gradient-primary);
    border-radius: 100px;
    box-shadow: var(--shadow-glow-purple);
}

.gallery-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.gallery-section-subtitle {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.gallery-section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.gallery-section-header-row .gallery-section-header {
    margin-bottom: 0;
}

.gallery-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--accent-purple);
    text-decoration: none;
    transition: all 0.3s ease;
}

.gallery-view-all:hover {
    color: var(--accent-pink);
    gap: 12px;
}

/* ========================
   CATEGORY CARDS
   ======================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 2px solid var(--border-light);
    text-decoration: none;
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-purple-30);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.5rem;
    margin-bottom: 16px;
    background: var(--accent-purple-15);
    color: var(--accent-purple);
    transition: all 0.3s ease;
}

.category-card:hover .category-card-icon {
    transform: scale(1.1);
    background: var(--gradient-primary);
    color: white;
}

.category-card-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.category-card-count {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ========================
   ARTWORK GRID
   ======================== */
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* ========================
   ARTWORK CARD - Premium Design
   ======================== */
.artwork-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border-light);
    transition: all 0.4s var(--ease-out-expo);
    position: relative;
}

.artwork-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-purple-30);
}

.artwork-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--accent-purple-10), var(--accent-pink-10));
}

.artwork-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out-expo);
    /* Image protection */
    -webkit-user-drag: none;
    user-select: none;
}

.artwork-card:hover .artwork-card-image img {
    transform: scale(1.05);
}

/* Featured badge */
.artwork-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    box-shadow: var(--shadow-glow-purple);
    z-index: 2;
}

/* Overlay with actions */
.artwork-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    z-index: 1;
}

.artwork-card:hover .artwork-card-overlay {
    opacity: 1;
}

.artwork-card-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.artwork-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.artwork-action-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.artwork-action-btn.liked {
    background: var(--accent-red);
    color: white;
}

/* Card body */
.artwork-card-body {
    padding: 20px;
}

.artwork-card-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.artwork-card-title a {
    color: inherit;
    text-decoration: none;
}

.artwork-card-title a:hover {
    color: var(--accent-purple);
}

.artwork-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.artwork-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.artwork-card-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-purple-20);
}

.artwork-card-author-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.artwork-card-author:hover .artwork-card-author-name {
    color: var(--accent-purple);
}

.artwork-card-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.artwork-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.artwork-stat i {
    font-size: 0.75rem;
}

.artwork-stat.likes i {
    color: var(--accent-pink);
}

/* ========================
   TAG CLOUD
   ======================== */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.artwork-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.artwork-tag:hover {
    border-color: var(--accent-purple);
    background: var(--accent-purple-10);
    color: var(--accent-purple);
    transform: translateY(-2px);
}

/* ========================
   EMPTY STATE
   ======================== */
.gallery-empty {
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-card);
    border-radius: 28px;
    border: 2px dashed var(--border-medium);
    grid-column: 1 / -1;
}

.gallery-empty i {
    font-size: 4rem;
    color: var(--accent-purple-30);
    margin-bottom: 24px;
    display: block;
}

.gallery-empty h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.gallery-empty p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ========================
   GALLERY BUTTONS
   ======================== */
.btn-gallery {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    border: none;
    text-decoration: none;
}

.btn-gallery-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow-purple);
}

.btn-gallery-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    color: white;
}

.btn-gallery-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

.btn-gallery-secondary:hover {
    border-color: var(--accent-purple);
    background: var(--accent-purple-10);
}

.btn-gallery-outline {
    background: transparent;
    color: var(--accent-purple);
    border: 2px solid var(--accent-purple);
}

.btn-gallery-outline:hover {
    background: var(--accent-purple);
    color: white;
}

.btn-gallery-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: 10px 16px;
}

.btn-gallery-ghost:hover {
    color: var(--accent-purple);
    background: var(--accent-purple-05);
}

/* ========================
   LOAD MORE
   ======================== */
.gallery-load-more {
    text-align: center;
    padding: 48px 0 0;
}

/* ========================
   ARTWORK DETAIL PAGE
   ======================== */
.artwork-detail-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px var(--content-padding);
}

.artwork-detail-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
}

/* Main image area */
.artwork-detail-main {
    position: relative;
}

.artwork-detail-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
}

.artwork-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}

/* Image protection overlay */
.image-protection-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 10;
}

/* Sidebar */
.artwork-detail-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.artwork-info-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 28px;
    border: 2px solid var(--border-light);
}

.artwork-detail-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: var(--text-primary);
}

/* Author section */
.artwork-author-section {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.artwork-author-avatar-lg {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-purple-20);
}

.artwork-author-info {
    flex: 1;
}

.artwork-author-name-lg {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.artwork-author-name-lg a {
    color: inherit;
    text-decoration: none;
}

.artwork-author-name-lg a:hover {
    color: var(--accent-purple);
}

.artwork-author-followers {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-follow {
    padding: 10px 24px;
    font-size: 0.85rem;
}

/* Stats bar */
.artwork-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
}

.artwork-stat-item {
    text-align: center;
}

.artwork-stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.artwork-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

/* Description */
.artwork-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 20px;
}

/* Tags */
.artwork-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.artwork-tag-sm {
    padding: 6px 14px;
    background: var(--accent-purple-10);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-purple);
    text-decoration: none;
    transition: all 0.3s ease;
}

.artwork-tag-sm:hover {
    background: var(--accent-purple);
    color: white;
}

/* Action buttons */
.artwork-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.artwork-detail-actions .btn-gallery {
    width: 100%;
}

/* ========================
   COMMENTS SECTION
   ======================== */
.comments-section {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 28px;
    border: 2px solid var(--border-light);
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.comments-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

.comments-title i {
    color: var(--accent-purple);
}

/* Comment form */
.comment-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.comment-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    resize: none;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.comment-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 4px var(--accent-purple-10);
}

.comment-input::placeholder {
    color: var(--text-muted);
}

/* Comment list */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.comment-item:hover {
    background: var(--accent-purple-05);
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-purple-20);
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.comment-author {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.comment-login-prompt {
    text-align: center;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 16px;
    color: var(--text-secondary);
}

.comment-login-prompt a {
    color: var(--accent-purple);
    font-weight: 600;
}

/* ========================
   USER GALLERY HEADER
   ======================== */
.user-gallery-header {
    background: var(--bg-secondary);
    padding: 60px 0;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.user-gallery-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh-1);
    opacity: 0.5;
}

.user-gallery-profile {
    display: flex;
    align-items: center;
    gap: 32px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--content-padding);
    position: relative;
    z-index: 1;
}

.user-gallery-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-purple);
    box-shadow: var(--shadow-glow-purple);
}

.user-gallery-info {
    flex: 1;
}

.user-gallery-name {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.user-gallery-bio {
    color: var(--text-secondary);
    margin-bottom: 16px;
    max-width: 500px;
}

.user-gallery-stats {
    display: flex;
    gap: 32px;
}

.user-stat {
    text-align: center;
}

.user-stat-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* ========================
   UPLOAD FORM
   ======================== */
.upload-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px var(--content-padding);
}

.upload-header {
    text-align: center;
    margin-bottom: 40px;
}

.upload-form-card {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 40px;
    border: 2px solid var(--border-light);
}

.upload-dropzone {
    border: 3px dashed var(--border-medium);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 32px;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--accent-purple);
    background: var(--accent-purple-05);
}

.upload-dropzone-icon {
    font-size: 4rem;
    color: var(--accent-purple);
    margin-bottom: 20px;
    display: block;
}

.upload-dropzone-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.upload-dropzone-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.upload-dropzone-hint {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Form groups */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 4px var(--accent-purple-10);
}

.form-help {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
}

/* ========================
   SEARCH PAGE
   ======================== */
.search-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px var(--content-padding);
}

.search-header {
    margin-bottom: 40px;
}

.search-form {
    display: flex;
    gap: 12px;
    max-width: 600px;
}

.search-input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid var(--border-light);
    border-radius: 100px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 4px var(--accent-purple-10);
}

.search-btn {
    padding: 16px 32px;
    border-radius: 100px;
}

.search-results-info {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1rem;
}

.search-results-info strong {
    color: var(--accent-purple);
}

/* ========================
   MY GALLERY (Dashboard)
   ======================== */
.my-gallery-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px var(--content-padding);
}

.my-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.my-gallery-tabs {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    padding: 6px;
    border-radius: 100px;
    border: 2px solid var(--border-light);
}

.my-gallery-tab {
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.my-gallery-tab:hover {
    color: var(--text-primary);
}

.my-gallery-tab.active {
    background: var(--gradient-primary);
    color: white;
}

/* ========================
   ANIMATIONS
   ======================== */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered card animation */
.artwork-grid .artwork-card {
    opacity: 0;
    animation: fadeSlideUp 0.5s var(--ease-out-expo) forwards;
}

.artwork-grid .artwork-card:nth-child(1) { animation-delay: 0.1s; }
.artwork-grid .artwork-card:nth-child(2) { animation-delay: 0.15s; }
.artwork-grid .artwork-card:nth-child(3) { animation-delay: 0.2s; }
.artwork-grid .artwork-card:nth-child(4) { animation-delay: 0.25s; }
.artwork-grid .artwork-card:nth-child(5) { animation-delay: 0.3s; }
.artwork-grid .artwork-card:nth-child(6) { animation-delay: 0.35s; }
.artwork-grid .artwork-card:nth-child(7) { animation-delay: 0.4s; }
.artwork-grid .artwork-card:nth-child(8) { animation-delay: 0.45s; }
.artwork-grid .artwork-card:nth-child(n+9) { animation-delay: 0.5s; }

/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1024px) {
    .artwork-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .artwork-detail-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .gallery-hero {
        min-height: auto;
        padding: 60px 0 40px;
    }
    
    .gallery-hero-title {
        font-size: 2rem;
    }
    
    .gallery-hero-actions {
        flex-direction: column;
    }
    
    .btn-gallery-hero {
        width: 100%;
    }
    
    .gallery-section {
        padding: 60px 0;
    }
    
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .artwork-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .user-gallery-profile {
        flex-direction: column;
        text-align: center;
    }
    
    .user-gallery-avatar {
        width: 100px;
        height: 100px;
    }
    
    .user-gallery-stats {
        justify-content: center;
    }
    
    .artwork-detail-actions {
        grid-template-columns: 1fr;
    }
    
    .artwork-stats-bar {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .upload-form-card {
        padding: 24px;
    }
    
    .upload-dropzone {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-section-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .artwork-card-body {
        padding: 14px;
    }
    
    .artwork-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .my-gallery-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .my-gallery-tabs {
        width: 100%;
        justify-content: center;
    }
}

/* ========================
   CONTAINER UTILITY
   ======================== */
.container {
    max-width: var(--max-width, 1400px);
    margin: 0 auto;
    padding: 0 var(--content-padding, 24px);
    width: 100%;
}

/* ========================
   BREADCRUMB
   ======================== */
.gallery-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--accent-purple);
}

.breadcrumb-divider {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.breadcrumb-current {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================
   ARTWORK DETAIL PAGE - ENHANCED
   ======================== */
.artwork-detail-page {
    min-height: 100vh;
}

.artwork-detail-layout {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 48px;
    padding: 48px 0 80px;
}

@media (max-width: 1200px) {
    .artwork-detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* Image Section */
.artwork-image-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.artwork-image-frame {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-xl);
}

.artwork-main-image {
    width: 100%;
    height: auto;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}

.artwork-image-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.image-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    opacity: 0;
}

.artwork-image-frame:hover .image-action-btn {
    opacity: 1;
}

.image-action-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.artwork-featured-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 18px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    box-shadow: var(--shadow-glow-purple);
    z-index: 10;
}

/* Quick Stats Bar */
.artwork-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    padding: 16px 24px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.quick-stat i {
    color: var(--accent-purple);
}

/* Info Panel */
.artwork-info-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Author Card */
.artwork-author-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 2px solid var(--border-light);
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--accent-purple-20);
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.avatar-placeholder.large {
    font-size: 2.5rem;
}

.avatar-placeholder.small {
    font-size: 0.875rem;
}

.author-info {
    flex: 1;
}

.author-name {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
    margin-bottom: 4px;
}

.author-name:hover {
    color: var(--accent-purple);
}

.author-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.btn-follow {
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-follow:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-purple);
}

.btn-follow.following {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 2px solid var(--border-medium);
}

/* Content Section */
.artwork-content-section {
    padding: 28px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 2px solid var(--border-light);
}

.artwork-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.artwork-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.artwork-category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent-purple-10);
    color: var(--accent-purple);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.artwork-category-link:hover {
    background: var(--accent-purple);
    color: white;
}

.artwork-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.artwork-tool-info {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.artwork-tool-info a {
    color: var(--accent-purple);
}

/* Action Buttons */
.artwork-action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.action-btn-like {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

.action-btn-like:hover {
    border-color: var(--accent-pink);
    background: rgba(236, 72, 153, 0.1);
    color: var(--accent-pink);
}

.action-btn-like.liked {
    background: var(--accent-pink);
    color: white;
    border-color: var(--accent-pink);
}

.action-btn-share {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

.action-btn-share:hover {
    border-color: var(--accent-purple);
    background: var(--accent-purple-10);
    color: var(--accent-purple);
}

.action-btn-edit {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

.action-btn-edit:hover {
    border-color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue, #3B82F6);
}

/* ========================
   COMMENTS - ENHANCED
   ======================== */
.comments-section {
    margin-top: 24px;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.comments-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-title i {
    color: var(--accent-purple);
}

.comments-title .comments-count {
    background: var(--accent-purple-10);
    color: var(--accent-purple);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.8rem;
}

/* Comment Form */
.comment-form {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
}

.comment-form-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--accent-purple-20);
}

.comment-form-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-form-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: 16px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    resize: none;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.comment-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 4px var(--accent-purple-10);
}

.btn-post-comment {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-post-comment:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-purple);
}

.comment-login-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 16px;
    text-align: center;
    margin-bottom: 24px;
}

.comment-login-prompt i {
    font-size: 2rem;
    color: var(--accent-purple-30);
}

.comment-login-prompt p {
    margin: 0;
    color: var(--text-secondary);
}

.btn-login-comment {
    padding: 10px 24px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-login-comment:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-purple);
}

/* Comment Items */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-item {
    display: flex;
    gap: 14px;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--accent-purple-20);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 16px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-decoration: none;
}

.comment-author:hover {
    color: var(--accent-purple);
}

.comment-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.comment-text {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.comment-actions {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.comment-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-action-btn:hover {
    color: var(--accent-purple);
}

.comment-replies {
    margin-top: 16px;
    padding-left: 16px;
    border-left: 2px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comments-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px;
    text-align: center;
}

.comments-empty i {
    font-size: 2.5rem;
    color: var(--accent-purple-20);
}

.comments-empty p {
    margin: 0;
    font-weight: 600;
    color: var(--text-primary);
}

.comments-empty span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ========================
   CATEGORY HERO
   ======================== */
.category-hero {
    position: relative;
    padding: 100px 0 60px;
    overflow: hidden;
}

.category-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        color-mix(in srgb, var(--category-color, var(--accent-purple)) 10%, transparent) 0%, 
        transparent 60%);
    z-index: -1;
}

.category-hero-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.category-hero-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: var(--gradient-primary);
    border-radius: 24px;
    font-size: 2rem;
    color: white;
    box-shadow: var(--shadow-glow-purple);
}

.category-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.category-hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.category-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.category-hero-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.category-hero-stat i {
    color: var(--accent-purple);
}

.category-tool-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-tool-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-purple);
}

/* ========================
   TAG HERO
   ======================== */
.tag-hero {
    position: relative;
    padding: 100px 0 60px;
    background: var(--bg-secondary);
    text-align: center;
}

.tag-hero-content {
    max-width: 500px;
    margin: 0 auto;
}

.tag-hero-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: var(--accent-purple-15);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--accent-purple);
}

.tag-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tag-hero-meta {
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tag-hero-meta i {
    color: var(--accent-purple);
}

/* Related Tags */
.related-tags-section {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--border-light);
}

.related-tags-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.related-tags-title i {
    color: var(--accent-purple);
}

.tag-cloud-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tag-cloud-item:hover {
    border-color: var(--accent-purple);
    background: var(--accent-purple-10);
}

.tag-name {
    font-weight: 600;
    color: var(--text-primary);
}

.tag-count {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: var(--accent-purple-10);
    color: var(--accent-purple);
    border-radius: 100px;
}

.tag-cloud.centered {
    justify-content: center;
}

/* ========================
   SEARCH PAGE - ENHANCED
   ======================== */
.search-hero {
    padding: 100px 0 60px;
    text-align: center;
    background: var(--bg-secondary);
}

.search-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.search-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.search-form-hero {
    margin-bottom: 20px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 2px solid var(--border-light);
    border-radius: 100px;
    padding: 6px 6px 6px 24px;
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 4px var(--accent-purple-10);
}

.search-icon {
    color: var(--text-muted);
    font-size: 1rem;
}

.search-input-hero {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-primary);
}

.search-input-hero:focus {
    outline: none;
}

.search-input-hero::placeholder {
    color: var(--text-muted);
}

.search-submit-btn {
    padding: 14px 28px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit-btn:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-glow-purple);
}

.search-results-meta {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.search-results-meta em {
    color: var(--accent-purple);
    font-style: normal;
}

/* Sort Bar */
.search-sort-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 24px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.sort-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.sort-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sort-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sort-option:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.sort-option.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* ========================
   USER PROFILE HERO
   ======================== */
.user-profile-hero {
    position: relative;
    padding: 100px 0 60px;
    overflow: hidden;
}

.user-profile-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-mesh-1);
    opacity: 0.5;
    z-index: -1;
}

.user-profile-card {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--bg-card);
    border-radius: 28px;
    padding: 40px;
    border: 2px solid var(--border-light);
    box-shadow: var(--shadow-xl);
}

@media (max-width: 900px) {
    .user-profile-card {
        flex-direction: column;
        text-align: center;
    }
}

.user-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--accent-purple);
    box-shadow: var(--shadow-glow-purple);
    flex-shrink: 0;
}

.user-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile-content {
    flex: 1;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .user-profile-header {
        justify-content: center;
    }
}

.user-profile-name {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.user-profile-badges {
    display: flex;
    gap: 8px;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.user-badge.admin {
    background: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.user-badge.contributor {
    background: var(--accent-purple-10);
    color: var(--accent-purple);
}

.user-profile-bio {
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 500px;
}

.user-profile-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .user-profile-stats {
        justify-content: center;
    }
}

.user-stat {
    text-align: center;
}

.user-stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-top: 4px;
}

.user-profile-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .user-profile-actions {
        width: 100%;
        justify-content: center;
    }
}

.btn-profile-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-profile-action.primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-profile-action.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-purple);
}

.btn-profile-action.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

.btn-profile-action.secondary:hover {
    border-color: var(--accent-purple);
    background: var(--accent-purple-10);
}

.btn-profile-action.following {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 2px solid var(--border-medium);
}

/* ========================
   DASHBOARD HERO
   ======================== */
.dashboard-hero {
    padding: 100px 0 40px;
    background: var(--bg-secondary);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.dashboard-header-content {
    flex: 1;
}

.dashboard-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 8px 0;
    color: var(--text-primary);
}

.dashboard-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.dashboard-header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-dashboard-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-dashboard-action.primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-dashboard-action.primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-purple);
}

.btn-dashboard-action.secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

.btn-dashboard-action.secondary:hover {
    border-color: var(--accent-purple);
    background: var(--accent-purple-10);
}

/* Dashboard Stats Grid */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.dashboard-stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.dashboard-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.25rem;
}

.stat-card-icon.purple {
    background: var(--accent-purple-15);
    color: var(--accent-purple);
}

.stat-card-icon.green {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.stat-card-icon.yellow {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.stat-card-icon.red {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.stat-card-icon.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}

.stat-card-content {
    flex: 1;
}

.stat-card-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-card-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Dashboard Filter Bar */
.dashboard-filter-bar {
    margin-bottom: 32px;
}

.filter-tabs {
    display: inline-flex;
    gap: 8px;
    padding: 6px;
    background: var(--bg-card);
    border-radius: 100px;
    border: 2px solid var(--border-light);
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    color: var(--text-primary);
}

.filter-tab.active {
    background: var(--gradient-primary);
    color: white;
}

.filter-count {
    font-size: 0.75rem;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 100px;
}

.filter-tab:not(.active) .filter-count {
    background: var(--accent-purple-10);
    color: var(--accent-purple);
}

/* Dashboard Artwork Grid */
.dashboard-artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.dashboard-artwork-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid var(--border-light);
    transition: all 0.3s ease;
}

.dashboard-artwork-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.dashboard-artwork-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-secondary);
}

.dashboard-artwork-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dashboard-artwork-card:hover .dashboard-artwork-image img {
    transform: scale(1.05);
}

.artwork-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.artwork-status-badge.status-draft {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.artwork-status-badge.status-published {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.artwork-status-badge.status-archived {
    background: rgba(107, 114, 128, 0.9);
    color: white;
}

.dashboard-artwork-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dashboard-artwork-card:hover .dashboard-artwork-overlay {
    opacity: 1;
}

.overlay-actions {
    display: flex;
    gap: 12px;
}

.overlay-action-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.overlay-action-btn:hover {
    background: var(--gradient-primary);
    color: white;
    transform: scale(1.1);
}

.dashboard-artwork-body {
    padding: 20px;
}

.dashboard-artwork-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 6px;
}

.dashboard-artwork-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 12px;
}

.dashboard-artwork-stats {
    display: flex;
    gap: 16px;
}

.artwork-stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dashboard-artwork-actions {
    display: flex;
    gap: 8px;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

.action-btn-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn-small.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.action-btn-small.success:hover {
    background: #10B981;
    color: white;
}

.action-btn-small.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.action-btn-small.warning:hover {
    background: #F59E0B;
    color: white;
}

.action-btn-small.danger {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
    margin-left: auto;
}

.action-btn-small.danger:hover {
    background: #EF4444;
    color: white;
}

/* ========================
   UPLOAD FORM - ENHANCED
   ======================== */
.upload-hero {
    padding: 100px 0 40px;
    background: var(--bg-secondary);
}

.upload-hero-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.upload-hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 8px 0;
    color: var(--text-primary);
}

.upload-hero-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.upload-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-section {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 32px;
    border: 2px solid var(--border-light);
}

.form-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.form-section-title i {
    color: var(--accent-purple);
}

/* Upload Dropzone */
.upload-dropzone {
    border: 3px dashed var(--border-medium);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    background: var(--bg-secondary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
    border-color: var(--accent-purple);
    background: var(--accent-purple-05);
}

.upload-dropzone.compact {
    padding: 32px;
    margin-top: 16px;
}

.dropzone-icon {
    font-size: 3rem;
    color: var(--accent-purple);
    margin-bottom: 20px;
}

.dropzone-icon.small {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.dropzone-title {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.dropzone-subtitle {
    display: block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.dropzone-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.image-preview {
    position: relative;
    margin-top: 16px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-light);
}

.image-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.preview-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.preview-remove:hover {
    transform: scale(1.1);
}

.current-image-display {
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid var(--border-light);
    margin-bottom: 20px;
}

.current-image-display img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

.replace-image-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.replace-image-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.replace-image-label i {
    color: var(--accent-purple);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 640px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-label {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-label.required::after {
    content: ' *';
    color: #EF4444;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 4px var(--accent-purple-10);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.select-wrapper {
    position: relative;
}

.select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 0.85rem;
    color: #EF4444;
}

/* Visibility Cards */
.visibility-cards {
    display: grid;
    gap: 12px;
}

.visibility-card {
    cursor: pointer;
}

.visibility-card input {
    display: none;
}

.visibility-card-content {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-light);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.visibility-card input:checked + .visibility-card-content {
    border-color: var(--accent-purple);
    background: var(--accent-purple-05);
}

.visibility-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
}

.visibility-card-icon.public {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.visibility-card-icon.unlisted {
    background: rgba(59, 130, 246, 0.15);
    color: #3B82F6;
}

.visibility-card-icon.private {
    background: rgba(107, 114, 128, 0.15);
    color: #6B7280;
}

.visibility-card-text {
    flex: 1;
}

.visibility-card-title {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.visibility-card-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.visibility-card-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all 0.3s ease;
}

.visibility-card input:checked + .visibility-card-content .visibility-card-check {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

/* Form Actions */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    background: var(--bg-card);
    border-radius: 24px;
    border: 2px solid var(--border-light);
    flex-wrap: wrap;
    gap: 16px;
}

.form-actions-right {
    display: flex;
    gap: 12px;
}

.btn-form-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-form-action.cancel {
    background: transparent;
    color: var(--text-secondary);
}

.btn-form-action.cancel:hover {
    color: #EF4444;
}

.btn-form-action.draft {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
}

.btn-form-action.draft:hover {
    border-color: var(--accent-purple);
    background: var(--accent-purple-10);
}

.btn-form-action.publish {
    background: var(--gradient-primary);
    color: white;
}

.btn-form-action.publish:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-purple);
}

/* ========================
   GALLERY EMPTY STATE
   ======================== */
.gallery-empty-state {
    text-align: center;
    padding: 80px 40px;
    background: var(--bg-card);
    border-radius: 28px;
    border: 2px dashed var(--border-medium);
    grid-column: 1 / -1;
}

.gallery-empty-state.full-width {
    width: 100%;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    background: var(--accent-purple-10);
    border-radius: 50%;
    font-size: 2rem;
    color: var(--accent-purple);
}

.gallery-empty-state h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.gallery-empty-state p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Load More Button */
.gallery-load-more {
    text-align: center;
    padding: 48px 0;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-load-more:hover {
    border-color: var(--accent-purple);
    background: var(--accent-purple-10);
    color: var(--accent-purple);
    transform: translateY(-2px);
}

.btn-gallery-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-gallery-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-purple);
}
