/*
Theme Name: EnvoysRealm Discord
Description: Discord-inspired theme matching the wiki styling
Version: 1.0
Author: EnvoysRealm
*/

/* Discord-inspired Base Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: #2f3349;
    color: #dc2626;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Discord-style Server Bar (Left) */
.server-bar {
    position: fixed;
    left: 0;
    top: 0;
    width: 72px;
    height: 100vh;
    background: #202225;
    border-right: 2px solid #4c1d95;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    z-index: 1000;
}

.server-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4c1d95, #dc2626);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: border-radius 0.2s ease;
    position: relative;
}

.server-icon:hover {
    border-radius: 16px;
    background: linear-gradient(135deg, #dc2626, #4c1d95);
}

.server-icon.active {
    border-radius: 16px;
}

.server-icon.active::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #dc2626;
    border-radius: 0 4px 4px 0;
}

/* Discord-style Channel List (Left Sidebar) */
.channel-sidebar {
    position: fixed;
    left: 72px;
    top: 0;
    width: 240px;
    height: 100vh;
    background: #2f3136;
    border-right: 2px solid #4c1d95;
    overflow-y: auto;
    z-index: 999;
}

.server-header {
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid #4c1d95;
    display: flex;
    align-items: center;
    background: #36393f;
    color: #4c1d95;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
}

.server-header:hover {
    background: rgba(220, 38, 38, 0.1);
}

.channel-list {
    padding: 16px 0;
}

.channel-category {
    padding: 0 16px 4px 16px;
    font-size: 12px;
    font-weight: 600;
    color: #4c1d95;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-top: 16px;
}

.channel-item {
    padding: 6px 16px;
    margin: 1px 8px;
    border-radius: 4px;
    color: #dc2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.channel-item:hover {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.channel-item.active {
    background: rgba(220, 38, 38, 0.2);
    color: #dc2626;
    border-left: 3px solid #dc2626;
}

.channel-item::before {
    content: '#';
    margin-right: 6px;
    color: #4c1d95;
    font-weight: bold;
}

/* Main Content Area */
.main-content {
    margin-left: 312px; /* 72px + 240px */
    min-height: 100vh;
    background: #2f3349;
}

/* Discord-style Header */
.content-header {
    height: 48px;
    background: #36393f;
    border-bottom: 1px solid #4c1d95;
    display: flex;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 1px 0 rgba(4, 4, 5, 0.2), 0 1.5px 0 rgba(6, 6, 7, 0.05), 0 2px 0 rgba(4, 4, 5, 0.05);
}

.channel-name {
    color: #4c1d95;
    font-weight: 600;
    font-size: 16px;
    margin-right: auto;
}

.channel-name::before {
    content: '#';
    margin-right: 4px;
    color: #dc2626;
}

/* Content Section */
.content-section {
    padding: 20px;
    max-width: 1200px;
}

/* Discord-style Welcome Card */
.welcome-card {
    background: #36393f;
    border: 1px solid #4c1d95;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
}

.welcome-title {
    color: #4c1d95;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 0 15px rgba(76, 29, 149, 0.6);
    border-bottom: 2px solid #dc2626;
    padding-bottom: 8px;
}

.welcome-subtitle {
    color: #dc2626;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Discord-style Button Grid */
.portal-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.portal-button {
    background: #4c1d95;
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid #3730a3;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: 16px;
}

.portal-button:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.portal-button::before {
    margin-right: 12px;
    font-size: 20px;
}

.portal-button.admin::before { content: '⚙️'; }
.portal-button.portal::before { content: '🚪'; }
.portal-button.wiki::before { content: '📚'; }

/* Discord-style Message/Content Area */
.content-messages {
    background: #36393f;
    border: 1px solid #4c1d95;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.message-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(76, 29, 149, 0.2);
}

.message-item:last-child {
    border-bottom: none;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.message-author {
    color: #4c1d95;
    font-weight: 700;
    margin-right: 8px;
}

.message-timestamp {
    color: #72767d;
    font-size: 12px;
}

.message-content {
    color: #dc2626;
    line-height: 1.375;
}

/* Responsive Design */
@media (max-width: 768px) {
    .server-bar {
        width: 100%;
        height: 56px;
        flex-direction: row;
        justify-content: center;
        position: relative;
    }
    
    .channel-sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 56px;
    }
    
    .portal-buttons {
        grid-template-columns: 1fr;
    }
} 