/* --- LYNX AI: DARK GLASSMOPHISM THEME --- */
:root {
  /* Core Colors */
  --bg-deep: #050507;
  --bg-glass: rgba(20, 20, 25, 0.7);
  --bg-card: rgba(30, 30, 35, 0.6);
  
  /* Accents */
  --primary: #8a2be2;      /* Electric Purple */
  --secondary: #ff6b00;    /* Safety Orange */
  --success: #00ff41;      /* Cyber Green */
  
  /* Text */
  --text-main: #ffffff;
  --text-muted: #a0a0b0;
  
  /* Effects */
  --glass-blur: blur(12px);
  --border-light: 1px solid rgba(255, 255, 255, 0.08);
  --glow: 0 0 20px rgba(138, 43, 226, 0.15);
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(138, 43, 226, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(255, 107, 0, 0.05) 0%, transparent 20%);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
}

/* --- HEADER --- */
header {
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--border-light);
  padding: 15px 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-text {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: -1px;
}
.brand-text span { color: var(--primary); }

header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  margin-left: 25px;
  transition: 0.3s;
}
header nav a:hover { color: var(--secondary); }

/* --- MAIN CONTAINER --- */
main {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* --- HERO / SEARCH SECTION --- */
.search-header {
  text-align: center;
  margin-bottom: 50px;
}

.search-header h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(to right, #fff, #a0a0b0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.search-bar-container {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  display: flex;
  gap: 10px;
}

.search-bar-container input {
  width: 100%;
  background: var(--bg-card);
  border: var(--border-light);
  padding: 15px 20px;
  border-radius: 50px;
  color: white;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.search-bar-container input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.2);
}

.search-bar-container button {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  background: var(--primary);
  color: white;
  border: none;
  padding: 0 25px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.search-bar-container button:hover { background: #7a20c5; }

/* --- CATEGORY TABS --- */
.category-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.category-tabs a {
  padding: 8px 16px;
  background: rgba(255,255,255,0.03);
  border: var(--border-light);
  border-radius: 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: 0.3s;
}

.category-tabs a:hover, .category-tabs a.active {
  background: rgba(138, 43, 226, 0.15);
  border-color: var(--primary);
  color: white;
}

/* --- POST CARDS (The Fix) --- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.post-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: var(--border-light);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
  border-color: rgba(138, 43, 226, 0.3);
}

.card-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
  background: #111;
}

.placeholder-img {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #1a1a20, #0d0d10);
  color: #333;
  font-family: 'JetBrains Mono';
}

.card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.category-badge {
  align-self: flex-start;
  font-size: 0.75rem;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.post-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.post-title a { color: white; text-decoration: none; }
.post-title a:hover { color: var(--primary); }

.post-excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-more-btn {
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: 0.2s;
}
.read-more-btn:hover { color: var(--secondary); }

.share-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  transition: 0.2s;
}
.share-btn:hover { color: white; transform: scale(1.1); }

/* --- ADMIN FORM FIX --- */
.admin-card {
  background: var(--bg-card);
  border: var(--border-light);
  padding: 40px;
  border-radius: 12px;
}

.admin-btn {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary), #6a1b9a);
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.admin-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

input, textarea, select {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid #333;
  padding: 12px;
  color: white;
  border-radius: 6px;
  margin-bottom: 20px;
  font-family: inherit;
}
label { color: var(--text-muted); margin-bottom: 8px; display: block; }

/* --- FOOTER --- */
footer {
  text-align: center;
  padding: 40px;
  border-top: var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
}
/* --- LANGUAGE SELECTOR --- */
.lang-selector {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-main);
    padding: 5px 10px;
    border-radius: 5px;
    font-family: 'JetBrains Mono';
    cursor: pointer;
    font-size: 0.8rem;
    outline: none;
}

.lang-selector option {
    background: #000;
    color: #fff;
}

/* --- SOCIAL MEDIA ICONS --- */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
    border: 1px solid transparent;
}

.social-icon:hover {
    background: var(--bg-card);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
    border-color: var(--primary);
}

/* Specific Brand Colors on Hover */
.social-icon.fb:hover { color: #1877F2; border-color: #1877F2; }
.social-icon.tw:hover { color: #1DA1F2; border-color: #1DA1F2; }
.social-icon.li:hover { color: #0A66C2; border-color: #0A66C2; }
.social-icon.ig:hover { color: #E4405F; border-color: #E4405F; }
.social-icon.yt:hover { color: #FF0000; border-color: #FF0000; }

/* Mobile Menu Fix */
@media (max-width: 768px) {
    header { flex-direction: column; gap: 15px; }
    .lang-selector { margin-top: 10px; width: 100%; }
}
/* --- BACK TO MAIN SITE BUTTON --- */
.lynx-btn-glow {
    background: linear-gradient(135deg, var(--primary), #6a1b9a);
    color: #fff !important; /* Force white text */
    padding: 8px 20px;
    border-radius: 50px; /* Pill shape */
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(157, 78, 221, 0.3);
    margin: 0 10px; /* Spacing from other links */
}

.lynx-btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.6);
    border-color: #fff;
}

.lynx-btn-glow i {
    font-size: 0.9em;
}