/**
 * assets/css/public-style.css
 * Public-facing styles for Live Band Karaoke Plugin
 * Version: 1.0.0
 */

/* ===================================
   Container and Layout
   =================================== */

.lbk-signup-form,
.lbk-queue-display {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ===================================
   Form Styles
   =================================== */

.lbk-form-group {
    margin-bottom: 20px;
}

.lbk-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.lbk-form-group input[type="text"],
.lbk-form-group input[type="email"],
.lbk-form-group input[type="number"],
.lbk-form-group select,
.lbk-form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.lbk-form-group input:focus,
.lbk-form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.lbk-form-group input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* ===================================
   Genre Filter Buttons
   =================================== */

.lbk-genre-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.lbk-filter {
    padding: 10px 20px;
    background: #f0f0f1;
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
    color: #333;
}

.lbk-filter:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.lbk-filter.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

/* ===================================
   Songs List
   =================================== */

.lbk-songs-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px;
    background: #f9f9f9;
}

/* Custom scrollbar */
.lbk-songs-list::-webkit-scrollbar {
    width: 8px;
}

.lbk-songs-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 8px;
}

.lbk-songs-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 8px;
}

.lbk-songs-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.lbk-song-item {
    background: white;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.lbk-song-item:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.lbk-song-item.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.lbk-song-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.lbk-song-artist {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.lbk-song-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.lbk-song-meta span {
    padding: 4px 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    font-size: 12px;
    color: #667eea;
}

.lbk-song-item.selected .lbk-song-meta span {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.lbk-no-songs {
    padding: 40px;
    text-align: center;
    color: #666;
    font-size: 16px;
}

/* ===================================
   Submit Button
   =================================== */

.lbk-form-submit {
    margin-top: 30px;
    text-align: center;
}

.lbk-btn-submit {
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    display: inline-block;
}

.lbk-btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.lbk-btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.lbk-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(135deg, #999 0%, #666 100%);
}

/* ===================================
   Messages
   =================================== */

.lbk-messages {
    margin-top: 20px;
}

.lbk-message {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    animation: slideDown 0.5s ease;
    cursor: pointer;
}

.lbk-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.lbk-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.lbk-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.lbk-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ===================================
   Queue Display
   =================================== */

.lbk-now-performing {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.lbk-now-performing::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.lbk-now-performing h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.lbk-performer-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
}

.lbk-song-info {
    font-size: 20px;
    opacity: 0.95;
    position: relative;
}

.lbk-no-current {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* ===================================
   Queue List
   =================================== */

.lbk-up-next {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.lbk-up-next h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.lbk-queue-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lbk-queue-item {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.lbk-queue-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.lbk-queue-item.lbk-next-up {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    border-left-color: #28a745;
}

.lbk-queue-number {
    width: 40px;
    height: 40px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
    font-size: 18px;
}

.lbk-queue-details {
    flex: 1;
}

.lbk-performer {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.lbk-song {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.lbk-wait-time {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.lbk-no-queue {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

/* ===================================
   Loading States
   =================================== */

.lbk-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.lbk-loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

/* ===================================
   Animations
   =================================== */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* ===================================
   Form Validation
   =================================== */

.field-error {
    color: #dc3232;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

input.error,
.lbk-form-control.error {
    border-color: #dc3232 !important;
}

/* ===================================
   Utility Classes
   =================================== */

.lbk-text-center {
    text-align: center;
}

.lbk-mt-20 {
    margin-top: 20px;
}

.lbk-mb-20 {
    margin-bottom: 20px;
}

/* ===================================
   Mobile Responsive
   =================================== */

@media (max-width: 768px) {
    .lbk-signup-form,
    .lbk-queue-display {
        padding: 15px;
    }
    
    .lbk-performer-name {
        font-size: 24px;
    }
    
    .lbk-song-info {
        font-size: 16px;
    }
    
    .lbk-genre-filters {
        justify-content: center;
    }
    
    .lbk-filter {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .lbk-btn-submit {
        width: 100%;
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .lbk-queue-item {
        padding: 15px;
    }
    
    .lbk-queue-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
        margin-right: 15px;
    }
    
    .lbk-song-item {
        padding: 12px;
    }
    
    .lbk-song-title {
        font-size: 16px;
    }
    
    .lbk-song-artist {
        font-size: 13px;
    }
    
    .lbk-now-performing {
        padding: 20px;
    }
    
    .lbk-up-next {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .lbk-genre-filters {
        flex-direction: column;
    }
    
    .lbk-filter {
        width: 100%;
        text-align: center;
    }
    
    .lbk-queue-item {
        position: relative;
        padding-left: 50px;
    }
    
    .lbk-queue-number {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
    .lbk-btn-submit,
    .lbk-genre-filters,
    .lbk-form-submit,
    .lbk-messages {
        display: none !important;
    }
    
    .lbk-queue-display {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .lbk-now-performing {
        background: #f0f0f0 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
    }
}