/* 
   ==========================================================================
   SIDEBAR CSS - Các Micro-blocks của Cột Trái (Static Control Station)
   ========================================================================== 
*/

/* Reset list */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Base style cho các khối nhỏ */
.micro-block {
    width: 100%;
}

/* Các viền phân cách đen chìm */
.micro-block:not(:last-child) {
    border-bottom: 2px solid rgba(0, 0, 0, 0.6);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
    /* Highlight line tạo rãnh */
    padding-bottom: 20px;
    margin-bottom: 20px;
}

/* 
   1. KHỐI THỜI GIAN (TIMER BLOCK)
*/


#timer-block h3 {
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 700;
}

.countdown {
    font-size: 38px;
    font-weight: 700;
    color: var(--gold-bright);
    line-height: 1;
    margin-bottom: 5px;
    /* Hiệu ứng tỏa sáng số đồng hồ */
    text-shadow: 0 0 15px rgba(253, 224, 139, 0.4);
}

.countdown-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 
   2. KHỐI TRẠNG THÁI SERVER (STATUS BLOCK)
*/
#server-status {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.server-item {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.server-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.3);
}

.ping-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    /* Viền kim loại mỏng bao quanh viên ngọc */
    border: 2px solid rgba(212, 175, 55, 0.4);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.8);
    /* Độ sâu bóng đổ bên trong viền */
}

/* Viên ngọc Xanh Phát Sáng Nhiều Lớp (Magic Orb) */
.ping-indicator.online {
    background: radial-gradient(circle at 30% 30%, #a8ffb2 0%, #00ff2a 40%, #004d0d 80%, #000 100%);
    box-shadow:
        0 0 10px rgba(0, 255, 42, 0.5),
        /* Lớp sáng nhẹ chìm */
        0 0 20px rgba(0, 255, 42, 0.3),
        /* Lớp sáng tỏa ngoài */
        inset 0 0 5px rgba(0, 0, 0, 0.8);
    /* Bóng râm viền trong */
}

/* Viên ngọc Đỏ Phát Sáng Nhiều Lớp */
.ping-indicator.offline {
    background: radial-gradient(circle at 30% 30%, #ffb2b2 0%, #ff0000 40%, #4d0000 80%, #000 100%);
    box-shadow:
        0 0 10px rgba(255, 0, 0, 0.5),
        0 0 20px rgba(255, 0, 0, 0.3),
        inset 0 0 5px rgba(0, 0, 0, 0.8);
}

.server-info {
    flex-grow: 1;
}

.server-name {
    font-size: 14px;
    font-weight: 700;
}

.server-date {
    font-size: 11px;
    color: var(--text-muted);
}

.online-count {
    text-align: right;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

.online-count small {
    font-size: 10px;
    font-weight: 400;
    text-transform: lowercase;
}

/* 
   3. KHỐI NÚT HÀNH ĐỘNG (CTA BLOCK)
*/
#action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-btn {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    padding: 0 15px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-btn:hover {
    transform: translateY(-2px);
    /* Nổi lên khi liếm */
}

.action-btn:active {
    transform: translateY(1px);
    /* Lún xuống khi bấm */
}

.btn-icon {
    width: 32px;
    height: 32px;
    margin-right: 15px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.btn-text {
    display: flex;
    flex-direction: column;
}

.btn-title {
    font-family: var(--font-cinzel);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
}

.btn-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}

/* Gradient kim loại cho nút Vàng chìm khối đổ bóng sâu */
.btn-gold {
    background: var(--metallic-gold);
    color: #fff;
    border: 2px solid transparent;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -3px 5px rgba(0, 0, 0, 0.5), 0 5px 10px rgba(0, 0, 0, 0.9);
}

.btn-gold .btn-title {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.btn-gold .btn-sub {
    color: #ffd;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
}

.btn-gold:hover {
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), inset 0 -3px 5px rgba(0, 0, 0, 0.5), 0 8px 15px rgba(212, 175, 55, 0.3);
}


/* Nút Download kim loại tối màu */
.btn-dark {
    background: linear-gradient(to bottom, #5a5a5a 0%, #2f2f2f 50%, #1a1a1a 51%, #3b3b3b 100%);
    border: 1px solid #1a1a1a;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), inset 0 -3px 5px rgba(0, 0, 0, 0.8), 0 5px 10px rgba(0, 0, 0, 0.6);
}

.btn-dark .btn-title {
    color: var(--gold-primary);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.btn-dark:hover {
    border-color: #3b3b3b;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), inset 0 -3px 5px rgba(0, 0, 0, 0.8), 0 5px 15px rgba(212, 175, 55, 0.3);
}


/* 
   4. KHỐI TIỆN ÍCH (WIDGETS BLOCK)
*/
#community-widgets {
    display: flex;
    flex-direction: column;
}

.widget-title {
    font-size: 13px;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 1px;
}

.message-list {
    margin-bottom: 20px;
}

.message-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.msg-icon {
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="10" cy="10" r="10" fill="rgba(212,175,55,0.2)"/><circle cx="10" cy="10" r="4" fill="%23D4AF37"/></svg>') no-repeat center;
    margin-right: 15px;
    flex-shrink: 0;
}

.msg-content {
    display: flex;
    flex-direction: column;
}

.msg-title {
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    /* Cắt chuỗi nếu quá dài */
}

.msg-author {
    font-size: 10px;
    color: var(--text-muted);
}

/* Stream Widget */
.stream-status {
    margin-top: auto;
    /* Chiếm dưới cùng */
    padding: 20px 0;
    text-align: center;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px inset rgba(255, 255, 255, 0.05);
}

.stream-text {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.stream-state {
    font-size: 18px;
    letter-spacing: 2px;
}