/* ===== ESTILOS PARA CHAT E NOTIFICAÇÕES ===== */

/* Grid de Chat e Notificações */
.chat-notifications-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 1024px) {
    .chat-notifications-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== CHAT DO JOGO ===== */

.chat-card {
    background: var(--card-bg, rgba(30, 30, 30, 0.8));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 600px;
}

.chat-channels {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.chat-channel-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.chat-channel-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
}

.chat-channel-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #fff;
    font-weight: 600;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    display: flex;
    flex-direction: column-reverse;
    gap: 0.75rem;
}

.chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.chat-message {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    animation: slideIn 0.3s ease;
}

.chat-message.self {
    background: linear-gradient(135deg, #667eea33 0%, #764ba233 100%);
    border-left: 3px solid #667eea;
    margin-left: auto;
    max-width: 80%;
}

.chat-message.other {
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    max-width: 80%;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.channel-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 600;
}

.channel-badge.global {
    background: #3498db33;
    color: #3498db;
}

.channel-badge.group {
    background: #2ecc7133;
    color: #2ecc71;
}

.channel-badge.clan {
    background: #e74c3c33;
    color: #e74c3c;
}

.message-sender {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.message-time {
    margin-left: auto;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
}

.message-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    word-wrap: break-word;
}

.message-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.message-actions button {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.message-actions button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.chat-input-container {
    display: flex;
    gap: 0.75rem;
}

.chat-input-wrapper {
    flex: 1;
    position: relative;
}

.chat-input-wrapper input {
    width: 100%;
    padding: 1rem;
    padding-right: 4rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.chat-input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(0, 0, 0, 0.4);
}

.char-counter {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.btn-send-chat {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-send-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-send-chat:active {
    transform: translateY(0);
}

.chat-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    color: #3498db;
    font-size: 0.85rem;
}

/* ===== NOTIFICAÇÕES ===== */

.notifications-card {
    background: var(--card-bg, rgba(30, 30, 30, 0.8));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 600px;
}

.unread-badge {
    background: #e74c3c;
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: auto;
}

.notif-filters {
    display: flex;
    gap: 0.5rem;
}

.notif-filter-btn {
    flex: 1;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.notif-filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.notif-filter-btn.active {
    background: rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    color: #fff;
}

.notifications-panel {
    flex: 1;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 1rem;
}

.history-notif-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 3px solid;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-notif-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(3px);
}

.history-notif-item.unread {
    background: rgba(102, 126, 234, 0.15);
    border-left-color: #667eea;
}

.history-notif-item.read {
    opacity: 0.7;
}

.history-notif-item.success {
    border-left-color: #2ecc71;
}

.history-notif-item.error {
    border-left-color: #e74c3c;
}

.history-notif-item.warning {
    border-left-color: #f39c12;
}

.history-notif-item.info {
    border-left-color: #3498db;
}

.notif-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-message {
    margin: 0 0 0.25rem 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.notif-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

.notif-dismiss-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.2s ease;
}

.notif-dismiss-btn:hover {
    color: #e74c3c;
}

.no-notifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
}

.notif-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-notif-action {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-notif-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ===== CONFIGURAÇÕES ===== */

.chat-settings-card {
    background: var(--card-bg, rgba(30, 30, 30, 0.8));
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: 15px;
    padding: 1.5rem;
}

.chat-settings-card h3 {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.setting-item label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.setting-item label:hover {
    background: rgba(255, 255, 255, 0.08);
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* ===== INDICADORES ===== */

.online-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: rgba(46, 204, 113, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: #2ecc71;
    margin-left: auto;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #2ecc71;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e74c3c;
    color: #fff;
    padding: 0.2rem 0.4rem;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

/* ===== ANIMAÇÕES ===== */

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== SCROLLBAR CUSTOMIZADA ===== */

.chat-messages::-webkit-scrollbar,
.notifications-panel::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track,
.notifications-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb,
.notifications-panel::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover,
.notifications-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== RESPONSIVO ===== */

@media (max-width: 768px) {
    .chat-card,
    .notifications-card {
        height: auto;
        min-height: 400px;
    }

    .chat-messages {
        min-height: 300px;
    }

    .chat-channels {
        flex-wrap: wrap;
    }

    .chat-channel-btn span {
        display: none;
    }

    .chat-channel-btn {
        padding: 0.75rem;
    }

    .btn-send-chat span {
        display: none;
    }

    .settings-grid {
        grid-template-columns: 1fr;
    }
}

