/* Importação das fontes personalizadas */
@import url('https://fonts.googleapis.com/css2?family=El+Messiri:wght@400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css');

/* Paleta de cores atualizada:
   - Background: #151519
   - Fonte header: #FDDA9A
   - Detalhes: #222
*/

:root {
    --bg-primary: #151519;
    --text-header: #FDDA9A;
    --text-white: #fff;
    --accent-dark: #222;
    --hover-bg: rgba(253, 218, 154, 0.1);
}

/* Cursor personalizado */
html, body, * {
    cursor: url('/static/cursor/cursor_2.cur'), auto !important;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border: 1px solid var(--text-header);
}

::-webkit-scrollbar-thumb {
    background: var(--text-header);
    border-radius: 6px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: #d4af37;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    min-width: 0;
}

body {
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    color: var(--text-white);
    font-family: 'El Messiri', Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* FontAwesome Icons customization */
.fa, .fas, .far, .fal, .fab {
    margin-right: 0.5rem;
}

/* Header Styles */
.header {
    background: var(--bg-primary);
    border-bottom: 3px solid var(--text-header);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 75px;
    position: relative;
    z-index: 1000;
}

.header .logo {
    height: 50px;
    display: flex;
    align-items: center;
}

.header .logo img {
    height: 50px;
    width: auto;
    max-width: 200px;
}

.header .menu {
    display: flex;
    gap: 18px;
    margin-left: 12px;
    align-items: center;
    flex: 0 1 auto;
}

.header .menu a {
    color: var(--text-header);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s, text-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.header .menu a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 4px;
    height: 2px;
    background: linear-gradient(90deg, #FDDA9A 0%, #fffbe6 100%);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.25s cubic-bezier(.4,0,.2,1);
    z-index: 1;
}

.header .menu a:hover, .header .menu a:focus {
    background: none;
    color: #fffbe6;
    text-shadow: 0 0 8px #FDDA9A, 0 0 16px #FDDA9A;
}

.header .menu a:hover::after, .header .menu a:focus::after {
    transform: scaleX(1);
}

.header .right {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.header .auth-links {
    display: flex;
    gap: 1rem;
}

.header .auth-links a {
    color: var(--text-header);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header .auth-links a:hover {
    background: var(--text-header);
    color: var(--bg-primary);
    border-color: var(--text-header);
}

.fas, .fa {
    font-size: 1.1em;
    margin-right: 0.25em;
    vertical-align: middle;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-header);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    position: relative;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-header);
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Main Content */
main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 3;
}

main h1 {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-header);
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

main p {
    text-align: center;
    font-size: 1.2rem;
    margin-top: 1rem;
    color: var(--text-white);
}

/* Responsividade Bootstrap-style */

/* Large tablets and small desktops */
@media (max-width: 1200px) {
    .header {
        padding: 0 1.5rem;
    }
    .header .menu {
        gap: 1.5rem;
        margin-left: 1rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .header {
        padding: 0 1rem;
    }
    .header .menu {
        gap: 1rem;
        margin-left: 0.5rem;
    }
    .header .menu a {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }
    .header .right {
        gap: 1rem;
    }
}

/* Small tablets */
@media (max-width: 768px) {
    .header {
        flex-wrap: wrap;
        position: relative;
        padding: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }
    
    .logo {
        order: 1;
        flex: 1;
    }
    
    .menu {
        order: 3;
        width: 100%;
        flex-direction: column;
        background: var(--bg-primary);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        z-index: 999;
        border-top: 1px solid var(--text-header);
        padding: 0;
        gap: 0;
        margin: 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    }
    
    .menu.mobile-active {
        max-height: 500px;
        padding: 1rem 0;
    }
    
    .menu a {
        width: 100%;
        padding: 0.75rem 1.5rem;
        border-bottom: 1px solid rgba(253, 218, 154, 0.1);
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .menu a:last-child {
        border-bottom: none;
    }
    
    /* Divider antes dos botões de auth no mobile */
    .mobile-auth-divider {
        height: 1px;
        background: var(--text-header);
        margin: 0.5rem 1.5rem;
        opacity: 0.3;
    }
    
    /* Estilo especial para botões auth no menu mobile */
    .mobile-auth-link {
        background: rgba(253, 218, 154, 0.1) !important;
        font-weight: 700 !important;
        color: var(--text-header) !important;
    }
    
    .mobile-auth-link:hover {
        background: var(--text-header) !important;
        color: var(--bg-primary) !important;
    }
    
    /* Estilo especial para o username no mobile */
    .mobile-auth-link[href="/account"] {
        background: rgba(253, 218, 154, 0.2) !important;
        border: 1px solid rgba(253, 218, 154, 0.3) !important;
        font-weight: 800 !important;
    }
    
    /* Estilo para logout no mobile */
    .mobile-auth-link[href="/logout"] {
        background: rgba(220, 53, 69, 0.1) !important;
        color: #dc3545 !important;
        border: 1px solid rgba(220, 53, 69, 0.3) !important;
    }
    
    .mobile-auth-link[href="/logout"]:hover {
        background: #dc3545 !important;
        color: white !important;
    }
    
    /* Ocultar os botões auth separados no mobile */
    .right {
        display: none !important;
    }
    
    main h1 {
        font-size: 2rem;
        margin-top: 1rem;
    }
    
    /* Garantir que o menu não apareça por cima do conteúdo principal */
    main {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 0.75rem;
    }
    
    main {
        padding: 1rem;
    }
    
    main h1 {
        font-size: 1.75rem;
    }
    
    main p {
        font-size: 1.1rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    main h1 {
        font-size: 1.5rem;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* Forms */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--text-header);
    border-radius: 6px;
    background: var(--accent-dark);
    color: var(--text-white);
    font-family: 'El Messiri', Arial, sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--text-header);
    box-shadow: 0 0 0 3px rgba(253, 218, 154, 0.3);
    background: var(--bg-primary);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--text-header);
    background: transparent;
    color: var(--text-header);
    text-decoration: none;
    border-radius: 6px;
    font-family: 'El Messiri', Arial, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn:hover {
    background: var(--text-header);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 218, 154, 0.3);
}

.btn-primary {
    background: var(--text-header);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-header);
}

/* Media queries para telas maiores (desktop) */
@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .menu {
        display: flex !important;
        position: static !important;
        max-height: none !important;
        overflow: visible !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        flex-direction: row !important;
        width: auto !important;
    }
    
    /* Ocultar elementos mobile no desktop */
    .mobile-auth-divider,
    .mobile-auth-link {
        display: none !important;
    }
    
    /* Mostrar botões auth separados no desktop */
    .right {
        display: flex !important;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .header {
        padding: 0 16px;
    }
    .header .menu {
        gap: 12px;
        margin-left: 8px;
    }
}

.bg-video-container {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
    left: unset;
    right: unset;
    height: 600px;
    overflow: hidden;
    z-index: 0;
    margin-top: 0;
    box-sizing: border-box;
}
.bg-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    pointer-events: none;
    margin: 0;
    padding: 0;
    max-width: 100%;
    min-width: 0;
}
.wave-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
    z-index: 2;
}
.wave {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100px;
    background-repeat: repeat-x;
    opacity: 0.7;
}
.wave1 {
    background: url('data:image/svg+xml;utf8,<svg width="100%25" height="100" viewBox="0 0 1440 100" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 60 Q 360 120 720 60 T 1440 60 V100 H0Z" fill="%23151519"/></svg>');
    animation: waveMove 8s linear infinite;
    z-index: 2;
}
.wave2 {
    background: url('data:image/svg+xml;utf8,<svg width="100%25" height="100" viewBox="0 0 1440 100" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 80 Q 360 40 720 80 T 1440 80 V100 H0Z" fill="%23151519"/></svg>');
    opacity: 0.5;
    animation: waveMove2 12s linear infinite;
    z-index: 3;
}
@keyframes waveMove {
    0% { background-position-x: 0; }
    100% { background-position-x: 1440px; }
}
@keyframes waveMove2 {
    0% { background-position-x: 0; }
    100% { background-position-x: -1440px; }
}

.no-padding {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.logo-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 10;
    pointer-events: none;
}
.logo-link-on-video {
    display: inline-block;
    cursor: pointer;
    pointer-events: auto;
}
.logo-on-video {
    max-width: 480px;
    width: 60vw;
    height: auto;
    filter: drop-shadow(0 8px 32px #000) drop-shadow(0 2px 8px #c9a14a);
    pointer-events: none;
    user-select: none;
    transition: filter 0.3s, box-shadow 0.3s;
}
.logo-link-on-video:hover .logo-on-video,
.logo-link-on-video:focus .logo-on-video {
    filter: drop-shadow(0 4px 16px #FDDA9A) drop-shadow(0 0 8px #fffbe6);
    box-shadow: none;
}
.video-shadow {
    box-shadow: 0 16px 48px 0 rgba(0,0,0,0.55), 0 2px 24px 0 #c9a14a33;
}

.main-3col-layout {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    width: 100%;
    max-width: 100%;
    margin-top: 40px;
    box-sizing: border-box;
    position: relative;
    padding: 0 16px;
    display: flex;
    align-items: stretch;
    height: 100%;
    min-height: 100%;
}
.sidebar-left {
    min-width: 0;
    flex: 0 0 25%;
    max-width: 25%;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.main-center {
    min-width: 0;
    flex: 1 1 60%;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.sidebar-right {
    min-width: 0;
    flex: 0 0 25%;
    max-width: 25%;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.custom-card {
    background: #232228;
    border-radius: 16px;
    box-shadow: 0 2px 16px 0 #0008;
    border: 1px solid #a88d5a44;
    margin-bottom: 32px;
    overflow: hidden;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}
.custom-card .card-header {
    background: #bfa77a url('https://www.transparenttextures.com/patterns/old-wall.png');
    color: #fffbe6;
    font-size: 1.25rem;
    font-weight: 700;
    padding: 16px 20px 12px 20px;
    border-bottom: 1px solid #a88d5a44;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px #000a;
    box-shadow: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}
.custom-card .card-body {
    padding: 18px 20px;
    color: #fdda9a;
    font-size: 1.08rem;
}
@media (max-width: 1200px) {
    .main-3col-layout {
        gap: 16px;
        padding-left: 8px;
        padding-right: 8px;
    }
    .sidebar-left, .sidebar-right {
        min-width: 140px;
    }
    .main-center {
        min-width: 140px;
    }
}
@media (max-width: 900px) {
    .main-3col-layout {
        flex-direction: column;
        gap: 24px;
        width: 100%;
        max-width: 100%;
        padding: 0 8px;
    }
    .sidebar-left, .sidebar-right, .main-center {
        max-width: 100%;
        min-width: 0;
        flex: 1 1 100%;
    }
}

.server-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.server-info-list li {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #bfa77a44;
    padding: 8px 0;
    color: #fffbe6;
    font-size: 1.08rem;
}
.server-info-list li:last-child {
    border-bottom: none;
}
.server-info-list i {
    margin-right: 10px;
    color: #fdda9a;
    min-width: 22px;
    text-align: center;
    font-size: 1.1em;
}
.server-info-list b {
    margin-right: 8px;
    color: #fffbe6;
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: 0.5px;
}
.server-info-content {
    color: #fdda9a;
    font-weight: 500;
    margin-left: 8px;
    font-size: 0.98em;
    letter-spacing: 0.2px;
    word-break: break-word;
}

.event-schedule-table {
  width: 100%;
  background: transparent;
  color: #fffbe6;
  font-size: 0.98rem;
  border-collapse: separate;
  border-spacing: 0 10px;
}
.event-schedule-table thead th {
  color: #fdda9a;
  font-weight: 700;
  background: none !important;
  border: none !important;
  border-bottom: 2px solid #bfa77a44 !important;
  padding: 8px 8px 6px 8px;
  text-align: center;
  box-shadow: none !important;
}
.event-schedule-table thead tr {
  box-shadow: none !important;
  border: none !important;
  background: none !important;
}
.event-schedule-table tr {
  background: #232228;
  border-radius: 16px;
  box-shadow: 0 2px 8px 0 #0006;
  border: 1px solid #a88d5a44;
  margin-bottom: 8px;
  display: table;
  width: 100%;
  table-layout: fixed;
  transition: box-shadow 0.2s;
}
.event-schedule-table tr:hover {
  box-shadow: 0 4px 16px 0 #c9a14a55;
}
.event-schedule-table td, .event-schedule-table th {
  text-align: center;
  vertical-align: middle;
  border: none;
  background: none;
  padding: 10px 8px;
}
.card-header.d-flex.align-items-center.justify-content-between {
  justify-content: center !important;
  gap: 16px;
  border: none;
  background: none;
  text-align: center;
  font-size: 1.18em;
  font-weight: 700;
  color: #fdda9a;
  position: relative;
}
#server-time {
  font-size: 0.98em;
  color: #fdda9a;
  font-weight: 500;
  margin-left: 12px;
}
.event-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15em;
  color: #fdda9a;
  width: 32px;
  height: 32px;
  background: #151519;
  border-radius: 50%;
  box-shadow: 0 1px 4px #0008;
  margin: auto;
}
.event-schedule-table td {
  vertical-align: middle !important;
  text-align: center;
}
.event-schedule-table .text-success {
  color: #7fff7f !important;
  font-weight: 700;
}
.event-schedule-table::-webkit-scrollbar, .event-schedule-table tbody::-webkit-scrollbar {
  width: 8px;
  background: #232228;
  border-radius: 8px;
}
.event-schedule-table::-webkit-scrollbar-thumb, .event-schedule-table tbody::-webkit-scrollbar-thumb {
  background: #bfa77a88;
  border-radius: 8px;
}
@media (max-width: 600px) {
  .event-schedule-table tbody {
    max-height: 220px;
  }
  .event-schedule-table tr, .event-schedule-table td, .event-schedule-table th {
    font-size: 0.92em;
    padding: 7px 4px;
  }
}

/* Top Players Table - mesmo layout do Event Schedule */
.top-players-table {
  width: 100%;
  background: transparent;
  color: #fffbe6;
  font-size: 1em;
  border-collapse: separate;
  border-spacing: 0;
}
.top-players-table thead th {
  color: #fdda9a;
  font-weight: 700;
  background: none;
  border: none;
  border-bottom: 1.5px solid #a88d5a44;
  text-align: left;
  padding: 8px 12px 8px 0;
  letter-spacing: 0.5px;
}
.top-players-table tbody tr {
  border: none;
  background: none;
  transition: background 0.15s;
}
.top-players-table tbody tr:hover {
  background: var(--hover-bg);
}
.top-players-table td {
  color: #fffbe6;
  padding: 7px 12px 7px 0;
  border: none;
  font-size: 0.98em;
  vertical-align: middle;
}
.top-players-table td:first-child {
  color: #bfa77a;
  font-weight: 700;
  text-align: center;
}
.top-players-table td:last-child {
  color: #fdda9a;
  font-weight: 600;
}
.top-players-table::-webkit-scrollbar, .top-players-table tbody::-webkit-scrollbar {
  width: 7px;
  background: #222;
}
.top-players-table::-webkit-scrollbar-thumb, .top-players-table tbody::-webkit-scrollbar-thumb {
  background: #a88d5a44;
  border-radius: 4px;
}

/* Centralizar títulos e conteúdo do ranking */
#top-players-table th, #top-players-table td {
  text-align: center;
  vertical-align: middle;
}

/* Alinhar à esquerda as colunas Name e Guild */
#top-players-table th:nth-child(2),
#top-players-table td:nth-child(2),
#top-players-table th:nth-child(3),
#top-players-table td:nth-child(3) {
  text-align: left !important;
  padding-left: 18px !important;
}

/* Remover margem superior dos cards principais */
.sidebar-left > .custom-card,
.main-center > .custom-card,
.sidebar-right > .custom-card {
  margin-top: 0;
}

/* Garantir que as colunas ocupem toda a altura */
.main-3col-layout {
  display: flex;
  align-items: stretch;
  height: 100%;
  min-height: 100%;
}

/* Cards ocupando toda a altura da coluna */
.sidebar-left, .sidebar-right, .main-center {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.custom-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

#top-players-table th {
  text-align: center !important;
  vertical-align: middle !important;
}

#top-players-table td:nth-child(2),
#top-players-table td:nth-child(3) {
  text-align: left !important;
  padding-left: 18px !important;
}

/* Remove qualquer border-spacing herdado */
.top-players-table {
  border-spacing: 0 !important;
  table-layout: auto !important;
}

/* Centraliza títulos */
.top-players-table th {
  text-align: center !important;
  vertical-align: middle !important;
}

/* Alinha à esquerda Name e Guild */
.top-players-table td:nth-child(2),
.top-players-table td:nth-child(3) {
  text-align: left !important;
  padding-left: 18px !important;
}

/* Centraliza # e ItemPts */
.top-players-table td:nth-child(1),
.top-players-table td:nth-child(4) {
  text-align: center !important;
}

.top-players-table tr {
  background: #232228 !important;
}
.top-players-table tr:not(:last-child) {
  border-bottom: 1px solid #bfa77a44;
}
.player-link, .guild-link {
  color: #fdda9a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s, text-shadow 0.2s;
}
.player-link:hover, .guild-link:hover {
  color: #fffbe6;
  text-decoration: underline;
  text-shadow: 0 0 6px #bfa77a99;
}

/* Tooltip Silkroad-Laravel */
.ui-tooltip {
  position: absolute;
  z-index: 9999;
  max-width: 190px;
  padding: 8px !important;
  background: url(/static/img/sro/equipment/com_bg_tile_tl.PNG) no-repeat !important;
  background-size: 100% 100% !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 1px !important;
}
.ui-tooltip-content {
  font-family: Tahoma, Geneva, sans-serif;
  font-size: 11px !important;
  line-height: 15px;
  font-weight: lighter;
  text-shadow: 1px 1px #000;
  color: #fff;
}
/* Fim Tooltip Silkroad-Laravel */

/* Estilos para Latest Globals e Unique Kills (baseado no player_detail.html) */
.section-icon {
    font-size: 1.2rem;
    margin-right: 8px;
    display: inline-block;
}

.card-header {
    display: flex;
    align-items: center;
}

.chat-messages, .kills-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-message, .kill-item {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    border-left: 3px solid #fdda9a;
    transition: background 0.2s ease;
}

.chat-message:hover, .kill-item:hover {
    background: rgba(253, 218, 154, 0.1);
}

.chat-icon, .kill-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border-radius: 50%;
    background: #fdda9a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.chat-logo, .kill-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chat-info, .kill-info {
    flex: 1;
    min-width: 0;
}

.chat-header, .kill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.chat-player, .kill-player {
    color: #fdda9a;
    font-weight: 600;
    font-size: 0.9rem;
}

.chat-time, .kill-time {
    color: #bfa77a;
    font-size: 0.75rem;
    font-weight: 400;
}

.chat-text {
    color: #fffbe6;
    font-size: 0.85rem;
    line-height: 1.3;
    word-break: break-word;
}

.kill-name {
    color: #e5d4a1;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Scrollbars para chat-messages e kills-list (igual ao event-schedule) */
.chat-messages::-webkit-scrollbar, .kills-list::-webkit-scrollbar {
    width: 8px;
    background: #232228;
    border-radius: 8px;
}

.chat-messages::-webkit-scrollbar-thumb, .kills-list::-webkit-scrollbar-thumb {
    background: #bfa77a88;
    border-radius: 8px;
}

/* Responsividade para os novos componentes */
@media (max-width: 1200px) {
    .chat-message, .kill-item {
        padding: 8px;
    }
    
    .chat-icon, .kill-icon {
        width: 28px;
        height: 28px;
        margin-right: 10px;
    }
    
    .chat-player, .kill-player {
        font-size: 0.85rem;
    }
    
    .chat-text, .kill-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .chat-messages, .kills-list {
        max-height: 220px;
    }
    
    .chat-message, .kill-item {
        font-size: 0.92em;
        padding: 7px 4px;
    }
}

/* Discord Widget Styles */
/* Força as regras corretas para que o gap funcione */
.chat-container, .kills-container {
    max-height: 350px;
    overflow-y: auto;
    padding: 0.5rem;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* Discord Widget Personalizado */
.discord-widget {
    background: linear-gradient(145deg, rgba(20, 8, 8, 0.80), rgba(0, 0, 0, 0.80));
    border-radius: 12px;
    padding: 20px;
    height: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.discord-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 2px solid #fdda9a33;
}

.discord-server-name {
    color: #fdda9a;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.discord-stats {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.9rem;
}

.total-count {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fffbe6;
}

.online-dot {
    color: #00ff00;
    font-size: 0.6rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.discord-members {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
}

.loading-members {
    text-align: center;
    color: #bfa77a;
    padding: 20px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(253, 218, 154, 0.1);
    border-radius: 8px;
    border-left: 3px solid #fdda9a;
    transition: all 0.2s ease;
}

.member-item:hover {
    background: rgba(253, 218, 154, 0.2);
    transform: translateX(4px);
}

.member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fdda9a;
    object-fit: cover;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    color: #fdda9a;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-status {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}


.status-idle { background: #ffa500; }
.status-dnd { background: #ff4444; }


.status-text {
    color: #bfa77a;
    font-size: 0.75rem;
    text-transform: capitalize;
}

.discord-invite {
    padding-top: 15px;
    border-top: 2px solid #fdda9a33;
}

.discord-join-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.discord-join-btn:hover {
    background: linear-gradient(135deg, #4752c4, #5865f2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(88, 101, 242, 0.3);
    border-color: #fdda9a;
}

.discord-join-btn i {
    font-size: 1.2rem;
}

/* Scrollbar para discord-members (sidebar) - igual ao central */
.discord-members::-webkit-scrollbar {
    width: 8px;
}

.discord-members::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.discord-members::-webkit-scrollbar-thumb {
    background: #fdda9a66;
    border-radius: 4px;
}

.discord-members::-webkit-scrollbar-thumb:hover {
    background: #fdda9a99;
}

/* Discord Widget Conteúdo Central */
.discord-widget-center {
    background: linear-gradient(145deg, rgba(20, 8, 8, 0.80), rgba(0, 0, 0, 0.80));
    border-radius: 12px;
    padding: 25px;
    height: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.discord-header-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 2px solid #fdda9a33;
}

.discord-server-name-center {
    color: #fdda9a;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.discord-stats-center {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 1rem;
}

.total-count-center {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fffbe6;
}

.online-dot-center {
    color: #00ff00;
    font-size: 0.7rem;
    animation: pulse 2s infinite;
}

.discord-members-center {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

.loading-members-center {
    grid-column: 1 / -1;
    text-align: center;
    color: #bfa77a;
    padding: 20px;
}

.member-item-center {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: rgba(253, 218, 154, 0.1);
    border-radius: 8px;
    border-left: 3px solid #fdda9a;
    transition: all 0.2s ease;
    min-height: 50px;
}

.member-item-center:hover {
    background: rgba(253, 218, 154, 0.2);
    transform: translateX(4px);
}

.member-avatar-center {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #fdda9a;
    object-fit: cover;
    flex-shrink: 0;
}

.member-info-center {
    flex: 1;
    min-width: 0;
}

.member-name-center {
    color: #fdda9a;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-status-center {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.status-dot-center {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-online-center { background: #00ff00; }
.status-idle-center { background: #ffa500; }
.status-dnd-center { background: #ff4444; }
.status-offline-center { background: #666; }

.status-text-center {
    color: #bfa77a;
    font-size: 0.8rem;
    text-transform: capitalize;
}

.discord-invite-center {
    padding-top: 20px;
    border-top: 2px solid #fdda9a33;
}

.discord-join-btn-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 15px 25px;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.discord-join-btn-center:hover {
    background: linear-gradient(135deg, #4752c4, #5865f2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(88, 101, 242, 0.3);
    border-color: #fdda9a;
}

.discord-join-btn-center i {
    font-size: 1.3rem;
}

/* Scrollbar para discord-members-center */
.discord-members-center::-webkit-scrollbar {
    width: 8px;
}

.discord-members-center::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.discord-members-center::-webkit-scrollbar-thumb {
    background: #fdda9a66;
    border-radius: 4px;
}

.discord-members-center::-webkit-scrollbar-thumb:hover {
    background: #fdda9a99;
}

/* Responsividade para Widget Central */
@media (max-width: 1200px) {
    .discord-widget-center {
        height: 550px;
        padding: 20px;
    }
    
    .discord-members-center {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        max-height: 400px;
    }
    
    .member-item-center {
        padding: 8px 12px;
    }
    
    .member-avatar-center {
        width: 32px;
        height: 32px;
    }
    
    .discord-widget {
        height: 450px;
        padding: 15px;
    }
    
    .discord-members {
        max-height: 300px;
    }
    
    .member-item {
        padding: 6px 10px;
    }
    
    .member-avatar {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 900px) {
    .discord-widget-center {
        height: 500px;
        padding: 15px;
    }
    
    .discord-members-center {
        grid-template-columns: 1fr;
        max-height: 350px;
    }
    
    .discord-widget {
        height: 400px;
    }
    
    .discord-members {
        max-height: 250px;
    }
}

/* Media Station Styles */
.media-station {
    background: linear-gradient(145deg, rgba(20, 8, 8, 0.80), rgba(0, 0, 0, 0.80));
    border-radius: 12px;
    padding: 20px;
}

.videos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    height: 500px;
}

.video-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #fdda9a33;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.5);
}

.video-container:hover {
    border-color: #fdda9a;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(253, 218, 154, 0.3);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

/* Responsividade para Media Station */
@media (max-width: 1200px) {
    .videos-grid {
        height: 450px;
        gap: 12px;
    }
}

@media (max-width: 900px) {
    .videos-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        height: 1000px;
        gap: 10px;
    }
    
    .media-station {
        padding: 15px;
    }
}

@media (max-width: 600px) {
    .videos-grid {
        height: 800px;
    }
}

/* User Profile Styles */
.user-profile {
    display: inline-block;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fdda9a;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.profile-link:hover {
    background: rgba(255, 255, 255, 0.15);
    text-decoration: none;
    color: #fdda9a;
}

.profile-link i.fa-user-circle {
    font-size: 1.5rem;
    color: #fdda9a;
}

.username {
    font-weight: 600;
    font-size: 0.95rem;
}

/* Players Online Card Styles */
.players-online-info {
    text-align: center;
    padding: 10px 0;
}

.online-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.online-icon {
    font-size: 1.8rem;
    color: #fdda9a;
}

.count-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fdda9a;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.count-label {
    font-size: 1.1rem;
    color: #fffbe6;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.last-update {
    border-top: 1px solid #bfa77a44;
    padding-top: 12px;
}

.last-update small {
    font-size: 0.9rem;
    color: #fffbe6;
}

/* Responsive adjustments for Players Online */
@media (max-width: 1200px) {
    .count-number {
        font-size: 2rem;
    }
    
    .online-icon {
        font-size: 1.6rem;
    }
    
    .count-label {
        font-size: 1rem;
    }
}

@media (max-width: 900px) {
    .count-number {
        font-size: 1.8rem;
    }
    
    .online-icon {
        font-size: 1.4rem;
    }
    
    .count-label {
        font-size: 0.95rem;
    }
    
    .online-count {
        gap: 10px;
    }
}
