/* Base Reset + Grid Background */
body {
  margin: 0;
  font-family: 'Exo 2', sans-serif;
  color: #00ffff;
  background: 
    linear-gradient(transparent 29px, #00ffff33 30px),
    linear-gradient(90deg, transparent 29px, #00ffff33 30px),
    #0d0d0d;
  background-size: 30px 30px;
  background-position: center;
}

/* Container */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 1rem;
}

.hero-img {
  width: 90%;
  max-width: 600px;
  filter: drop-shadow(0 0 10px #00ffff);
}

/* Terminal Layout */
.terminal {
  display: flex;
  max-width: 1000px;
  width: 100%;
  height: 600px;
  border: 2px solid #00ffff;
  box-shadow: 0 0 20px rgba(0,255,255,0.4);
  background-color: #111;
  position: relative;
  overflow: hidden;
}

/* Left: Message List */
.message-list {
  width: 35%;
  background-color: #080808;
  border-right: 2px solid #00ffff;
  overflow-y: auto;
  padding: 1rem;
  position: relative;
}

/* Message Tabs: ANGLED PANELS with glowing border and corner triangle */
.message-tab {
  position: relative;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: #000;
  color: #00ffff;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
  clip-path: polygon(10px 0%, 100% 0%, 100% 100%, 10px 100%, 0% 90%, 0% 10%);
  border: 1px solid #00ffff99;
  z-index: 1;
}

.message-tab:hover {
  background-color: #002233;
  transform: scale(1.02);
}

/* Inner glow outline */
.message-tab::before {
  content: '';
  position: absolute;
  top: 5px; left: 5px; right: 5px; bottom: 5px;
  border: 1px solid #00ffff33;
  pointer-events: none;
  clip-path: inherit;
  z-index: -1;
}

/* Top-right triangle corner notch */
.message-tab::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 12px solid #00ffff55;
  border-left: 12px solid transparent;
  z-index: 2;
}

/* Right: Message Display */
.message-display {
  flex-grow: 1;
  padding: 2rem;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 65%;
}

.message-content {
  display: none;
  animation: fadeIn 0.3s ease;
  border: 1px solid #00ffff55;
  padding: 1.5rem;
  background-color: #0b0b0b;
  position: relative;
  clip-path: polygon(0% 0%, 95% 0%, 100% 5%, 100% 100%, 5% 100%, 0% 95%);
  box-shadow: 0 0 15px rgba(0,255,255,0.15);
  width: 100%;
  max-width: 100%;
}

.message-content::before {
  content: '';
  position: absolute;
  top: 5px; left: 5px; right: 5px; bottom: 5px;
  border: 1px solid #00ffff22;
  clip-path: inherit;
  pointer-events: none;
}

.message-content.active {
  display: block;
}

.message-content h2 {
  color: #80ffff;
  margin-bottom: 1rem;
}

.message-image {
  margin-top: 1rem;
  max-width: 100%;
  height: auto;
  border: 1px solid #00ffff55;
  box-shadow: 0 0 10px rgba(0,255,255,0.2);
}

/* Scrollbars */
.message-list::-webkit-scrollbar,
.message-display::-webkit-scrollbar {
  width: 6px;
}
.message-list::-webkit-scrollbar-thumb,
.message-display::-webkit-scrollbar-thumb {
  background: #00ffff;
  border-radius: 10px;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
