/* Profile Page Styles */
.snd-profile-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 0;
}

.snd-profile-header {
    padding: 2rem;
    border-radius: 0;
    /* Remove subtle white border that causes visible outline on light themes */
    border: none;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Top bar: name + stats */
.snd-profile-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.snd-profile-name-section {
    flex: 1;
}

.snd-profile-stats-section {
    flex-shrink: 0;
}

/* Avatar row: avatar + buttons */
.snd-profile-avatar-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.snd-profile-avatar {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: auto;
}

.snd-profile-avatar-buttons {
    display: flex;
    flex-direction: column;

}

/* Actions row */
.snd-profile-actions-row {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.snd-profile-details {
    flex-grow: 1;
    min-width: 0;
}

.snd-profile-stats-column {
    flex-shrink: 0;
    width: 180px;
    max-width: 180px;
}

.snd-avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    /* Remove white ring around avatar */
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.snd-profile-name {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    color: #333;
}

.snd-profile-location,
.snd-profile-genres {
    color: #666;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.snd-profile-stats {
    display: flex;
    gap: 2rem;
    margin: 0;
}

.snd-stat-item {
    text-align: center;
}

.snd-stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #d77b11;
}

.snd-stat-label {
    display: block;
    font-size: 0.9rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.snd-profile-actions {
    margin: 0;
}

/* Button styles */
.snd-profile-actions-row .button,
.snd-edit-profile-btn,
.snd-view-public-btn,
.snd-avatar-upload-btn,
.snd-avatar-remove-btn {
    font-size: 0.9rem !important;
    padding: 12px 16px !important;
    min-height: 40px !important;
    line-height: 1.2 !important;
    text-align: center;
    border-radius: 4px;
    white-space: nowrap;
    display: inline-block;
    text-decoration: none !important;
}

.snd-edit-profile-btn,
.snd-view-public-btn {
    background: #d77b11 !important;
    color: white !important;
    border: none !important;
}

.snd-edit-profile-btn:hover,
.snd-view-public-btn:hover {
    background: #b8690e !important;
}

.snd-view-public-btn {
    background: #333 !important;
}

.snd-view-public-btn:hover {
    background: #555 !important;
}

.snd-avatar-upload-btn {
    background: #0073aa !important;
    color: white !important;
    border: none !important;
    display: block;
    width: 100%;
}

.snd-avatar-upload-btn:hover {
    background: #005a87 !important;
}

.snd-avatar-remove-btn {
    background: #dc3232 !important;
    color: white !important;
    border: none !important;
    display: block;
    width: 100%;
}

.snd-avatar-remove-btn:hover {
    background: #a00 !important;
}

.snd-avatar-upload-section {
    margin: 0;
    width: auto;
}

.snd-profile-content {
    /* Full width for music collection only */
}

.snd-profile-bio {
    padding: 1.5rem;
    border-radius: 8px;
    /* Remove border to match design request */
    border: none;
}

.snd-profile-bio h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.snd-profile-bio p {
    line-height: 1.6;
    color: #555;
}

.snd-music-collection h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
    font-size: 1.3rem;
}

.snd-collection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.snd-collection-item {
    border-radius: 1px transparent;
    padding: 0;
    margin: 0;
    overflow: hidden;
    /* Remove border to avoid white outline */
    transition: transform 0.2s;
}

.snd-collection-item:hover {
filter: brightness(1.08) saturate(1.12);
border: 1px #f4cd0b;
}

.snd-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.snd-product-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.snd-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.snd-product-image.snd-placeholder {
    font-size: 2rem;
    color: #ccc;
}

.snd-product-info {
    padding: 1rem;
}

.snd-product-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.85rem;
    line-height: 1.2;
    color: #333;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.snd-product-date {
    font-size: 0.8rem;
    color: #888;
}

.snd-no-music {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
}

/* Public Profile Styles */
.snd-public-profile-container {
    max-width: 1200px;
}

.snd-public-profile-wrapper {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.snd-public-profile .snd-profile-page {
    max-width: none;
    margin: 0;
    padding: 2rem;
}

.snd-public-profile .snd-profile-header {
    background: #001e2d;
    position: relative;
    margin-bottom: 1rem;
}

.snd-public-profile .snd-profile-name {
    color: #2c3e50;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}


.snd-public-profile .snd-music-collection h3 {
    color: #666; /* lighter color */
    font-size: 1.1rem; /* smaller size */
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.5rem;
    position: relative;
    border-bottom: 2px solid transparent; /* placeholder for animated border */
}

.snd-public-profile .snd-music-collection h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #ff00ff, #ffff00, #00ffff);
    background-size: 200% 100%;
    animation: neon-flow-horizontal 3s linear infinite;
}

.snd-public-profile .snd-profile-bio {
    background: #012c42;
    position: relative;
    padding-left: 2rem; /* space for animated border */
}

.snd-public-profile .snd-profile-bio::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(0deg, #00ffff, #ff00ff, #ffff00, #00ffff);
    background-size: 100% 200%;
    animation: neon-flow-vertical 3s linear infinite;
}

/* Profile Edit Form Styles */
.snd-profile-edit-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.snd-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    /* Remove divider border */
    border-bottom: none;
}

.snd-form-header h2 {
    margin: 0;
    color: #333;
}

.snd-profile-form {
    padding: 2rem;
    border-radius: 8px;
    /* Remove container border */
    border: none;
}

.snd-form-field {
    margin-bottom: 1.5rem;
}

.snd-form-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.snd-form-field input,
.snd-form-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.snd-form-field input:focus,
.snd-form-field textarea:focus {
    outline: none;
    border-color: #d77b11;
    box-shadow: 0 0 0 2px rgba(215, 123, 17, 0.1);
}

.snd-form-actions {
    text-align: right;
    padding-top: 1rem;
    /* Remove divider border */
    border-top: none;
}

.snd-form-actions .button-primary {
    background: #d77b11 !important;
    border-color: #d77b11 !important;
    padding: 10px 20px !important;
}

.snd-form-actions .button-primary:hover {
    background: #b8690e !important;
    border-color: #b8690e !important;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .snd-profile-topbar {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .snd-profile-avatar-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .snd-profile-avatar-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .snd-profile-actions-row {
        justify-content: center;
    }
    
    .snd-profile-stats {
        justify-content: center;
    }
    
    .snd-profile-content {
        /* Already full width - no grid needed */
    }
    .snd-collection-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .snd-public-profile-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .snd-public-profile .snd-profile-page {
        padding: 1rem;
    }
}

/* Profile stats in right column */
.snd-profile-stats-column .snd-profile-stats {
    padding-left: 0;
    margin-top: 0;
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap;
}

.snd-profile-stats-column .snd-stat-item {
    margin-bottom: 0;
    text-align: center !important;
    flex: 1;
    min-width: 70px;
}

.snd-profile-stats-column .snd-stat-number {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color: #d77b11;
    line-height: 1.2;
}

.snd-profile-stats-column .snd-stat-label {
    display: block;
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.snd-profile-stats-column .snd-profile-stats h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #333;
}

.snd-profile-stats-column .snd-profile-stats ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.snd-profile-stats-column .snd-profile-stats li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #666;
}

/* Remove underlines from buttons */
.snd-profile-actions a,
.snd-edit-profile-btn,
.snd-view-public-btn {
    text-decoration: none !important;
}

.snd-profile-actions a:hover,
.snd-edit-profile-btn:hover,
.snd-view-public-btn:hover {
    text-decoration: none !important;
}

/* Hide any debugging divs that might be showing */
.snd-profile-page div[style*="position: absolute"],
.snd-profile-page div[style*="z-index"] {
    display: none !important;
}

/* Neon animations for About section */
@keyframes neon-flow-horizontal {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes neon-flow-vertical {
    0% { background-position: 50% 0%; }
    100% { background-position: 50% 200%; }
}
/* ---- Public profile overrides: headings, product colors, hover ---- */
.snd-public-profile .snd-profile-header .snd-profile-name-section .snd-profile-name { color:#2c3e50 !important; text-shadow:none; }
.snd-public-profile .snd-profile-header .snd-profile-name { color:#2c3e50 !important; text-shadow:none; }
.snd-public-profile .snd-profile-bio h3 { color:#2c3e50 !important; }
.snd-public-profile .snd-profile-content .snd-profile-bio h3 { color:#2c3e50 !important; }
.snd-public-profile .snd-product-title { color:#2c3e50 !important; }
.snd-public-profile .snd-product-date { display:none !important; }

.snd-public-profile .snd-product-image img { transition: transform .2s ease, filter .2s ease; }

/* Wave animation canvas styling for public profile */
.snd-public-profile .snd-profile-wave-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.snd-public-profile .snd-profile-wave-container canvas {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.25));
    mix-blend-mode: screen;
}

/* Ensure header content appears above the wave animation */
.snd-public-profile .snd-profile-topbar,
.snd-public-profile .snd-profile-avatar-row,
.snd-public-profile .snd-profile-bio {
    position: relative;
    z-index: 10;
}
