/* Rave Icon Styles */
.rave-icon {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: var(--gradient-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 1000;
}

.rave-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.rave-icon .icon {
    font-size: 32px;
    line-height: 1;
}

.rave-icon.animated {
    animation: clap 1s infinite;
}

@keyframes clap {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.rave-icon.sparkle {
    animation: sparkle 2s ease-in-out;
}

@keyframes sparkle {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.5) drop-shadow(0 0 10px gold); }
}

.rave-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    padding: 0 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Rave Submission Dialog Styles */
.rave-submission-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.rave-submission-dialog {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.dialog-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: #f0f0f0;
}

.dialog-content {
    padding: 20px;
}

.player-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.player-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}

.player-card:hover {
    border-color: var(--color-purple-start);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.player-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.player-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-number {
    font-weight: bold;
    color: var(--color-purple-start);
}

.player-name {
    font-size: 14px;
    color: #333;
}

.rave-input-section {
    margin-top: 15px;
}

.rave-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    resize: vertical;
    margin: 15px 0 8px 0;
    font-family: inherit;
}

.rave-textarea:focus {
    outline: none;
    border-color: var(--color-purple-start);
}

.character-counter {
    text-align: right;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.character-counter .text-danger {
    color: #ff4444;
}

.dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--gradient-purple);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Success Animation */
.success-animation {
    text-align: center;
    padding: 40px 20px;
}

.confetti {
    font-size: 60px;
    animation: confettiDrop 1s ease-out;
}

@keyframes confettiDrop {
    0% {
        transform: translateY(-50px) scale(0);
        opacity: 0;
    }
    50% {
        transform: translateY(0) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.clapping-hands {
    font-size: 80px;
    margin: 20px 0;
    animation: clap 0.5s infinite;
}

.success-animation h3 {
    font-size: 28px;
    color: var(--color-purple-start);
    margin-top: 20px;
}

@media (max-width: 768px) {
    .rave-submission-dialog {
        width: 95%;
        max-height: 90vh;
    }

    .player-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }

    .player-card img {
        width: 60px;
        height: 60px;
    }

    .rave-icon {
        bottom: 15px;
        left: 15px;
        width: 50px;
        height: 50px;
    }

    .rave-icon .icon {
        font-size: 28px;
    }
}

/* Rave Viewer Overlay Styles */
.rave-viewer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s;
}

.rave-viewer-content {
    background: var(--gradient-purple);
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    padding: 40px;
    padding-bottom: 105px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s;
    color: white;
}

.rave-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.rave-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.rave-player-section {
    text-align: center;
    margin-bottom: 30px;
}

.rave-player-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 15px;
}

.rave-player-photo-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    border: 4px solid white;
    margin-bottom: 15px;
}

.rave-player-name {
    font-size: 28px;
    font-weight: bold;
    margin: 10px 0 5px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.rave-player-number {
    font-size: 18px;
    opacity: 0.9;
}

.rave-quote-section {
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 30px 40px;
    margin: 30px 0;
    backdrop-filter: blur(10px);
}

.rave-quote-mark {
    font-size: 80px;
    font-family: Georgia, serif;
    opacity: 0.4;
    line-height: 0;
}

.rave-quote-mark.opening {
    position: absolute;
    top: 32px;
    left: 12px;
}

.rave-quote-mark.closing {
    position: absolute;
    bottom: 2px;
    right: 12px;
}

.rave-quote-text {
    font-size: 20px;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    font-style: italic;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rave-reactions-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.rave-reaction-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.rave-reaction-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.rave-reaction-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.rave-reaction-btn.active {
    background: rgba(255, 255, 255, 0.4);
    border-color: white;
    animation: reactionPulse 0.3s;
}

@keyframes reactionPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.reaction-emoji {
    font-size: 24px;
    line-height: 1;
}

.reaction-count {
    font-size: 18px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.rave-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    gap: 1rem;
}

.rave-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    text-transform: none;
    letter-spacing: 0;
    flex: 0 0 auto;
    min-height: 36px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    order: 1;
}

.rave-nav-btn:first-child {
    order: 1;
}

.rave-nav-btn:last-child {
    order: 3;
}

.rave-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.rave-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.rave-nav-btn .btn-arrow {
    font-size: 1rem;
    font-weight: bold;
}

.rave-counter {
    flex: 0 0 auto;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    order: 2;
}

/* No raves message */
.no-raves-message {
    text-align: center;
    padding: 60px 20px;
}

.no-raves-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-raves-message h3 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: bold;
}

.no-raves-message p {
    font-size: 18px;
    opacity: 0.9;
    margin: 0 0 25px 0;
}

/* Floating Submit Button */
.rave-submit-fab {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-purple-start);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
}

.rave-submit-fab:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.fab-icon {
    font-size: 20px;
    line-height: 1;
}

/* Show text on hover */
.rave-submit-fab:hover .fab-text {
    display: inline;
}

/* Mobile responsive styles for viewer */
@media (max-width: 768px) {
.rave-viewer-content {
    width: 95%;
    padding: 30px 20px;
    padding-bottom: 105px;
}

    .rave-player-photo,
    .rave-player-photo-placeholder {
        width: 80px;
        height: 80px;
    }

    .rave-player-name {
        font-size: 24px;
    }

    .rave-quote-section {
        padding: 25px 30px;
    }

    .rave-quote-text {
        font-size: 18px;
    }

    .rave-quote-mark {
        font-size: 50px;
    }

    .rave-reactions-section {
        gap: 15px;
        flex-wrap: wrap;
    }

    .rave-reaction-btn {
        padding: 10px 15px;
    }

    .reaction-emoji {
        font-size: 20px;
    }

    .reaction-count {
        font-size: 16px;
    }

    .rave-navigation {
        margin-top: 20px;
        padding-top: 15px;
        gap: 0.8rem;
    }

    .rave-nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .rave-counter {
        font-size: 0.85rem;
        padding: 0.4rem 0.7rem;
    }

    .btn-arrow {
        font-size: 0.9rem;
    }

    /* Mobile FAB - always show text on small screens */
    .rave-submit-fab {
        bottom: 20px;
        right: 20px;
        padding: 10px 18px;
    }

    .fab-text {
        display: inline;
        font-size: 14px;
    }

    .fab-icon {
        font-size: 18px;
    }

    .no-raves-icon {
        font-size: 60px;
    }

    .no-raves-message h3 {
        font-size: 24px;
    }

    .no-raves-message p {
        font-size: 16px;
    }
}

/* Rave Management Panel Styles */
.rave-management-panel {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin: 20px 0;
}

.rave-management-panel.empty-state {
    padding: 60px 24px;
    text-align: center;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.panel-title .icon {
    font-size: 28px;
}

.pending-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: white;
    font-size: 14px;
    font-weight: 700;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 14px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.btn-refresh {
    background: #f3f4f6;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 20px;
}

.btn-refresh:hover:not(:disabled) {
    background: #e5e7eb;
    transform: scale(1.05);
}

.btn-refresh:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-refresh .spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Raves List */
.raves-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rave-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: all 0.2s;
}

.rave-card:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.rave-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-purple-start);
}

.player-photo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--color-purple-start);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.player-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.player-name {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.player-number {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-purple-start);
}

.rave-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.submitted-time {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 500;
}

/* Rave Content */
.rave-content {
    margin: 16px 0;
}

.rave-quote {
    background: white;
    border-left: 4px solid var(--color-purple-start);
    padding: 16px 20px;
    border-radius: 8px;
    position: relative;
}

.quote-mark {
    color: #d1d5db;
    font-size: 32px;
    font-family: Georgia, serif;
    line-height: 0;
}

.quote-mark:first-child {
    position: absolute;
    top: 12px;
    left: 8px;
}

.quote-mark:last-child {
    position: absolute;
    bottom: 0;
    right: 8px;
}

.rave-text {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
    padding: 0 20px;
    font-style: italic;
}

/* Actions */
.rave-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn-approve,
.btn-reject {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-approve {
    background: #10b981;
    color: white;
}

.btn-approve:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-reject {
    background: #ef4444;
    color: white;
}

.btn-reject:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-approve:disabled,
.btn-reject:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 18px;
    line-height: 1;
}

.btn-text {
    font-size: 15px;
}

/* Processing Overlay */
.processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: var(--color-purple-start);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Empty State */
.empty-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.empty-icon {
    font-size: 64px;
    opacity: 0.7;
}

.empty-message h4 {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.empty-message p {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .rave-management-panel {
        padding: 16px;
        margin: 16px 0;
    }

    .panel-title {
        font-size: 20px;
    }

    .panel-title .icon {
        font-size: 24px;
    }

    .player-photo,
    .player-photo-placeholder {
        width: 40px;
        height: 40px;
    }

    .player-name {
        font-size: 16px;
    }

    .player-number {
        font-size: 13px;
    }

    .rave-text {
        font-size: 15px;
        padding: 0 15px;
    }

    .rave-actions {
        flex-direction: column;
    }

    .btn-approve,
    .btn-reject {
        width: 100%;
    }
}



