/*
Theme Name: DEKA Project Custom
Theme URI: https://deka-project.com
Author: DEKA Project Team
Author URI: https://deka-project.com
Description: Custom, lightweight WordPress theme built with Tailwind CSS. Zero bloatware.
Version: 1.1
Text Domain: deka
*/

/* ===================================
   ARTICLE CONTENT TYPOGRAPHY
   Full-width, auto-detect headings,
   proper paragraph spacing
   =================================== */

/* --- Base Content Container --- */
.deka-article-content {
    font-size: 1.075rem;
    line-height: 1.9;
    color: #374151;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Remove any default prose max-width restriction */
.deka-article-content.max-w-none {
    max-width: none !important;
}

/* -----------------------------------------------
   HEADINGS (real h1-h6 AND auto-detected headings)
   ----------------------------------------------- */
.deka-article-content h1,
.deka-article-content h2,
.deka-article-content h3,
.deka-article-content h4,
.deka-article-content h5,
.deka-article-content h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.35;
    margin-top: 2.5em;
    margin-bottom: 0.85em;
    letter-spacing: -0.015em;
}

/* First heading in article → no top margin */
.deka-article-content > h1:first-child,
.deka-article-content > h2:first-child,
.deka-article-content > h3:first-child {
    margin-top: 0;
}

.deka-article-content h1 {
    font-size: 2.25rem;
    margin-top: 0;
}

.deka-article-content h2 {
    font-size: 1.65rem;
    padding-bottom: 0.55em;
    border-bottom: 3px solid #c2ebd1;
    color: #226a48;
}

.deka-article-content h3 {
    font-size: 1.35rem;
    color: #278558;
    padding-left: 0.85em;
    border-left: 4px solid #38a772;
}

.deka-article-content h4 {
    font-size: 1.2rem;
    color: #278558;
    font-weight: 700;
}

.deka-article-content h5 {
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #38a772;
    font-weight: 700;
}

.deka-article-content h6 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #5fc390;
    font-weight: 700;
}

/* Auto-detected headings — extra visual cue */
.deka-article-content h2.deka-auto-heading {
    background: linear-gradient(135deg, #f2fbf5 0%, #e0f6e8 100%);
    padding: 0.6em 0.85em;
    border-radius: 8px;
    border-bottom: 3px solid #94dcb4;
    margin-top: 2.5em;
}

.deka-article-content h3.deka-auto-heading {
    background: #f8fdfb;
    padding: 0.45em 0.85em;
    border-radius: 6px;
    margin-top: 2em;
}

/* -----------------------------------------------
   PARAGRAPHS — proper spacing
   ----------------------------------------------- */
.deka-article-content p {
    margin-top: 0;
    margin-bottom: 1.4em;
    color: #374151;
    font-weight: 400;
    line-height: 1.9;
}

/* Paragraph right after heading → less top space */
.deka-article-content h2 + p,
.deka-article-content h3 + p,
.deka-article-content h4 + p {
    margin-top: 0.15em;
}

/* -----------------------------------------------
   DEFINITION ITEMS  (bold term — description)
   ----------------------------------------------- */
.deka-article-content .deka-definition-item {
    margin-bottom: 1.2em;
    padding: 0.85em 1.1em;
    background: #fafcfb;
    border-left: 3px solid #c2ebd1;
    border-radius: 0 8px 8px 0;
    line-height: 1.75;
    transition: background 0.2s ease;
}

.deka-article-content .deka-definition-item:hover {
    background: #f2fbf5;
}

.deka-article-content .deka-def-term {
    font-weight: 700;
    color: #226a48;
    font-size: 1.05em;
}

.deka-article-content .deka-def-sep {
    color: #94dcb4;
    font-weight: 400;
    margin: 0 0.15em;
}

.deka-article-content .deka-def-desc {
    color: #4b5563;
    font-weight: 400;
}

/* -----------------------------------------------
   AUTO-DETECTED LISTS
   ----------------------------------------------- */
.deka-article-content ul.deka-auto-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5em;
    margin-bottom: 1.5em;
}

.deka-article-content ul.deka-auto-list li {
    position: relative;
    padding-left: 1.6em;
    margin-bottom: 0.55em;
    line-height: 1.75;
    color: #374151;
}

.deka-article-content ul.deka-auto-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #38a772, #5fc390);
    border-radius: 50%;
}

/* -----------------------------------------------
   BOLD / STRONG TEXT
   ----------------------------------------------- */
.deka-article-content strong,
.deka-article-content b {
    font-weight: 700;
    color: #1f2937;
}

/* -----------------------------------------------
   LINKS
   ----------------------------------------------- */
.deka-article-content a {
    color: #278558;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #c2ebd1;
    transition: all 0.2s ease;
}

.deka-article-content a:hover {
    color: #38a772;
    text-decoration-color: #38a772;
}

/* -----------------------------------------------
   LISTS (standard WP lists)
   ----------------------------------------------- */
.deka-article-content ul,
.deka-article-content ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.deka-article-content ul {
    list-style-type: disc;
}

.deka-article-content ol {
    list-style-type: decimal;
}

.deka-article-content li {
    margin-bottom: 0.5em;
    padding-left: 0.25em;
    line-height: 1.75;
}

.deka-article-content li::marker {
    color: #38a772;
    font-weight: 700;
}

/* -----------------------------------------------
   BLOCKQUOTE
   ----------------------------------------------- */
.deka-article-content blockquote {
    border-left: 4px solid #38a772;
    background: #f2fbf5;
    padding: 1.25em 1.5em;
    margin: 1.5em 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #374151;
}

/* -----------------------------------------------
   IMAGES
   ----------------------------------------------- */
.deka-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5em 0;
}

/* -----------------------------------------------
   TABLES
   ----------------------------------------------- */
.deka-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.95rem;
}

.deka-article-content th,
.deka-article-content td {
    border: 1px solid #e5e7eb;
    padding: 0.75em 1em;
    text-align: left;
}

.deka-article-content th {
    background: #f2fbf5;
    font-weight: 700;
    color: #226a48;
}

.deka-article-content tr:nth-child(even) {
    background: #f9fafb;
}

/* -----------------------------------------------
   HORIZONTAL RULE
   ----------------------------------------------- */
.deka-article-content hr {
    border: none;
    border-top: 2px solid #e5e7eb;
    margin: 2.5em 0;
}

/* -----------------------------------------------
   CODE BLOCKS
   ----------------------------------------------- */
.deka-article-content pre {
    background: #1a1a2e;
    color: #e5e7eb;
    padding: 1.25em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.9rem;
}

.deka-article-content code {
    background: #f2fbf5;
    color: #278558;
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

.deka-article-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* -----------------------------------------------
   RESPONSIVE
   ----------------------------------------------- */
@media (max-width: 640px) {
    .deka-article-content {
        font-size: 1rem;
        line-height: 1.8;
    }
    .deka-article-content h1 { font-size: 1.75rem; }
    .deka-article-content h2 { font-size: 1.4rem; }
    .deka-article-content h3 { font-size: 1.2rem; }

    .deka-article-content h2.deka-auto-heading {
        padding: 0.5em 0.7em;
    }

    .deka-article-content .deka-definition-item {
        padding: 0.65em 0.85em;
    }
}
