/* =====================================================
   ESTILOS DO CLIENTE - MeuKaraoke
   ===================================================== */

@import url('style.css');

body {
    padding-bottom: 80px;
    min-height: 100vh;
}

/* =====================================================
   HEADER
   ===================================================== */

.client-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    color: white;
    padding: 24px 20px;
    text-align: center;
}

.header-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 10px;
}

.client-header h1 {
    font-size: 22px;
    margin: 0;
}

/* =====================================================
   BANNER
   ===================================================== */

.banner {
    width: 100%;
}

.banner img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */

.client-main {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   STATUS CARDS
   ===================================================== */

.status-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 24px;
}

.status-card .icon {
    font-size: 50px;
    margin-bottom: 16px;
}

.status-card h2 {
    margin-bottom: 8px;
}

.status-card p {
    color: var(--text-muted);
}

.status-card.closed {
    border-top: 4px solid var(--danger-color);
}

/* =====================================================
   REGISTER PROMPT
   ===================================================== */

.register-prompt {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 24px;
}

.register-prompt h2 {
    margin-bottom: 10px;
}

.register-prompt p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* =====================================================
   WELCOME BACK
   ===================================================== */

.welcome-back {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    text-align: center;
}

.welcome-back p {
    margin: 0;
    color: var(--primary-dark);
}

/* =====================================================
   MY ENTRIES
   ===================================================== */

.my-entries {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}

.my-entries h3 {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.my-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
}

.my-entry:last-child {
    margin-bottom: 0;
}

.my-entry.current {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid var(--warning-color);
}

.my-entry .entry-info {
    flex: 1;
}

.my-entry .entry-info strong {
    display: block;
    font-size: 15px;
}

.my-entry .entry-info span {
    font-size: 13px;
    color: var(--text-muted);
}

.my-entry .entry-status .position {
    font-size: 13px;
    color: var(--text-muted);
}

.my-entry .entry-status .badge {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}

.my-entry .entry-status .badge.current {
    background: var(--warning-color);
    color: white;
}

/* =====================================================
   QUEUE SECTION
   ===================================================== */

.queue-section {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.queue-section h2 {
    font-size: 18px;
    margin-bottom: 16px;
}

.empty-queue {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
}

.queue-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    position: relative;
}

.queue-item.current {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid var(--warning-color);
}

.queue-item .position {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    min-width: 28px;
    text-align: center;
}

.queue-item .queue-info {
    flex: 1;
    min-width: 0;
}

.queue-item .singer-name {
    display: block;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.queue-item .song-name {
    font-size: 13px;
    color: var(--text-muted);
}

.queue-item .artist-name {
    font-size: 13px;
    color: var(--text-muted);
}

.queue-item .current-badge {
    padding: 3px 8px;
    font-size: 11px;
    background: var(--warning-color);
    color: white;
    border-radius: 20px;
    white-space: nowrap;
}

.btn-complain {
    padding: 4px 10px;
    font-size: 11px;
    background: var(--danger-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* =====================================================
   FOOTER
   ===================================================== */

.client-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 20px;
    background: var(--card-bg);
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
    display: flex;
    gap: 12px;
    z-index: 100;
}

.client-footer .btn {
    flex: 1;
}

/* =====================================================
   MODAL
   ===================================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 16px;
}

.modal-content .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
}

.modal-content .form-actions .btn {
    flex: 1;
}

.modal-content small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

/* =====================================================
   REGISTER CARD
   ===================================================== */

.register-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.register-card h2 {
    margin-bottom: 8px;
}

.register-card > p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.form-note {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.queue-item.current {
    animation: pulse 2s infinite;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 480px) {
    .client-header {
        padding: 20px 16px;
    }
    
    .client-header h1 {
        font-size: 20px;
    }
    
    .client-main {
        padding: 16px;
    }
    
    .client-footer {
        padding: 12px 16px;
    }
    
    .client-footer .btn {
        padding: 12px;
        font-size: 14px;
    }
}
