/*
Theme Name: Neon Theme
Theme URI: https://example.com/neon-theme
Author: Copilot
Description: A simple neon theme based on neon.html
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #00ff41;
  font-family: 'Courier New', Courier, monospace;
  line-height: 1.6;
}

a {
  color: #00ff41;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  text-shadow: 0 0 10px #00ff41;
  color: #fff;
}

/* Header */
.site-header {
  padding: 20px;
  border-bottom: 1px solid #00ff41;
  box-shadow: 0 0 10px #00ff41;
  margin-bottom: 40px;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.site-header h1 {
  font-size: 4rem;
  margin: 0;
  line-height: 1;
}

.site-header h1 a,
a.site-title-link {
    color: #00ff41 !important;
    animation: pulse 2.5s infinite alternate ease-in-out;
    display: inline-block;
    text-decoration: none;
}

/* Navigation */
.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.main-navigation a {
  font-size: 1.2rem;
  padding: 5px 10px;
  border: 1px solid transparent;
}

.main-navigation a:hover {
  border: 1px solid #00ff41;
  box-shadow: 
    0 0 5px #00ff41,
    inset 0 0 5px #00ff41;
}

/* Main Content */
.container.main-content {
  max-width: 800px; /* Reading width */
  margin: 0 auto;
  padding: 0 20px;
  padding-bottom: 60px;
}

article {
  margin-bottom: 60px;
  border: 1px solid #333;
  padding: 30px;
  box-shadow: 0 0 5px #00ff41;
  background: rgba(0, 20, 0, 0.5);
}

.entry-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 5px #00ff41;
}

.entry-content {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Make images responsive and neon-styled */
img {
    max-width: 100%;
    height: auto;
    border: 1px solid #333; /* Dark border */
    box-shadow: 0 0 5px #00ff41; /* Green glow */
}

/* Form elements (search, etc) */
input, textarea, button, select {
    background: #000;
    color: #00ff41;
    border: 1px solid #00ff41;
    padding: 10px;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 10px #00ff41;
}

/* Pagination */
.pagination {
  text-align: center;
  margin-top: 40px;
}

.nav-links .page-numbers {
  padding: 10px 15px;
  border: 1px solid #00ff41;
  margin: 0 5px;
}

.nav-links .current {
  background: #00ff41;
  color: #000;
  box-shadow: 0 0 15px #00ff41;
}

/* Footer */
footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #00ff41;
  margin-top: auto;
}

@keyframes pulse {
  from {
    text-shadow: 
      0 0 10px #00ff41,
      0 0 20px #00ff41,
      0 0 40px #00ff41,
      0 0 60px #00ff41;
  }
  to {
    text-shadow: 
      0 0 20px #00ff41,
      0 0 40px #00ff41,
      0 0 80px #00ff41,
      0 0 120px #00ff41,
      0 0 160px #00ff41;
  }
}

/* Animation defined above applied to header link */
/* .site-header h1 a moved to upper section */

/* Optional subtle scanline for extra cyber feel */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 255, 65, 0.03) 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 999;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-header h1 {
    font-size: 2.2rem;
  }

  .main-navigation ul {
    flex-wrap: wrap;
    gap: 10px;
  }

  .main-navigation a {
    font-size: 1rem;
    padding: 4px 8px;
  }

  .container.main-content {
    padding: 0 14px 50px;
  }

  article {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .site-header h1 {
    font-size: 1.8rem;
  }

  .entry-title {
    font-size: 1.5rem;
  }
}

/* Responsive Qchat embed */
.responsive-qchat {
  position: relative;
  width: 100%;                /* Full width of its parent/container */
  aspect-ratio: 647 / 400;    /* Keeps original proportions */
  overflow: hidden;           /* Hides any overflow */
}

.responsive-qchat iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;               /* Optional: clean look */
}
