/* =============================================================================
   Sync.Land — My Artists / My Music dashboard styles.
   Extracted from templates/account/artists.php (was a ~666-line inline <style>).
   ============================================================================= */

.fml-artists-container {
    color: #e2e8f0;
}

/* Stats Cards */
.fml-artist-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.fml-stat-card {
    background: #252540;
    border: 1px solid #404060;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
a.fml-stat-card:hover {
    transform: translateY(-2px);
    border-color: #E7565A;
    box-shadow: 0 4px 15px rgba(231, 86, 90, 0.2);
}

.fml-stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #E7565A;
    display: block;
}

.fml-stat-card .stat-label {
    font-size: 0.85rem;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fml-stat-card.albums .stat-number {
    color: #63b3ed;
}

.fml-stat-card.songs .stat-number {
    color: #48bb78;
}

/* Artist Card */
.fml-artist-card {
    background: #252540;
    border: 1px solid #404060;
    border-radius: 12px;
    margin-bottom: 25px;
    overflow: hidden;
}

.fml-artist-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, #1e1e32 0%, #252540 100%);
    border-bottom: 1px solid #404060;
}

.fml-artist-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #E7565A;
    box-shadow: 0 4px 15px rgba(231, 86, 90, 0.3);
}

.fml-artist-image-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #404060;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #E7565A;
}

.fml-artist-image-placeholder i {
    font-size: 2.5rem;
    color: #718096;
}

.fml-artist-info {
    flex: 1;
}

.fml-artist-name {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
}

.fml-artist-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Action Buttons */
.fml-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.fml-action-btn.view {
    background: rgba(99, 179, 237, 0.2);
    color: #63b3ed !important;
    border: 1px solid rgba(99, 179, 237, 0.3);
}

.fml-action-btn.view:hover {
    background: #63b3ed;
    color: white !important;
    transform: translateY(-2px);
}

.fml-action-btn.edit {
    background: rgba(246, 224, 94, 0.2);
    color: #f6e05e !important;
    border: 1px solid rgba(246, 224, 94, 0.3);
}

.fml-action-btn.edit:hover {
    background: #f6e05e;
    color: #1a1a2e !important;
    transform: translateY(-2px);
}

.fml-action-btn.upload {
    background: rgba(72, 187, 120, 0.2);
    color: #48bb78 !important;
    border: 1px solid rgba(72, 187, 120, 0.3);
}

.fml-action-btn.upload:hover {
    background: #48bb78;
    color: white !important;
    transform: translateY(-2px);
}

.fml-action-btn.create {
    background: #E7565A;
    color: white !important;
}

.fml-action-btn.create:hover {
    background: #ff6b6f;
    transform: translateY(-2px);
}

/* Albums Section */
.fml-albums-section {
    padding: 25px;
}

.fml-albums-title {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #a0aec0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fml-albums-title i {
    color: #E7565A;
}

/* Albums Table */
.fml-albums-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.fml-albums-table thead th {
    background: #1a1a2e;
    color: #a0aec0;
    padding: 12px 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
    border-bottom: 1px solid #404060;
}

.fml-albums-table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.fml-albums-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.fml-albums-table tbody tr {
    transition: background 0.2s ease;
}

.fml-albums-table tbody tr:hover {
    background: #1e1e32;
}

.fml-albums-table tbody td {
    padding: 15px;
    border-bottom: 1px solid #2d2d44;
    vertical-align: middle;
}

.fml-albums-table tbody tr:last-child td {
    border-bottom: none;
}

/* Album Row */
.fml-album-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.fml-album-cover {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.fml-album-cover-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #404060;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fml-album-cover-placeholder i {
    font-size: 1.5rem;
    color: #718096;
}

.fml-album-title {
    font-weight: 600;
    color: #e2e8f0;
    margin: 0;
}

.fml-album-title a {
    color: #e2e8f0 !important;
    text-decoration: none;
}

.fml-album-title a:hover {
    color: #E7565A !important;
}

.fml-release-date {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* No Albums State */
.fml-no-albums {
    text-align: center;
    padding: 30px;
    color: #718096;
}

.fml-no-albums i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

/* Upload Album Button */
.fml-upload-section {
    padding: 0 25px 25px 25px;
}

/* Empty State */
.fml-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #252540;
    border-radius: 12px;
    border: 1px solid #404060;
    margin-bottom: 30px;
}

.fml-empty-state i {
    font-size: 4rem;
    color: #404060;
    margin-bottom: 20px;
}

.fml-empty-state h3 {
    color: #e2e8f0;
    margin-bottom: 10px;
}

.fml-empty-state p {
    color: #a0aec0;
    margin-bottom: 20px;
}

/* Create Artist Section */
.fml-create-artist-section {
    text-align: center;
    padding: 30px;
    background: #252540;
    border: 2px dashed #404060;
    border-radius: 12px;
    margin-top: 20px;
}

.fml-create-artist-section p {
    color: #a0aec0;
    margin-bottom: 15px;
}

/* Song Count Badge */
.fml-song-count-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(72, 187, 120, 0.15);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #48bb78;
}

.fml-stat-card.licensed .stat-number {
    color: #f6ad55;
}

/* Licensing Column */
.fml-licensing-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.fml-licensing-badge.commercial {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.fml-licensing-badge.ccby-only {
    background: rgba(160, 174, 192, 0.15);
    color: #a0aec0;
}

/* Licensing Editor */
.fml-licensing-editor {
    display: none;
    background: #1a1a2e;
    border: 1px solid #6366f1;
    border-radius: 10px;
    padding: 20px;
    margin-top: 10px;
}

.fml-licensing-editor.active {
    display: block;
}

.fml-licensing-editor label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.fml-licensing-editor input[type="checkbox"] {
    accent-color: #6366f1;
    width: 18px;
    height: 18px;
}

.fml-licensing-editor .fml-price-row {
    display: none;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0 26px;
}

.fml-licensing-editor .fml-price-row.visible {
    display: flex;
}

.fml-licensing-editor .fml-price-row input[type="number"] {
    width: 100px;
    padding: 6px 10px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 14px;
}

.fml-licensing-editor .fml-price-row input[type="number"]:focus {
    border-color: #6366f1;
    outline: none;
}

.fml-licensing-editor .fml-split-info {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-left: 26px;
    margin-top: 4px;
}

.fml-licensing-editor .fml-editor-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.fml-licensing-editor .fml-editor-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.fml-licensing-editor .fml-save-licensing {
    background: #6366f1;
    color: white;
}

.fml-licensing-editor .fml-save-licensing:hover {
    background: #818cf8;
}

.fml-licensing-editor .fml-cancel-licensing {
    background: rgba(255,255,255,0.1);
    color: #a0aec0;
}

.fml-licensing-editor .fml-cancel-licensing:hover {
    background: rgba(255,255,255,0.2);
}

.fml-licensing-editor .fml-save-status {
    font-size: 12px;
    margin-left: 10px;
    line-height: 32px;
}

.fml-action-btn.licensing {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8 !important;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.fml-action-btn.licensing:hover {
    background: #6366f1;
    color: white !important;
    transform: translateY(-2px);
}

/* Albums table scroll wrapper */
.fml-albums-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Responsive */
@media (max-width: 768px) {
    .fml-artists-container {
        margin-left: -15px;
        margin-right: -15px;
    }

    .fml-artist-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 0 10px;
        margin-bottom: 20px;
    }

    .fml-stat-card {
        padding: 14px 10px;
        border-radius: 8px;
    }

    .fml-stat-card .stat-number {
        font-size: 1.5rem;
    }

    .fml-artist-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-bottom: 15px;
    }

    .fml-artist-header {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
        gap: 12px;
    }

    .fml-artist-image,
    .fml-artist-image-placeholder {
        width: 70px;
        height: 70px;
    }

    .fml-artist-name {
        font-size: 1.2rem;
    }

    .fml-artist-meta {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px !important;
    }

    .fml-artist-actions {
        justify-content: center;
    }

    .fml-action-btn span {
        display: none;
    }

    .fml-action-btn {
        padding: 10px;
    }

    .fml-albums-section {
        padding: 15px 0;
    }

    .fml-albums-title {
        padding: 0 15px;
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .fml-albums-scroll {
        margin: 0;
        padding-bottom: 4px;
    }

    .fml-albums-table {
        min-width: 580px;
    }

    .fml-albums-table thead th {
        padding: 10px 12px;
        font-size: 0.7rem;
        white-space: nowrap;
    }

    .fml-albums-table tbody td {
        padding: 12px;
    }

    .fml-album-cover,
    .fml-album-cover-placeholder {
        width: 45px;
        height: 45px;
        border-radius: 6px;
    }

    .fml-album-info {
        gap: 10px;
    }

    .fml-album-title {
        font-size: 0.9rem;
    }

    .fml-licensing-row td {
        padding: 0 10px 10px !important;
    }

    .fml-licensing-editor {
        padding: 15px;
    }

    .fml-upload-section {
        padding: 0 15px 15px;
    }

    .fml-no-albums {
        padding: 20px 15px;
    }

    .fml-empty-state {
        border-radius: 0;
        padding: 40px 15px;
    }

    .fml-create-artist-section {
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

@media (max-width: 400px) {
    .fml-artist-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 0 6px;
    }

    .fml-stat-card {
        padding: 10px 6px;
    }

    .fml-stat-card .stat-number {
        font-size: 1.3rem;
    }

    .fml-stat-card .stat-label {
        font-size: 0.7rem;
    }

    .fml-song-count-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }
}
