/* Tema renkleri */
/* ===================================================
   DOSYA: public/css/theme.css
   YOL: C:\xampp\htdocs\averon\public\css\theme.css
   AVERON özel tema renkleri ve efektleri
   =================================================== */

/* ===== AVERON THEME VARIABLES ===== */
:root {
    /* Primary Colors */
    --averon-purple: #5865f2;
    --averon-purple-dark: #4752c4;
    --averon-purple-light: #6e78ff;
    
    /* Accent Colors */
    --averon-red: #ed4245;
    --averon-green: #57f287;
    --averon-yellow: #fee75c;
    --averon-blue: #00b0f4;
    
    /* Status Colors */
    --status-online: #43b581;
    --status-idle: #faa61a;
    --status-dnd: #f04747;
    --status-offline: #747f8d;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
    --gradient-success: linear-gradient(135deg, #43b581 0%, #57f287 100%);
}

/* ===== STATUS INDICATORS ===== */
.status {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status.online {
    background: var(--status-online);
    box-shadow: 0 0 6px var(--status-online);
}

.status.idle {
    background: var(--status-idle);
    box-shadow: 0 0 6px var(--status-idle);
}

.status.dnd {
    background: var(--status-dnd);
    box-shadow: 0 0 6px var(--status-dnd);
}

.status.offline {
    background: var(--status-offline);
}

/* ===== AVATAR STYLES ===== */
.avatar-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--averon-purple);
}

.avatar-md {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--averon-purple);
}

.avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--averon-purple);
}

/* ===== GRADIENT BACKGROUNDS ===== */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-success {
    background: var(--gradient-success);
}

/* ===== MESSAGE STYLES ===== */
.message-system {
    background: rgba(88, 101, 242, 0.1);
    border-left: 3px solid var(--averon-purple);
    padding: 8px 12px;
    border-radius: 4px;
    margin: 12px 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.message-mention {
    background: rgba(88, 101, 242, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
    color: var(--averon-purple-light);
    font-weight: 600;
}

.message-code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.message-code-block {
    background: var(--bg-tertiary);
    padding: 12px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    overflow-x: auto;
    margin: 8px 0;
}

/* ===== EMBED STYLES ===== */
.message-embed {
    background: var(--bg-secondary);
    border-left: 4px solid var(--averon-purple);
    border-radius: 4px;
    padding: 12px;
    margin-top: 8px;
    max-width: 400px;
}

.embed-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.embed-description {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.embed-field {
    margin-top: 8px;
    font-size: 13px;
}

.embed-field-name {
    font-weight: 600;
    color: var(--text-primary);
}

.embed-field-value {
    color: var(--text-secondary);
}

/* ===== BUTTON THEMES ===== */
.btn-primary {
    background: var(--averon-purple);
    color: white;
}

.btn-primary:hover {
    background: var(--averon-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background: var(--status-online);
    color: white;
}

.btn-success:hover {
    background: #2d9e6f;
    box-shadow: 0 4px 12px rgba(67, 181, 129, 0.4);
}

.btn-danger {
    background: var(--averon-red);
    color: white;
}

.btn-danger:hover {
    background: #d83c35;
    box-shadow: 0 4px 12px rgba(237, 66, 69, 0.4);
}

/* ===== INPUT FOCUS EFFECTS ===== */
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--averon-purple);
    box-shadow: 0 0 8px rgba(88, 101, 242, 0.3);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

.bounce {
    animation: bounce 1s infinite;
}

.shimmer {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* ===== TYPING INDICATOR ===== */
.typing-indicator {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--averon-purple);
    animation: pulse 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* ===== HOVER EFFECTS ===== */
.channel-item:hover::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--text-primary);
    border-radius: 0 2px 2px 0;
    margin-right: -8px;
    opacity: 0;
    animation: slideIn 0.2s ease-out forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        width: 0;
    }
    to {
        opacity: 1;
        width: 4px;
    }
}

/* ===== NOTIFICATION BADGE ===== */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--averon-red);
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* ===== MENTION HIGHLIGHT ===== */
.mention-highlight {
    background: rgba(88, 101, 242, 0.3);
    border-left: 3px solid var(--averon-purple);
    padding-left: 8px;
}

/* ===== REACTION STYLES ===== */
.reaction {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--bg-tertiary);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 4px;
    margin-top: 4px;
}

.reaction:hover {
    background: var(--averon-purple);
    color: white;
}

.reaction.active {
    background: var(--averon-purple);
    color: white;
}

/* ===== CONTEXT MENU ===== */
.context-menu {
    position: fixed;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 1001;
    min-width: 180px;
}

.context-menu-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.context-menu-item:hover {
    background: var(--averon-purple);
    color: white;
}

.context-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* ===== LOADING STATE ===== */
.loading-spinner {
    border: 3px solid var(--bg-tertiary);
    border-top: 3px solid var(--averon-purple);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== TOOLTIP ===== */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    text-align: center;
    padding: 6px 10px;
    border-radius: 4px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -50px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    white-space: nowrap;
    border: 1px solid var(--border);
}

.tooltip .tooltiptext::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--bg-tertiary) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}