/* Temporary User Styles */

.temp-user-banner {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-size: 14px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.temp-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.message-counter {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
}

.temp-user-limit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.limit-modal-content {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    max-width: 400px;
    text-align: center;
    animation: slideUp 0.3s ease;
}

.limit-modal-content h3 {
    color: #00b4d8;
    margin-bottom: 20px;
    font-size: 24px;
}

.limit-modal-content p {
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.6;
}

.limit-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

.limit-modal-actions button {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.limit-modal-actions .btn-primary {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: white;
}

.limit-modal-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 180, 216, 0.4);
}

.limit-modal-actions .btn-secondary {
    background: transparent;
    color: #999;
    border: 1px solid #444;
}

.limit-modal-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Hide login modal for temp users */
body.temp-user-active #login-form {
    display: none !important;
}

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

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

/* Mobile responsive temp user banner */
@media (max-width: 768px) {
    .temp-user-banner {
        display: none; /* Hide banner on mobile to save space */
    }
    
    /* Reset body padding when banner is hidden */
    body {
        padding-top: 0 !important;
    }
}

/* For tablets and larger phones, make banner more compact */
@media (max-width: 1024px) and (min-width: 769px) {
    .temp-user-banner {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .message-counter {
        padding: 3px 10px;
        font-size: 12px;
    }
    
    .temp-user-banner button {
        padding: 4px 12px !important;
        font-size: 12px !important;
    }
}