﻿/* Sidebar Components */
.sidebar {
    width: 180px;
}

.sidebar-left, .sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-module {
    background: rgba(0, 0, 0, 0.8);
    border: 0;
    border-radius: 0;
    overflow: hidden;
}

.menu-header {
    
    /* cor de fallback */
    background-color: #1a1815;

  /* gradiente */
    background-image: linear-gradient(90deg, #1a1715 0%, #5a4832 50%, #1a1815 100%);
    color: #CCCCCC;
    height: 41px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    cursor: pointer;
    border: 1px solid #010e17;
    box-shadow: 0px 0px 11px #000000;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    /* Prevenir "dança" no hover */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Hover APENAS na sidebar-left */
.sidebar-left .menu-header:hover {background-color: #1a1815;

  /* gradiente */
    
background-image: linear-gradient(90deg, #1a1715 0%, #725232 50%, #1a1715 100%);
}

.menu-header.active {
    
/* cor de fallback */
    
background-color: #1a1815;

  /* gradiente */
    
background-image: linear-gradient(90deg, #1a1715 0%, #725232 50%, #1a1715 100%);
}

.menu-header::after {
    content: "▼";
    position: absolute;
    right: 10px;
    transition: transform 0.3s ease-in-out;
    font-size: 10px;
    will-change: transform;
    transform: translateZ(0);
    display: none;
    -webkit-transform: translateZ(0);
}

.menu-header.active::after {
    transform: rotate(180deg);
}

.menu-icon {
    width: 30px;
    height: 27px;
    margin-right: 8px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.menu-title {
    font-weight: bold;
    font-size: 14px;
}

.menu-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
    background: rgba(0, 0, 0, 0.9);
    padding: 0 10px;
    will-change: max-height, opacity, padding;
    /* Ativar aceleração por hardware */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.menu-header.active + .menu-content,
.menu-content.menu-open {
    max-height: 1000px;
    opacity: 1;
    padding: 10px;
}

.menu-content.menu-closed {
    max-height: 0;
    opacity: 0;
    padding: 0 10px;
}

.menu-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-links li {
    margin: 5px 0;
    padding: 3px 0;
    border-bottom: 1px solid #333;
}

.menu-links li:last-child {
    border-bottom: none;
}

.menu-links a {
    color: #d1d1d1;
    font-size: 10px;
    transition: color 0.3s ease;
}

.menu-links a:hover {
    color: white;
    text-shadow: 1px 1px #000;
}

/* Icons especÃ­ficos */
.icon-news {
    background-image: url('../images/menu/icon-news.gif');
}

.icon-market {
    background-image: url('../images/menu/icon-market.gif');
}

.icon-account {
    background-image: url('../images/menu/icon-account.gif');
}

.icon-community {
    background-image: url('../images/menu/icon-community.gif');
}

.icon-library {
    background-image: url('../images/menu/icon-library.gif');
}

.icon-shop {
    background-image: url('../images/menu/icon-shop.gif');
}

.icon-boost {
    background-image: url('../images/menu/icon-boost.gif');
}

.icon-info {
    background-image: url('../images/menu/icon-info.gif');
}

.icon-search {
    background-image: url('../images/menu/icon-search.gif');
}

.icon-social {
    background-image: url('../images/menu/icon-social.gif');
}

.icon-toplevel {
    background-image: url('../images/menu/icon-toplevel.gif');
}

.icon-powergamers {
    background-image: url('../images/menu/icon-powergamers.gif');
}

.icon-topguilds {
    background-image: url('../images/menu/icon-topguilds.gif');
}

/* Search Form */
.search {
    width: 100%;
    padding: 5px;
    border: 1px solid #666;
    background: #333;
    color: white;
    border-radius: 3px;
    font-size: 10px;
}

.search-button {
    background: linear-gradient(90deg, rgb(68 55 40) 0%, rgb(65 38 7) 35%, rgb(137 92 24) 100%);
    color: white;
    border: 1px solid #5e3100;
    padding: 5px 15px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 10px;
    margin-top: 5px;
}

.search-button:hover {
    background: linear-gradient(90deg, rgb(78 65 50) 0%, rgb(75 48 17) 35%, rgb(147 102 34) 100%);
}

/* Tables in sidebar */
.sidebar table {
    width: 100%;
    font-size: 9px;
}

.sidebar table td {
    padding: 2px 4px;
    border: 1px solid #333;
}

.white {
    color: white;
}

/* Shared content wrapper for main pages */
.content-area {
    padding: 0px;
    min-height: 400px;
    overflow: visible;
    display: block;
    margin: 0;
    background: #1a1f26;
    border: 2px solid #2a3440;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
}

/* Standard page section header (bilingual donation header style) */
.donate-head, .page-head {
    padding: 18px 22px;
    border-bottom: 2px solid #2a3440;
    background: #12161b;
    border-radius: 10px 10px 0 0;
    color: #e6f8ff;
    font-weight: 700;
    letter-spacing: .3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Inner padding for content-area */
.content-body {
    padding: 22px;
}
