/* ===============================
   COLOR SYSTEM (DARK / LIGHT)
================================ */

/* DARK (default) */
:root {
    /* ===== DARK (default) ===== */
    --bg-main: #0e0e0f;      /* page */
    --bg-card: #141416;      /* cards */
    --bg-soft: #1a1a1c;      /* inputs, panels */
    --bg-gradient: #1a1a1c;

    --border: #252528;

    --text-main: #e6e6e9;
    --text-soft: #b9b9be;
    --text-muted: #8c8c91;

    /* Buttons derived from same scale */
    --btn-bg: #1a1a1c;
    --btn-text: #e6e6e9;
    --btn-border: #2a2a2e;
    --btn-hover: #222225;
}

/* ===== LIGHT ===== */
body.light {
    --bg-main: #fafafa;
    --bg-card: #ffffff;
    --bg-soft: #f0f1f3;
    --bg-gradient: #f0f1f3;

    --border: #e3e4e8;

    --text-main: #1f1f22;
    --text-soft: #3f3f44;
    --text-muted: #6b6b72;

    --btn-bg: #eef0f3;
    --btn-text: #1f1f22;
    --btn-border: #dcdfe3;
    --btn-hover: #e3e6ea;
}

button,
textarea,
input {
  outline: none;
}


/* Audio / action button */
.theme-btn {
  background: var(--btn-bg);
  color: var(--btn-text);
  border: 1px solid var(--btn-border);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.theme-btn:hover {
  background: var(--btn-hover);
}

.theme-btn:active {
  transform: scale(.97);
}

.theme-btn:focus {
    outline:none;
  box-shadow: 0 0 0 1px var(--border);
}

.theme-btn.disabled{
opacity:.45;
cursor:not-allowed;
}

/* Textarea themed like buttons */
.theme-textarea {
  width: 100%;
  min-height: 90px;

  background: var(--btn-bg);
  color: var(--btn-text);

  border: none;
  border-radius: 8px;

  padding: 10px;
  font-size: 15px;

  transition: all .15s ease;
}


.theme-textarea:focus {
border:none;
  outline: none;

}


.theme-textarea::placeholder {
  color: var(--btn-text);
  opacity: .6;
}



/* ===============================
   GLOBAL
================================ */

body {
    background: var(--bg-main);
    color: var(--text-main);
}



/* ===============================
   HERO
================================ */

.hero {
    background:
        linear-gradient(
            180deg,
            var(--bg-soft),
            var(--bg-gradient)
        );
    color: var(--text-main);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero p {
    max-width: 600px;
    opacity: 0.9;
}

/* ===============================
   FEATURED ARTICLE
================================ */

.featured-article {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

@media (max-width: 768px) {
    .featured-article {
        grid-template-columns: 1fr;
    }

    .featured-article img {
        height: 220px;
    }
}

.featured-article img {
    width: 100%;
    object-fit: cover;
    display: block;
    height: 312px;
}

/* DARK images */
body:not(.light) .featured-article img {
    filter: grayscale(100%) contrast(1.1);
    opacity: 0.75;
}

/* LIGHT images */
body.light .featured-article img {
    filter: none;
    opacity: 1;
}

.featured-content {
    padding: 30px;
}

.featured-content h3 {
    font-size: 1.6rem;
}

/* ===============================
   SECTIONS & ARTICLES
================================ */

.section-title {
    margin: 50px 0 20px;
    font-size: 1.5rem;
    color: var(--text-soft);
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.article-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, background 0.2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    background: var(--bg-soft);
}

.article-card h3 {
    margin-top: 10px;
    font-size: 1.2rem;
}

/* ===============================
   TAGS
================================ */

.tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* ===============================
   FOOTER
================================ */

.site-footer {
    text-align: center;
    padding: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===============================
   TOOLS SECTION
================================ */

.tools {
    margin-top: 60px;
}

/* Tool card */
.tool-card {
    background: var(--bg-card);
    padding: 26px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, background 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-4px);
    background: var(--bg-soft);
    text-decoration: none;
}

/* Tool icon */
.tool-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* DARK icons */
.tool-icon img {
    display: block;
    width: auto !important;
    height: 75px;
    opacity: 0.5;
    filter: grayscale(100%);
}

/* LIGHT icons */
body.light .tool-icon img {
    opacity: 1;
    filter: none;
}

/* Tool text */
.tool-card h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    text-align: center;
}

.tool-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: center;
}

/* Owl fixes */
.tool-carousel .owl-stage {
    display: flex;
}

.tool-carousel .owl-item {
    display: flex;
}

.owl-theme .owl-dots {
    margin-top: 12px;
}

/* ===============================
   ARCHIVE INFO SECTION
================================ */

.archive-info {
    margin: 70px 0;
}

.archive-box {
    background: var(--bg-soft);
    color: var(--text-main);
    padding: 40px;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.archive-box h2 {
    margin-top: 0;
    font-size: 1.6rem;
}

.archive-box p {
    max-width: 700px;
    line-height: 1.7;
    opacity: 0.9;
}

/* ===============================
   LINKS (GLOBAL)
================================ */

a {
    color: var(--text-main);
}


a:hover {
    opacity: 0.85;
}


/* ===============================
   SUPPORT BUTTONS
================================ */

.donate-wrap {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Primary: Archive support */
.donate-btn {
    display: inline-block;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: transparent;
    transition: background 0.2s ease, transform 0.2s ease;
}

.donate-btn:hover {
    background: var(--bg-soft);
    transform: translateY(-1px);
}

/* Secondary: Buy me a coffee */
.coffee-btn {
    display: inline-block;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: transparent;
    transition: background 0.2s ease, transform 0.2s ease;
}

.coffee-btn:hover {
    background: var(--bg-soft);
    color: var(--text-main);
    transform: translateY(-1px);
}
