/* assets/css/style.css - complemento */

/* Header Styles */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.main-header.scrolled {
    background: rgba(26, 26, 46, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo span {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-nav a {
    color: #aaa;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
    color: white;
    background: rgba(102, 126, 234, 0.2);
}

.main-nav a i {
    margin-right: 8px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* User Actions */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background 0.3s;
}

.user-profile:hover {
    background: rgba(255,255,255,0.1);
}

.avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.logout-btn {
    color: #aaa;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
}

.logout-btn:hover {
    color: #ff4444;
    background: rgba(255,68,68,0.1);
}

.btn-login {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.btn-login:hover {
    background: rgba(255,255,255,0.1);
}

.btn-primary {
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    padding: 8px 20px;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 40px;
    text-align: center;
    color: white;
}

.hero-banner h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-banner p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero-buttons .btn-secondary {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255,255,255,0.3);
}

/* Sections */
.section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    color: white;
    font-size: 24px;
}

.see-all {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s;
}

.see-all:hover {
    gap: 10px;
}

/* Grids */
.artist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.artist-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.artist-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

.artist-image {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
}

.artist-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.artist-card:hover .artist-overlay {
    opacity: 1;
}

.artist-overlay i {
    color: white;
    font-size: 30px;
}

.artist-card h3 {
    color: white;
    font-size: 14px;
    margin: 0 0 5px;
}

.artist-card p {
    color: #888;
    font-size: 12px;
    margin: 0;
}

/* Music Grid */
.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.music-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 15px;
    transition: all 0.3s;
    cursor: pointer;
}

.music-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

.music-cover {
    position: relative;
    padding-bottom: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: #333;
}

.music-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-cover .play-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s;
}

.music-card:hover .play-btn {
    opacity: 1;
    transform: scale(1);
}

.music-cover .fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #555;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}

.music-cover .fav-btn.active {
    color: #ff4444;
}

.music-cover .fav-btn:hover {
    background: rgba(0,0,0,0.8);
}

.music-card h3 {
    color: white;
    font-size: 14px;
    margin: 10px 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.music-card p {
    color: #888;
    font-size: 12px;
    margin: 0;
}

.music-card .duration {
    color: #555;
    font-size: 11px;
}

/* Music List */
.music-list-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    gap: 15px;
    transition: background 0.3s;
    cursor: pointer;
}

.music-list-item:hover {
    background: rgba(255,255,255,0.08);
}

.music-list-item .number {
    color: #555;
    font-size: 14px;
    font-weight: 600;
    min-width: 30px;
}

.music-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.mini-cover {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.music-info h4 {
    color: white;
    font-size: 14px;
    margin: 0;
}

.music-info p {
    color: #888;
    font-size: 12px;
    margin: 0;
}

.music-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-actions .duration {
    color: #555;
    font-size: 12px;
}

.play-btn-small,
.fav-btn-small {
    background: none;
    border: none;
    color: #555;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s;
}

.play-btn-small:hover {
    color: white;
}

.fav-btn-small.active {
    color: #ff4444;
}

.fav-btn-small:hover {
    color: #ff4444;
}

/* Album Grid */
.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.album-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.album-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

.album-image {
    position: relative;
    padding-bottom: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.album-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.album-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.album-card:hover .album-overlay {
    opacity: 1;
}

.album-overlay i {
    color: white;
    font-size: 30px;
}

.album-card h3 {
    color: white;
    font-size: 14px;
    margin: 0 0 5px;
}

.album-card p {
    color: #888;
    font-size: 12px;
    margin: 0;
}

.album-info {
    color: #555;
    font-size: 11px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-card i {
    font-size: 32px;
    color: #667eea;
}

.stat-number {
    display: block;
    color: white;
    font-size: 28px;
    font-weight: 700;
}

.stat-label {
    color: #888;
    font-size: 14px;
}

/* Playlist Grid */
.playlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.playlist-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
}

.playlist-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.1);
}

.playlist-cover {
    position: relative;
    padding-bottom: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.playlist-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.playlist-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.playlist-card:hover .playlist-overlay {
    opacity: 1;
}

.playlist-overlay i {
    color: white;
    font-size: 30px;
}

.playlist-card h3 {
    color: white;
    font-size: 14px;
    margin: 0 0 5px;
}

.playlist-card p {
    color: #888;
    font-size: 12px;
    margin: 0;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.empty-state i {
    color: #333;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: white;
    margin-bottom: 10px;
}

.empty-state p {
    margin-bottom: 20px;
}

.empty-state-small {
    text-align: center;
    padding: 30px 20px;
    color: #888;
}

.empty-state-small p {
    margin-bottom: 15px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #1a1a2e;
    border-radius: 20px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    border: 1px solid rgba(255,255,255,0.1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: white;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
}

.modal-close:hover {
    color: white;
}

.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group label {
    display: block;
    color: #aaa;
    margin-bottom: 5px;
    font-weight: 500;
}

.modal .form-group input,
.modal .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: white;
    font-size: 14px;
}

.modal .form-group input:focus,
.modal .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.modal .form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* Notifications */
#notificationContainer {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
    width: 100%;
}

.notification {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 15px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.notification-success {
    border-left: 4px solid #4caf50;
}

.notification-error {
    border-left: 4px solid #f44336;
}

.notification-warning {
    border-left: 4px solid #ff9800;
}

.notification-info {
    border-left: 4px solid #2196f3;
}

.notification-close {
    background: none;
    border: none;
    color: #888;
    font-size: 20px;
    cursor: pointer;
}

.notification-close:hover {
    color: white;
}

.notification.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a2e;
        flex-direction: column;
        padding: 20px;
        gap: 5px;
        display: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .main-nav.active {
        display: flex;
    }
    
    .main-nav a {
        width: 100%;
        padding: 12px 16px;
    }
    
    .hero-banner h1 {
        font-size: 32px;
    }
    
    .hero-banner {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .artist-grid,
    .music-grid,
    .album-grid,
    .playlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-banner h1 {
        font-size: 28px;
    }
    
    .hero-banner p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .user-actions .btn-primary {
        display: none;
    }
    
    .user-profile span {
        display: none;
    }
}

@media (max-width: 480px) {
    .artist-grid,
    .music-grid,
    .album-grid,
    .playlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .music-list-item {
        flex-wrap: wrap;
        padding: 10px;
    }
    
    .music-actions {
        margin-left: auto;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 20px;
    }
}