/* -------------------------
|                          |
|      LIGHT MODE          |
|                          |
|--------------------------*/
.light-mode {
    background-color: #f8f8f8;
}

.light-mode .navbar:hover a, 
.light-mode .navbar:hover .logo {
    color: #242424;
}

.light-mode .post-container {
    color: #242424;
}

.light-mode .post-container p,
.light-mode .post-container li,
.light-mode .post-container h2 {
    color: #242424;
}

.light-mode blockquote {
    color: #444;
    border-left: 4px solid #555;
}

.light-mode .cta-button {
    background-color: var(--color-orange);
    color: #FFFAFA; 
}

.light-mode .post-container pre {
    background-color: #f6f6f6;
    color: #333;
    border: 1px solid #ddd;
    box-shadow: none;
}

.light-mode .post-container pre code {
    color: inherit;
    background-color: transparent;
}

.light-mode .post-container table {
    color: #242424;
}

.light-mode .post-container th {
    background-color: #e6e6e6;
    color: #242424;
}

.light-mode .post-container td {
    border-bottom: 1px solid #ccc;
}

.light-mode .post-container tr:nth-child(even) {
    background-color: #f0f0f0;
}



/* -------------------------
|                          |
|      HERO SECTION       |
|                          |
|--------------------------*/
.hero {
  background: 
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
    var(--background-image);
  background-size: cover;
  background-position: center;
}

.hero-overlay h1 {
  font-size: 2rem;
}

.hero-overlay h1, 
.hero-left p,
.nav-links a, 
.post-container p,
.logo {
    color: #FFFAFA;
}

.navbar:hover a {
    color: #FFFAFA;
}

#dictionary {
    color: var(--color-orange);
}


/* -------------------------
|                          |
|      POST SECTION        |
|                          |
|--------------------------*/
.post-container {
    margin: 1rem auto;
    max-width: var(--max-width);
    padding: 1rem 2rem;
    color: #FFFAFA;
}

.post-container h2 {
    font-weight: 700;
    font-size: 2rem;
    padding-top: 3rem;
    padding-bottom: 1rem;
}

.post-container h3 {
    font-weight: 600;
    font-size: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.post-container p {
    font-size: 1.1rem;
    line-height: 1.7;
    padding: 0; 
    margin-bottom: 1.5rem;
    font-family: var(--font-3);
}

.post-container li {
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 0;
    margin-bottom: 0.5rem;
    font-family: var(--font-3);
}

.post-container ul {
    list-style: none;
    padding-left: 1.5rem;
}

.post-container li::before {
    content: '\2022';
    color: var(--color-orange);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1.5em;
}


blockquote {
    font-style: italic;
    font-size: 1.25rem;
    color: #FFFAFA;
    border-left: 4px solid var(--color-orange);
    padding-left: 2rem;
    margin: 2rem 0;
    position: relative;
    line-height: 1.5;
}

.post-container pre {
    background-color: #2b2b2b; 
    color: #f8f8f2; 
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto; 
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 2rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); 
}

.post-container pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
    font-size: 1em;
}



.cta-button {
    display: inline-block;
    background-color: var(--color-orange);
    color: #242424;
    padding: 1rem 2.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2.5rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #f7a831;
    transform: translateY(-2px);
}


.post-container table {
    width: 100%;
    border-collapse: collapse; 
    margin: 2rem 0; 
    color: #FFFAFA;
}

.post-container th,
.post-container td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #444;
}

.post-container th {
    background-color: #333;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-container tr:nth-child(even) {
    background-color: #2b2b2b;
}

@media (max-width: 1020px) {
    .nav-links a {
        color: var(--color-white);
    }

    .post-container table,
    .post-container thead,
    .post-container tbody,
    .post-container th,
    .post-container td,
    .post-container tr {
        display: block; 
    }

    .post-container thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .post-container tr {
        border: 1px solid #555;
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }
    
    .light-mode .post-container tr {
        border: 1px solid #ddd;
    }

    .post-container td {
        border: none;
        border-bottom: 1px solid #555;
        position: relative;
        text-align: center;
    }

    .light-mode .post-container td {
        border-bottom: 1px solid #ddd;
    }

    .post-container td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 1rem;
        font-weight: bold;
        text-align: left;
        color: var(--color-orange);
    }
}