body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f9fc;
  color: #333;
  line-height: 1.6;
}

/* Header */
header {
  background-color: #2c3e50;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
  position: relative;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.header-icon {
  width: 160px;
  height: 160px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}
.header-icon:hover { opacity: 1; }

.header-text { flex: 1; min-width: 300px; }

header h1 {
  margin: 0 0 0.5rem;
  font-size: 2.5rem;
}
header p { font-size: 1.2rem; margin: 0.2rem 0; }

/* Responsive */
@media (max-width: 768px) {
  .header-content { flex-direction: column; gap: 1rem; }
  .header-icon { width: 60px; height: 60px; }
  header h1 { font-size: 2rem; }
  header p { font-size: 1rem; }
}
@media (max-width: 480px) {
  .header-content { gap: 0.5rem; }
  .header-icon { width: 40px; height: 40px; }
  header h1 { font-size: 1.8rem; }
}

/* Sections */
section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
h2 {
  color: #2c3e50;
  font-size: 1.8rem;
  margin-top: 0;
}
ul { padding-left: 1.2rem; }

/* Footer */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  color: #888;
}

/* Links */
a { color: #2980b9; text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  background: #eef1f5;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-size: 0.95em;
}

/* Popup Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex; justify-content: center; align-items: center;
  z-index: 1000;
}
.modal {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-50px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1rem;
}
.modal-title {
  color: #2c3e50;
  font-size: 1.5rem;
  margin: 0;
}
.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}
.close-btn:hover {
  background-color: #f0f0f0;
  color: #333;
}
.modal-content { font-size: 1.1rem; margin-bottom: 1.5rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.5rem; }
.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}
.btn-primary { background-color: #2980b9; color: white; }
.btn-primary:hover { background-color: #1f5f8b; }
.show-popup-btn {
  position: fixed;
  bottom: 20px; right: 20px;
  background-color: #2980b9;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}
.show-popup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.hidden { display: none; }


/* ===== ShomerDNS List Updater Styles ===== */

.form-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  margin-top: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #222;
  margin-bottom: 8px;
}

.form-input {
  width: 25%;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-input:focus {
  border-color: #0077cc;
  box-shadow: 0 0 0 3px rgba(0, 119, 204, 0.2);
  outline: none;
}

.form-help {
  display: block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

.btn-primary {
  background-color: #0077cc;
  color: #fff;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: #005fa3;
}

.message {
  padding: 15px 20px;
  border-radius: 8px;
  font-weight: 500;
}

.message.success {
  background-color: #e7f9ed;
  color: #156c2f;
  border: 1px solid #b8e4c1;
}

.message.error {
  background-color: #fdeaea;
  color: #a83232;
  border: 1px solid #f5c2c2;
}

.message.warning {
  background-color: #fff6e6;
  color: #a66f00;
  border: 1px solid #ffde99;
}

.info-box {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 25px;
  margin-top: 30px;
  border: 1px solid #e3e6eb;
}

.info-box h2 {
  font-size: 1.2rem;
  color: #222;
  margin-bottom: 10px;
}

.info-box ul {
  margin: 10px 0 20px 20px;
}

.info-box p {
  color: #444;
  margin-top: 10px;
}

/* Debug box (only shows on localhost) */
.debug {
  margin-top: 30px;
  padding: 20px;
  background-color: #f5f7fa;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.debug pre {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  overflow-x: auto;
}

/* Constrain the articles wrapper to match index.php width */
.articles-wrapper {
    max-width: 820px;  /* match your main index.php content width */
    margin: 0 auto;    /* center horizontally */
}

/* Article cards now fill only this width */
.article-card {
    width: 100%;       /* relative to .articles-wrapper */
    box-sizing: border-box;
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.article-card {
    background: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin: 20px 0;
    line-height: 1.6;
}
.article-card h2 {
    font-size: 1.3em;
    margin-bottom: 10px;
}
.article-card a {
    color: #0073e6;
    text-decoration: none;
}
.article-card a:hover {
    text-decoration: underline;
}
.article-meta {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}
/* Container to center content like index.php */
.main-container {
    max-width: 1000px;      /* matches index.php */
    margin: 0 auto;
    padding: 30px 20px;
}

/* Page heading like index.php */
.page-title {
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: center;
}

/* Intro paragraph */
.intro-text {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.6;
}

/* Articles container spacing */
#articles {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Article card styling */
.article-card {
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Article title */
.article-title {
    font-size: 1.3em;
    margin-bottom: 10px;
}

.article-title a {
    color: #0073e6;
    text-decoration: none;
}

.article-title a:hover {
    text-decoration: underline;
}

/* Summary paragraph */
.article-summary {
    font-size: 1em;
    color: #444;
    line-height: 1.6;
}

/* Meta info */
.article-meta {
    font-size: 0.9em;
    color: #888;
    margin-top: 10px;
}

/* No articles message */
.no-articles {
    text-align: center;
    font-style: italic;
    color: #666;
}
