/* Ghost Wolves - Hauptinhalt, Header, App-Layout, Seitenleisten (aus index.html ausgelagert, IX1a) */
/* Hauptinhalt */
#mainContent {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

#mainContent.visible {
  display: block;
  opacity: 1;
}

/* Header */
.header { 
  width:100%; 
  padding:15px 0; 
  background-image: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url("../images/header-bg.png");
  background-position: cover cover;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display:flex; 
  justify-content:center; 
  align-items:center; 
  border-bottom:1px solid var(--gray-light); 
  box-shadow:0 4px 12px rgba(0,0,0,0.5); 
  margin-bottom:15px;
  flex-wrap: wrap;
}

.header-logo { 
  width:80px; 
  height:80px; 
  border-radius:8px; 
  background:linear-gradient(135deg,var(--gray-dark),var(--gray-medium)); 
  display:flex; 
  justify-content:center; 
  align-items:center; 
  font-family:"Orbitron",monospace; 
  font-weight:700; 
  font-size:1.2rem; 
  color: var(--accent); 
  border:2px solid var(--gray-light);
  margin: 0 10px;
}

.header-text { 
  text-align:center; 
  color: var(--accent); 
  margin: 0 10px;
}

.header-title {
  font-family: "Black Ops One", cursive;
  font-size: 3rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1.1;
}

.header-subtitle {
  font-family: "Black Ops One", cursive;
  font-size: 1.5rem;
  color: #6fd66fb1;
  letter-spacing: 1px;
}

/* App Layout */
.app { 
  display:grid; 
  grid-template-columns:180px 1fr 180px; 
  gap:15px; 
  max-width:1600px; 
  margin:0 auto 15px auto; 
  padding:10px;
}

/* Sidebars */
.sidebar{ 
  background:
    linear-gradient(180deg, rgba(42,42,42,0.65), rgba(74,74,74,0.65)),
    url("../images/sidebar-left-bg.jpg") center center / cover no-repeat;
  border:1px solid var(--gray-light); 
  border-radius:12px; 
  padding:12px; 
  overflow:auto; 
  box-shadow:0 6px 18px rgba(0,0,0,0.6);
  position: relative;
  width:180px;
}

.sidebar-right{ 
  background:
    linear-gradient(180deg, rgba(42,42,42,0.65), rgba(74,74,74,0.65)),
    url("../images/sidebar-right-bg.jpg") center center / cover no-repeat;
  border:1px solid var(--gray-light); 
  border-radius:12px; 
  padding:12px; 
  overflow:auto; 
  box-shadow:0 6px 18px rgba(0,0,0,0.6);
  position: relative;
  width:180px;
}

.sidebar::before, .sidebar-right::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.4);
  border-radius: 12px;
  z-index: 0;
}

.sidebar > *, .sidebar-right > * {
  position: relative;
  z-index: 1;
}

.brand{ 
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:15px; 
}

.logo{ 
  width:50px;
  height:50px;
  border-radius:8px; 
  background:linear-gradient(135deg,var(--gray-dark),var(--gray-medium)); 
  display:flex;
  align-items:center;
  justify-content:center; 
  color:var(--accent);
  font-family:"Orbitron",monospace;
  font-weight:700; 
  border:2px solid var(--gray-light);
}

.brand .title{ 
  font-size:1rem;
  color:var(--accent);
  text-transform:uppercase;
}

/* Menue links: gleicher Kasten-Look wie die Eintraege rechts (.device-card) */
.nav a{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--text);
  text-decoration:none;
  background:rgba(0,0,0,0.3);
  border:1px solid var(--gray-medium);
  padding:6px;
  border-radius:6px;
  margin-bottom:6px;
  transition:0.2s;
  font-weight:bold;
  font-size:0.85rem;
}

.nav a:hover,
.nav a.active{
  background:rgba(79,168,79,0.15);
  border-color:var(--accent);
  color:var(--accent);
}

.devices h4, 
.sidebar-right h4{ 
  color:var(--accent);
  margin-top:12px;
  margin-bottom:6px; 
  font-size:0.9rem;
}

.device-card{ 
  background:rgba(0,0,0,0.3); 
  border:1px solid var(--gray-medium); 
  border-radius:6px; 
  padding:6px;
  margin-bottom:6px; 
  cursor:pointer;
  transition:0.2s; 
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 0.85rem;
}

.device-card:hover{ 
  background:rgba(79,168,79,0.1);
  border-color:var(--accent);
  color:var(--accent);
}

/* Symbole in den Menuepunkten rechts: fester Abstand, alle Texte buendig */
.sidebar-right .device-card > i {
  width: 18px;
  margin-right: 8px;
  text-align: center;
  flex-shrink: 0;
}

.device-card.flag-card {
  border: 2px solid #4fa84f;
  color: #9f9;
  background: rgba(79, 168, 79, 0.1);
}

.insta-card {
  display: flex;
  align-items: center;
  gap: 0; /* Abstand zum Symbol kommt von .sidebar-right .device-card > i */
  color: var(--accent);
  font-weight: bold;
  text-decoration: none;
  padding: 6px;
  border-radius: 6px;
  transition: 0.2s;
  font-size: 0.85rem;
}

/* Lange Instagram-Namen duerfen umbrechen statt ueber den Rand zu ragen */
.insta-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.insta-card:hover {
  color: var(--text-hell);
  background: rgba(225,48,108,0.25);
}

