/* Venore Dark Fantasy Theme for Znote AAC */

:root {
  --main-bg-color: #0a1621;
  --panel-bg-color: #121e2b;
  --panel-border-color: #2a3a4a;
  --header-color: #e6b800;
  --text-color: #e6e6e6;
  --link-color: #e6b800;
  --link-hover-color: #ffcc00;
  --btn-color: #1d3246;
  --btn-hover-color: #284967;
  --btn-text-color: #e6b800;
  --separator-color: #2a3a4a;
  --accent-color: #3775ab;
}

body {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  background-color: var(--main-bg-color);
  background-image: url('../images/backgrounds/beautiful-bg.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(5, 15, 35, 0.92), rgba(3, 10, 20, 0.8));
  z-index: -1;
}

/* Main Container */
.venore-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

/* Header Styles */
.venore-header {
  position: relative;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--accent-color);
  padding-bottom: 15px;
  background: rgba(5, 15, 30, 0.5);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.venore-logo {
  text-align: center;
  margin-bottom: 10px;
}

.venore-logo h1 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 3.5rem;
  color: var(--header-color);
  margin: 0;
  text-shadow: none;
  letter-spacing: 2px;
}

.venore-logo h1::before,
.venore-logo h1::after {
  content: "★";
  font-size: 1.5rem;
  vertical-align: middle;
  margin: 0 15px;
  opacity: 0.8;
}

/* Navigation */
.venore-nav {
  background: rgba(5, 15, 30, 0.7);
  border: 1px solid var(--panel-border-color);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  padding: 10px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.venore-nav a {
  color: var(--link-color);
  text-decoration: none;
  padding: 8px 20px;
  margin: 0 5px;
  font-weight: 500;
  position: relative;
  /* REMOVED TRANSITION - NO MORE FLICKERING */
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
}

.venore-nav a:hover, .venore-nav a.active {
  color: var(--link-hover-color);
}

.venore-nav a:hover::after, .venore-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--link-hover-color);
  box-shadow: 0 0 8px var(--link-hover-color);
}

/* Main Layout */
.venore-layout {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap; /* Prevent wrapping to new line */
  min-height: 0; /* Allow content to shrink */
  overflow: hidden; /* Prevent overflow */
}

/* Sidebar Panels */
.venore-sidebar {
  width: 200px;
  flex-shrink: 0; /* Prevent shrinking */
  flex-grow: 0; /* Prevent growing */
  max-width: 200px; /* Force maximum width */
  min-width: 200px; /* Force minimum width */
}

.venore-panel {
  background: rgba(5, 15, 30, 0.7);
  border: 1px solid var(--panel-border-color);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  /* REMOVED TRANSITION - NO MORE FLICKERING */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.venore-panel:hover {
  /* REMOVED TRANSFORM - NO MORE FLICKERING */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.venore-panel-header {
  background: linear-gradient(to bottom, #1d3246, #0d1922);
  color: var(--header-color);
  font-family: 'Cinzel', serif;
  padding: 12px 15px;
  font-weight: 600;
  font-size: 1.1rem;
  text-align: center;
  border-bottom: 1px solid var(--panel-border-color);
  position: relative;
}

.venore-panel-body {
  padding: 15px;
}

/* Menu Lists */
.venore-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.venore-menu-list li {
  margin-bottom: 8px;
}

.venore-menu-list a {
  color: var(--text-color);
  text-decoration: none;
  display: block;
  padding: 8px 12px;
  border-radius: 4px;
  /* REMOVED TRANSITION - NO MORE FLICKERING */
  border-left: 3px solid transparent;
}

.venore-menu-list a:hover,
.venore-menu-list a.active {
  background: rgba(55, 117, 171, 0.2);
  border-left-color: var(--accent-color);
  color: var(--link-hover-color);
}

/* Content Area */
.venore-content {
  flex: 1;
  min-width: 0; /* Important for flex shrinking */
  max-width: calc(100% - 440px); /* 200px left + 200px right + 40px gap */
  background: rgba(5, 15, 30, 0.7);
  border: 1px solid var(--panel-border-color);
  border-radius: 8px;
  padding: 30px;
  margin: 0 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  overflow: hidden; /* Prevent content overflow */
  word-wrap: break-word; /* Break long words */
}

.venore-page-content {
  color: var(--text-color);
}

/* News Styles */
.venore-news-post {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border-color);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.venore-news-header {
  background: linear-gradient(to bottom, #1d3246, #0d1922);
  padding: 15px 20px;
  border-bottom: 1px solid var(--panel-border-color);
}

.venore-news-header h2,
.venore-news-header h3 {
  margin: 0;
  color: var(--header-color);
  font-size: 1.2rem;
  font-weight: 600;
}

.venore-news-header a {
  color: var(--link-color);
  text-decoration: none;
}

.venore-news-header a:hover {
  color: var(--link-hover-color);
}

.venore-news-content {
  padding: 20px;
}

.venore-news-content p {
  margin: 0 0 15px 0;
  line-height: 1.6;
}

.venore-pagination {
  text-align: center;
  margin-top: 20px;
}

.venore-select {
  background: var(--btn-color);
  color: var(--text-color);
  border: 1px solid var(--panel-border-color);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
}

.venore-no-news {
  text-align: center;
  padding: 40px;
  color: var(--text-color);
  opacity: 0.7;
}

/* Login Form */
.venore-login-form .form-group {
  margin-bottom: 15px;
}

.venore-login-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--panel-border-color);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--text-color);
  box-sizing: border-box;
}

.venore-login-form input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 5px rgba(55, 117, 171, 0.5);
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.lost-link {
  color: var(--link-color);
  text-decoration: none;
  font-size: 12px;
}

.lost-link:hover {
  color: var(--link-hover-color);
}

/* Buttons */
.venore-btn {
  background: var(--btn-color);
  color: var(--btn-text-color);
  border: 1px solid var(--panel-border-color);
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  /* REMOVED TRANSITION - NO MORE FLICKERING */
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.venore-btn:hover {
  background: var(--btn-hover-color);
  color: var(--link-hover-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Statistics */
.venore-stat-item {
  text-align: center;
  margin-bottom: 15px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.venore-stat-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--header-color);
  margin-bottom: 5px;
}

.venore-stat-label {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
}

/* Top Players */
.venore-rankings table {
  width: 100%;
  border-collapse: collapse;
}

.venore-rankings td {
  padding: 8px 0;
  border-bottom: 1px solid rgba(42, 58, 74, 0.3);
}

.venore-player-rank {
  display: inline-block;
  width: 20px;
  font-weight: bold;
  color: var(--header-color);
}

.venore-player-name a {
  color: var(--text-color);
  text-decoration: none;
}

.venore-player-name a:hover {
  color: var(--link-hover-color);
}

.venore-player-level {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
  margin-left: 5px;
}

/* Footer */
.venore-footer {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--panel-border-color);
  text-align: center;
  background: rgba(5, 15, 30, 0.5);
  border-radius: 8px;
}

.venore-social {
  margin-bottom: 15px;
}

.venore-social a {
  color: var(--text-color);
  font-size: 1.5rem;
  margin: 0 10px;
  /* REMOVED TRANSITION - NO MORE FLICKERING */
}

.venore-social a:hover {
  color: var(--link-hover-color);
}

.venore-copyright {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .venore-layout {
    flex-direction: column;
  }
  
  .venore-sidebar {
    width: 100%;
  }
  
  .venore-nav {
    flex-direction: column;
  }
  
  .venore-nav a {
    margin: 2px 0;
  }
  
  .venore-logo h1 {
    font-size: 2.5rem;
  }
}

/* Content Styling */
.venore-content h1, .venore-content h2, .venore-content h3 {
  color: var(--header-color);
  margin-bottom: 15px;
}

.venore-content p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.venore-content a {
  color: var(--link-color);
  text-decoration: none;
}

.venore-content a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}

/* Tables */
.venore-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.venore-content th,
.venore-content td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--panel-border-color);
}

.venore-content th {
  background: var(--btn-color);
  color: var(--header-color);
  font-weight: bold;
}

.venore-content tr:hover {
  background: rgba(55, 117, 171, 0.1);
}

/* Forms */
.venore-content input,
.venore-content select,
.venore-content textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--panel-border-color);
  color: var(--text-color);
  padding: 8px;
  border-radius: 4px;
}

.venore-content input:focus,
.venore-content select:focus,
.venore-content textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 5px rgba(55, 117, 171, 0.5);
}

/* Force layout to stay horizontal and prevent wrapping */
.venore-layout {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 20px;
  align-items: flex-start;
  min-height: 0;
  overflow: hidden;
}

/* Force sidebars to never wrap or shrink */
.venore-sidebar {
  width: 200px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  max-width: 200px !important;
  min-width: 200px !important;
  position: relative !important;
}

/* Ensure right sidebar is always on the right */
.venore-sidebar:last-child {
  order: 3 !important;
  margin-left: auto !important;
}

/* Content area should be in the middle */
.venore-content {
  order: 2 !important;
  flex: 1;
  min-width: 0;
  max-width: calc(100% - 440px);
  background: rgba(5, 15, 30, 0.7);
  border: 1px solid var(--panel-border-color);
  border-radius: 8px;
  padding: 30px;
  margin: 0 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  overflow: hidden;
  word-wrap: break-word;
}

/* Prevent any content from breaking the layout */
.venore-page-content {
  max-width: 100%;
  overflow: hidden;
  word-wrap: break-word;
}
