/* profile/style.css */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;700&display=swap');

/* Image Cropper Modal Styles */
.image-cropper-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.cropper-modal-content {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cropper-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.cropper-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.cropper-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.cropper-close:hover {
    background: #f0f0f0;
}

.cropper-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: auto;
}

.cropper-canvas-container {
    position: relative;
    display: inline-block;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

#cropper-canvas {
    display: block;
    cursor: move;
    user-select: none;
}

.banner-position-options {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
}

.banner-position-options label {
    font-weight: 600;
    color: #333;
}

.position-buttons {
    display: flex;
    gap: 10px;
}

.position-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.position-btn:hover {
    border-color: #4caf50;
    background: #f1f8f4;
}

.position-btn.active {
    background: #4caf50;
    color: #fff;
    border-color: #4caf50;
}

.cropper-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.cropper-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cropper-cancel {
    background: #e0e0e0;
    color: #333;
}

.cropper-cancel:hover {
    background: #d0d0d0;
}

.cropper-confirm {
    background: #4caf50;
    color: #fff;
}

.cropper-confirm:hover {
    background: #45a049;
}

/* Basic setup - Match home page layout */
body.profile {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.profile .layout-wrapper {
    /* Same position as all pages – no extra padding */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 1800px;
    width: 90vw;
    margin: 0 auto;
    padding: 0;
}

.profile .sidebar {
    /* Use same sidebar as home page */
    width: 400px;
    background: url('../Sidebar.png') center center / 100% 100% no-repeat;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.profile .container {
    /* Same size as all pages - 85vh so grass strip shows; realistic leather like home */
    margin: 20px;
    flex-grow: 1;
    padding: 20px;
    background: repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0px, transparent 2px, transparent 4px, rgba(0,0,0,0.04) 6px), repeating-linear-gradient(-45deg, rgba(0,0,0,0.03) 0px, transparent 2px, transparent 4px, rgba(0,0,0,0.03) 6px), linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
    border: 2px solid #8b7355;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25), inset 0 2px 0 rgba(255,255,255,0.25), inset 0 -2px 0 rgba(0,0,0,0.12), inset 1px 0 0 rgba(255,255,255,0.2), inset -1px 0 0 rgba(0,0,0,0.08);
    height: 85vh !important;
    min-height: 85vh !important;
    max-height: 85vh !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Legacy theme override for profile page */
body.legacy-theme-active .profile .container {
    background: url('../Page.png') center center / 100% 100% no-repeat !important;
    background-image: url('../Page.png') !important;
    background-color: transparent !important;
}

.profile .main-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: 100%; /* Use full container width */
    padding: 0 20px;
}

/* Profile Header – realistic leather (like home Discover / How it works) */
.profile-header {
    background: repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0px, transparent 2px, transparent 4px, rgba(0,0,0,0.04) 6px), repeating-linear-gradient(-45deg, rgba(0,0,0,0.03) 0px, transparent 2px, transparent 4px, rgba(0,0,0,0.03) 6px), linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
    border-radius: 12px;
    border: 2px solid #8b7355;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25), inset 0 2px 0 rgba(255,255,255,0.25), inset 0 -2px 0 rgba(0,0,0,0.12);
    width: 100%;
    position: relative;
    z-index: 2;
    overflow: visible;
}

.profile-banner {
    width: 100%;
    aspect-ratio: 21 / 9;
    background-size: cover;
    background-position: center;
    border-radius: 10px 10px 0 0;
    border-bottom: 2px solid #8b7355;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.15);
    position: relative; /* Needed for sticker positioning */
    touch-action: none; /* allow pointer events to move stickers on touch */
    z-index: 1; /* sits behind header content */
    cursor: pointer;
    transition: filter 0.2s ease;
    overflow: hidden;
}

.profile-banner:hover {
    filter: brightness(0.7);
}

.profile-banner:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.profile-banner:hover .banner-edit-overlay {
    opacity: 1;
}

.banner-edit-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    white-space: nowrap;
}

.profile-header-content {
    display: flex;
    flex-direction: column; /* stack top-to-bottom */
    align-items: center; /* center content horizontally */
    text-align: center; /* center text for stacked layout */
    padding: 0 20px 20px;
    margin-top: -65px; /* Pulls content up to overlap with banner for avatar */
    position: relative;
    z-index: 3;
}

.avatar-container {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-bottom: 10px;
    border: 5px solid #8b7355;
    box-shadow: 0 6px 16px rgba(0,0,0,0.25), inset 0 2px 0 rgba(255,255,255,0.25);
    flex-shrink: 0;
    background: linear-gradient(135deg, #d4b896 0%, #e6d4b8 50%, #d4b896 100%);
    position: relative;
    z-index: 3; /* above banner and header surface */
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.avatar-container:hover {
    transform: scale(1.02);
}

.avatar-container:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-container:hover .avatar-edit-overlay {
    opacity: 1;
}

.avatar-edit-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.presence-dot { position:absolute; right:-4px; bottom:-4px; width:14px; height:14px; border-radius:50%; border:2px solid #e6d4b8; box-shadow:0 0 0 1px rgba(0,0,0,.15); z-index: 4; }
.presence-online { background:#2ecc71; }
.presence-offline { background:#bdc3c7; }

#profile-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 0;
}

.profile-details {
    flex-grow: 1;
    text-align: center; /* center details in vertical layout */
    margin-bottom: 15px;
}

#profile-username {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2d2520;
    margin: 0 0 5px 0;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.admin-badge,
.subscriber-badge,
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    position: relative;
}


.verified-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.6);
}

.admin-badge {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
}

.admin-badge .material-icons {
    font-size: 18px !important;
    line-height: 1;
    font-family: 'Material Icons' !important;
}

.admin-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.6);
}

.subscriber-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.subscriber-badge .material-icons {
    font-size: 18px !important;
    line-height: 1;
    font-family: 'Material Icons' !important;
}

.subscriber-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.6);
}

.profile-stats {
    display: flex;
    gap: 12px;
    justify-content: center; /* center stats row */
    color: #555;
    font-size: 1rem;
}

.profile-actions {
    display: flex;
    gap: 10px;
    justify-content: center; /* center action buttons */
    position: relative;
    z-index: 1000; /* buttons above overlay and overlapping avatar */
}

/* Action buttons – green rounded (project page style) */
.action-btn {
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 25%, transparent 50%), linear-gradient(145deg, #bef264 0%, #a3e635 25%, #84cc16 50%, #65a30d 75%, #4d7c0f 100%);
    color: #0f0f0f;
    border: 2px solid #4d7c0f;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 0 0 #166534, 0 8px 18px rgba(0,0,0,0.35), inset 0 -2px 4px rgba(0,0,0,0.2);
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
    font-family: 'Baloo 2', cursive;
}
.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 0 0 #166534, 0 10px 22px rgba(0,0,0,0.4), inset 0 -2px 4px rgba(0,0,0,0.2);
    border-color: #4d7c0f;
}
.action-btn:active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 0 #166534, 0 4px 10px rgba(0,0,0,0.35), inset 0 3px 10px rgba(0,0,0,0.25);
}

.action-btn.following {
    background: linear-gradient(to bottom, #6c757d, #495057);
    color: white;
    text-shadow: 0 1px 0 rgba(0,0,0,0.3);
    border-color: #495057;
}

.action-btn.following:hover {
    background: linear-gradient(to bottom, #7a8288, #5a6268);
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* General Content Container – realistic leather */
.skeu-container {
    background: repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0px, transparent 2px, transparent 4px, rgba(0,0,0,0.04) 6px), repeating-linear-gradient(-45deg, rgba(0,0,0,0.03) 0px, transparent 2px, transparent 4px, rgba(0,0,0,0.03) 6px), linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
    border: 2px solid #8b7355;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25), inset 0 2px 0 rgba(255,255,255,0.25), inset 0 -2px 0 rgba(0,0,0,0.12);
    width: 100%;
    box-sizing: border-box;
}

.skeu-container h2, .skeu-container h3 {
    font-weight: 700;
    color: #2d2520;
    margin: 0 0 15px 0;
    text-shadow: 0 1px 2px rgba(255,255,255,0.3);
}
.skeu-container p {
    color: #3d352c;
    margin-top: -10px;
    margin-bottom: 15px;
}

/* Tag Style section: how @Username looks when tagged */
.skeu-inner {
    background: linear-gradient(to bottom, #fafafa, #eee);
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.8);
}
.tag-style-section .tag-style-header h3 { margin-bottom: 4px; }
.tag-style-desc { font-size: 0.9rem; color: #555; margin-bottom: 12px; }
.tag-style-preview { text-align: center; margin-bottom: 16px; }
.tag-style-preview-label { font-size: 0.85rem; color: #666; margin-bottom: 6px; }
.tag-style-preview-text {
    font-size: 1.4rem; font-weight: 600; color: #4f46e5;
    transition: font-family 0.2s, color 0.2s, background 0.2s;
    display: inline-block;
    width: fit-content;
    background-size: 100% 100%;
}
.tag-style-shop { margin-bottom: 16px; }
.tag-style-group { margin-bottom: 16px; }
.tag-style-group h4 { margin: 0 0 8px 0; font-size: 1rem; color: #444; }
.tag-style-price-note { font-size: 0.8rem; font-weight: normal; color: #666; }
.tag-style-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag-style-card {
    cursor: pointer;
    min-width: 90px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.tag-style-card:hover { border-color: #4f46e5; box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2); }
.tag-style-card-name { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.tag-style-card-action { font-size: 0.75rem; }
.tag-style-buy-btn {
    background: linear-gradient(145deg, #6b6bff, #5b5bdd);
    color: #fff;
    border: 1px solid #4a4abb;
    border-radius: 6px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.tag-style-buy-btn:hover { filter: brightness(1.1); }
.tag-style-selected { color: #10b981; font-weight: 600; font-size: 0.8rem; }
.tag-style-unlocked { color: #64748b; font-size: 0.8rem; }
.tag-style-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tag-style-aeros { font-size: 0.9rem; color: #64748b; }
.tag-style-gradient-maker-wrap { margin-top: 10px; }
.tag-style-gradient-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 2px solid #c0c4c8; background: linear-gradient(145deg, #f0f2f5, #e8eaed); cursor: pointer; font-size: 0.9rem; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.tag-style-gradient-btn:hover { filter: brightness(1.05); border-color: #9ca3af; }

/* Gradient maker modal */
.gradient-maker-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.gradient-maker-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.5); }
.gradient-maker-content { position: relative; max-width: 420px; width: 100%; padding: 24px; border-radius: 16px; border: 3px solid #c0c4c8; background: linear-gradient(145deg, #f5f6f8, #e8eaed); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.gradient-maker-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.gradient-maker-header h3 { margin: 0; font-size: 1.25rem; }
.gradient-maker-close { background: none; border: none; font-size: 28px; cursor: pointer; color: #64748b; line-height: 1; padding: 0 4px; }
.gradient-maker-close:hover { color: #1f2937; }
.gradient-maker-hint { font-size: 0.85rem; color: #64748b; margin-bottom: 12px; }
.gradient-maker-stops { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; min-height: 44px; }
.gradient-maker-stop { display: flex; align-items: center; gap: 6px; padding: 6px 10px; background: rgba(255,255,255,0.8); border-radius: 8px; border: 2px solid #d1d5db; }
.gradient-maker-stop input[type="color"] { width: 32px; height: 32px; border: none; border-radius: 6px; cursor: pointer; padding: 0; }
.gradient-maker-stop input[type="text"] { width: 82px; padding: 4px 8px; border: 1px solid #d1d5db; border-radius: 4px; font-size: 0.85rem; }
.gradient-maker-stop .gradient-maker-remove { background: none; border: none; color: #ef4444; cursor: pointer; padding: 2px 6px; font-size: 1.1rem; line-height: 1; }
.gradient-maker-preview-wrap { margin: 16px 0; padding: 16px; background: rgba(255,255,255,0.9); border-radius: 12px; border: 2px solid #e5e7eb; text-align: center; }
.gradient-maker-preview { font-size: 1.5rem; font-weight: 700; display: inline-block; width: fit-content; background-size: 100% 100%; }
.gradient-maker-actions { display: flex; gap: 10px; margin-top: 16px; }

/* Mention effect preview on profile (same as project comments) */
.tag-style-preview-text.mention-effect-glow { text-shadow: 0 0 8px currentColor, 0 0 12px currentColor; }
.tag-style-preview-text.mention-effect-shimmer { animation: tag-shimmer 2s ease-in-out infinite; }
@keyframes tag-shimmer { 0%, 100% { opacity: 1; filter: brightness(1); } 50% { opacity: 0.85; filter: brightness(1.15); } }
.tag-style-preview-text.mention-effect-grow:hover { transform: scale(1.08); }
.tag-style-preview-text.mention-effect-shrink:hover { transform: scale(0.92); }
.tag-style-preview-text.mention-effect-pulse { animation: tag-pulse 1.5s ease-in-out infinite; }
@keyframes tag-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.03); } }
.tag-style-preview-text.mention-effect-bounce:hover { animation: tag-bounce 0.5s ease; }
@keyframes tag-bounce { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px); } 60% { transform: translateY(2px); } }

/* Sticker Inventory */
.sticker-inventory {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    background-color: rgba(0,0,0,0.05);
    padding: 10px;
    border-radius: 6px;
    min-height: 80px;
    width: 100%; /* Full width */
    box-sizing: border-box;
}
.inventory-sticker {
    width: 60px;
    height: 60px;
    object-fit: contain;
    cursor: grab;
    transition: transform 0.2s;
}
.inventory-sticker:hover {
    transform: scale(1.1);
}

/* XP Bar */
.xp-bar-container {
    width: 100%;
    position: relative;
    margin-bottom: 10px;
}

.xp-bar-container > div {
    width: 100%;
    height: 30px;
    border-radius: 15px;
    background-color: #C0C0C0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
    padding: 4px;
    box-sizing: border-box;
}

#xp-bar {
    height: 100%;
    border-radius: 11px;
    background: linear-gradient(to right, #6abf69, #a5d6a7);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.5);
    transition: width 0.3s ease;
}

#xp-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1a1a1a;
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
    z-index: 2;
}

/* Projects */
.projects-section {
    background: linear-gradient(to bottom, #f9f9f9, #e0e0e0);
    border-radius: 12px;
    border: 1px solid #b0b0b0;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.8),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 25px;
}

.projects-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

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

/* Fandoms Section */
.fandoms-section {
    background: linear-gradient(to bottom, #f9f9f9, #e0e0e0);
    border-radius: 12px;
    border: 1px solid #b0b0b0;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.8),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 25px;
}

.fandoms-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

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

.fandom-card {
    background:
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.04) 6px),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
        linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
    border: 2px solid #8b7355;
    border-radius: 15px;
    text-decoration: none;
    color: #2d2520;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(0, 0, 0, 0.12),
        inset 1px 0 0 rgba(255, 255, 255, 0.2),
        inset -1px 0 0 rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fandom-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.28),
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
    border-color: #6d5a45;
}

.fandom-card-banner {
    width: 100%;
    height: 100px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 25px;
}

.fandom-card-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 
        0 3px 6px rgba(0, 0, 0, 0.2),
        0 0 0 2px rgba(102, 126, 234, 0.1);
    overflow: hidden;
    background: #ffffff;
}

.fandom-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fandom-card-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fandom-card-name {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
}

.fandom-card-description {
    margin: 0;
    font-size: 0.9rem;
    color: #6c757d;
    text-align: center;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fandom-card-stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 5px;
}

.fandom-stat {
    font-size: 0.8rem;
    color: #495057;
    font-weight: 500;
}

.sticker-inventory-container {
    display: none; /* Hidden by default */
    margin-top: 20px;
}

.edit-mode .sticker-inventory-container {
    display: block; /* Shown only in edit mode */
}

/* Stickers Display Section */
.stickers-display-section {
    background: linear-gradient(to bottom, #f9f9f9, #e0e0e0);
    border-radius: 12px;
    border: 1px solid #b0b0b0;
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.8),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    padding: 25px;
    margin-bottom: 25px;
}

.stickers-display-section h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.stickers-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.stickers-display-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    min-height: 100px;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
}

.sticker-display-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid #ddd;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.sticker-display-item:hover {
    border-color: #ff6b35;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.sticker-display-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
}

.sticker-display-item .remove-sticker {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.sticker-display-item:hover .remove-sticker {
    display: flex;
}

.sticker-display-item .remove-sticker:hover {
    background: #cc0000;
}

.stickers-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.stickers-actions .action-btn {
    padding: 8px 16px;
    background: linear-gradient(145deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.stickers-actions .action-btn:hover {
    background: linear-gradient(145deg, #e55a2b, #e8841a);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.project-card {
    background:
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.04) 6px),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
        linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
    border: 2px solid #8b7355;
    border-radius: 12px;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(0, 0, 0, 0.12),
        inset 1px 0 0 rgba(255, 255, 255, 0.2),
        inset -1px 0 0 rgba(0, 0, 0, 0.08);
    padding: 15px;
    color: #2d2520;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.4));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.28),
        inset 0 2px 0 rgba(255, 255, 255, 0.35),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15),
        inset 1px 0 0 rgba(255, 255, 255, 0.25),
        inset -1px 0 0 rgba(0, 0, 0, 0.1);
    border-color: #6d5a45;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

/* Age-based content blurring - only blur thumbnail, not whole card */
.project-card.age-restricted {
    position: relative;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Only block clicks if the card is actually restricted (user is under 13) */
.project-card.age-restricted:not(.allow-view) {
    pointer-events: none;
}

/* Blur only the thumbnail image inside age-restricted cards */
.project-card.age-restricted .project-thumb img,
.project-card.age-restricted .project-thumbnail,
.project-card.age-restricted img {
    filter: blur(8px);
}

/* Empty state styling – bright leather */
.empty-projects-state {
    background:
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.04) 6px),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
        linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
    border-radius: 12px;
    border: 2px dashed #8b7355;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    color: #3d352c;
}
.project-thumbnail {
    height: 180px;
    width: auto;
    max-width: 100%;
    background: linear-gradient(145deg, #d4b896, #c4a574);
    border-radius: 10px;
    object-fit: contain;
    border: 2px solid #8b7355;
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.15),
        0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.project-card:hover .project-thumbnail {
    border-color: #ff6b35;
    box-shadow:
        inset 0 2px 4px rgba(0,0,0,0.15),
        0 4px 8px rgba(255, 107, 53, 0.3);
    transform: scale(1.05);
}

.project-card h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.project-card .project-date {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 4px;
    font-weight: 500;
}

.project-card .project-type-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(145deg, #ff6b35, #f7931e);
    color: white;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 
        0 2px 4px rgba(0,0,0,0.2),
        inset 0 1px 0 rgba(255,255,255,0.3);
    margin-top: 4px;
}

/* Placed Stickers */
.placed-sticker {
    position: absolute;
    width: 80px;
    height: 80px;
    object-fit: contain;
    cursor: grab;
    user-select: none; /* Prevents selecting image while dragging */
    pointer-events: auto; /* ensure stickers can receive pointer events */
    z-index: 2; /* above banner artwork */
    transition: transform 0.2s ease, filter 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.placed-sticker:active {
    cursor: grabbing;
}

.placed-sticker:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Sticker dragging effects */
.placed-sticker.dragging {
    transform: scale(1.1) rotate(2deg);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4)) brightness(1.1);
    z-index: 1000;
}

@keyframes placeStickerAnim {
    0% {
        transform: translate(-50%, -50%) scale(0.3);
        opacity: 0;
    }
    60% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
    80% {
        transform: translate(-50%, -50%) scale(0.9) rotate(-4deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

.sticker-placed {
    animation: placeStickerAnim 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Sticker Overlay Container - Full Page Placement */
.sticker-overlay-container {
    position: fixed;
    inset: 0;
    pointer-events: none; /* Never block page interactions */
    z-index: 100;
    display: block;
    overflow: visible; /* Allow scrolling */
}

/* Overlay never blocks - only stickers and handles are interactive */

/* Enhanced Placed Stickers in Overlay */
.sticker-overlay-container .placed-sticker {
    position: absolute;
    width: 80px;
    height: 80px;
    object-fit: contain;
    cursor: grab;
    user-select: none;
    pointer-events: auto;
    z-index: 2;
    transition: filter 0.2s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    transform-origin: center center;
}

.sticker-overlay-container .placed-sticker:active {
    cursor: grabbing;
}

.sticker-overlay-container .placed-sticker.dragging {
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4)) brightness(1.1);
    z-index: 1000;
}

/* Sticker Control Handles - Skeuomorphic Design */
.sticker-control-handles {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    gap: 8px;
    z-index: 1001;
    pointer-events: none;
}

.edit-mode .placed-sticker:hover .sticker-control-handles,
.placed-sticker.selected .sticker-control-handles {
    display: flex;
    pointer-events: auto;
}

.sticker-handle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f0f2f5, #e8eaed, #ddd);
    border: 2px solid #c0c4c8;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(0, 0, 0, 0.15),
        inset 1px 0 2px rgba(255, 255, 255, 0.7),
        inset -1px 0 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    pointer-events: auto;
    position: relative;
}

.sticker-handle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4), rgba(255,255,255,0.8));
    border-radius: 14px 14px 0 0;
}

.sticker-handle:hover {
    background: linear-gradient(145deg, #e8eaed, #ddd, #c0c4c8);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.25),
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.sticker-handle:active {
    box-shadow: 
        inset 0 3px 6px rgba(0, 0, 0, 0.3),
        inset 0 -1px 2px rgba(255, 255, 255, 0.5);
    transform: scale(0.95);
}

.sticker-handle .material-icons {
    font-size: 18px;
    color: #1e293b;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.sticker-handle-rotate {
    background: linear-gradient(145deg, #4a90e2, #357abd, #2c5aa0);
    border-color: #2c5aa0;
}

.sticker-handle-rotate .material-icons {
    color: white;
}

.sticker-handle-scale {
    background: linear-gradient(145deg, #10b981, #059669, #047857);
    border-color: #047857;
}

.sticker-handle-scale .material-icons {
    color: white;
}

/* Scale handle positioned at bottom-right corner */
.sticker-scale-handle {
    position: absolute;
    bottom: -16px;
    right: -16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(145deg, #10b981, #059669, #047857);
    border: 2px solid #047857;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2),
        inset 1px 0 2px rgba(255, 255, 255, 0.4),
        inset -1px 0 2px rgba(0, 0, 0, 0.15);
    cursor: nwse-resize;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    pointer-events: auto;
    z-index: 1001;
}

.sticker-scale-handle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2), rgba(255,255,255,0.6));
    border-radius: 14px 14px 0 0;
}

.edit-mode .placed-sticker:hover .sticker-scale-handle,
.placed-sticker.selected .sticker-scale-handle {
    display: flex;
}

.sticker-scale-handle:hover {
    background: linear-gradient(145deg, #059669, #047857, #065f46);
    box-shadow: 
        0 6px 12px rgba(0, 0, 0, 0.25),
        0 3px 6px rgba(0, 0, 0, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.25);
    transform: scale(1.15);
}

.sticker-scale-handle:active {
    box-shadow: 
        inset 0 3px 6px rgba(0, 0, 0, 0.3),
        inset 0 -1px 2px rgba(255, 255, 255, 0.4);
    transform: scale(0.9);
}

.sticker-scale-handle .material-icons {
    font-size: 18px;
    color: white;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    transform: rotate(45deg);
}

/* Selected sticker indicator */
.placed-sticker.selected {
    outline: 2px dashed #4a90e2;
    outline-offset: 4px;
}

/* Quote Section */
.quote-section {
    margin-bottom: 20px;
}

.quote-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.quote-text {
    font-style: italic;
    color: #3d352c;
    font-size: 1.1rem;
    line-height: 1.5;
    flex: 1;
    text-align: center;
    padding: 10px;
    background:
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
        linear-gradient(135deg, #d4b896 0%, #e6d4b8 50%, #d4b896 100%);
    border-radius: 8px;
    border: 1px solid #8b7355;
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.2),
        inset 0 -2px 4px rgba(0, 0, 0, 0.1);
}

.edit-quote-btn {
    background: linear-gradient(145deg, #007bff, #0056b3);
    border: 2px solid #004085;
    border-radius: 8px;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 4px rgba(0, 123, 255, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.edit-quote-btn:hover {
    background: linear-gradient(145deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 
        0 4px 8px rgba(0, 123, 255, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* Social Section */
.social-section {
    margin-bottom: 20px;
}

.social-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 15px;
    background: linear-gradient(145deg, #e9ecef, #dee2e6);
    border-radius: 8px;
    padding: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #495057;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
}

.social-tab:hover {
    background: linear-gradient(145deg, #e9ecef, #dee2e6);
    transform: translateY(-1px);
}

.social-tab.active {
    background: linear-gradient(145deg, #007bff, #0056b3);
    color: white;
    border-color: #004085;
    box-shadow: 
        0 4px 8px rgba(0, 123, 255, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.tab-icon {
    font-size: 1.1rem;
}

.tab-text {
    font-size: 0.9rem;
}

.tab-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.social-tab.active .tab-count {
    background: rgba(255, 255, 255, 0.4);
}

.social-content {
    position: relative;
}

.social-list {
    display: none;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    background:
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.04) 6px),
        linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
    border-radius: 8px;
    border: 1px solid #8b7355;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 2px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.social-list.active {
    display: flex;
}

.social-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background:
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
        linear-gradient(135deg, #d4b896 0%, #e6d4b8 50%, #d4b896 100%);
    border: 1px solid #8b7355;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    color: #2d2520;
}

.social-user:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
}

.social-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.social-username {
    font-weight: 600;
    color: #495057;
    font-size: 1rem;
}

.social-user-stats {
    font-size: 0.8rem;
    color: #6c757d;
}

.social-user-actions {
    display: flex;
    gap: 8px;
}

.social-action-btn {
    padding: 6px 12px;
    background: linear-gradient(145deg, #007bff, #0056b3);
    border: 1px solid #004085;
    border-radius: 4px;
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 4px rgba(0, 123, 255, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.social-action-btn:hover {
    background: linear-gradient(145deg, #0056b3, #004085);
    transform: translateY(-1px);
}

.social-action-btn.secondary {
    background: linear-gradient(145deg, #6c757d, #545b62);
    border-color: #4e555b;
}

.social-action-btn.secondary:hover {
    background: linear-gradient(145deg, #545b62, #4e555b);
}

.empty-social {
    text-align: center;
    color: #6c757d;
    font-style: italic;
    padding: 30px;
}

/* Profile Features (Plus+) Styles */
.announcement-section, .pinned-projects-section, .profile-music-section {
    margin-bottom: 20px;
}

.announcement-header, .pinned-projects-header, .profile-music-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.announcement-header h3, .pinned-projects-header h3, .profile-music-header h3 {
    margin: 0;
    flex: 1;
}

.announcement-text {
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    color: #333;
    line-height: 1.6;
}

.announcement-edit textarea, .quote-edit textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid #b0b0b0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}

.announcement-actions, .pinned-projects-actions, .profile-music-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.pinned-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.pinned-project-card {
    background:
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.04) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.04) 6px),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.03) 0px, transparent 2px, transparent 4px, rgba(0, 0, 0, 0.03) 6px),
        linear-gradient(135deg, #c4a574 0%, #d4b896 35%, #e6d4b8 50%, #d4b896 65%, #c4a574 100%);
    border: 2px solid #8b7355;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.pinned-project-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.28),
        inset 0 2px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.pinned-project-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    border: 1px solid #8b7355;
}

.pinned-project-card h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #2d2520;
}

.pinned-projects-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 15px 0;
    max-height: 300px;
    overflow-y: auto;
}

.project-selector-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.project-selector-item:hover {
    background: rgba(255, 255, 255, 0.8);
}

.project-selector-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 5px;
}

.project-selector-item span {
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 5px;
}

.current-music-display {
    padding: 15px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    text-align: center;
}

.music-selector {
    width: 100%;
    padding: 12px;
    border: 2px solid #b0b0b0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    margin: 15px 0;
}

.edit-announcement-btn, .edit-pinned-btn, .edit-music-btn {
    background: linear-gradient(145deg, #bef264, #84cc16, #65a30d);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.edit-announcement-btn:hover, .edit-pinned-btn:hover, .edit-music-btn:hover {
    transform: scale(1.05);
}

/* OC gallery (experimental) */
.profile-oc-section {
    margin: 1.25rem 0;
    padding: 1.25rem 1.5rem;
}

.profile-oc-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.profile-oc-header h3 {
    margin: 0;
    font-family: "Baloo 2", sans-serif;
}

.profile-oc-hint {
    font-size: 0.9rem;
    color: #5c4a3a;
    margin: 0 0 1rem 0;
}

.profile-oc-upload {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.oc-upload-label {
    display: inline-block;
    cursor: pointer;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.oc-name-input {
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    border: 2px solid #b8a99a;
    min-width: 160px;
    background: linear-gradient(180deg, #fffef8 0%, #f5efe6 100%);
}

.profile-oc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.profile-oc-card {
    background: linear-gradient(160deg, #faf6ef 0%, #e8dfd2 100%);
    border: 2px solid #a09080;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 8px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.profile-oc-thumb-wrap {
    background: repeating-linear-gradient(45deg, #ddd, #ddd 6px, #ccc 6px, #ccc 12px);
    border-radius: 8px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-oc-thumb {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}

.profile-oc-meta {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.profile-oc-name {
    font-weight: 700;
    word-break: break-word;
}

.profile-oc-status {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.oc-status-approved {
    color: #166534;
}

.oc-status-pending {
    color: #a16207;
}

.oc-status-rejected {
    color: #991b1b;
}

.profile-oc-delete {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.profile-oc-empty {
    color: #777;
    grid-column: 1 / -1;
    text-align: center;
    padding: 1rem;
}
