/*
Theme Name: The Wall Theme
Author: Your Name
Description: A custom WordPress news & blogging theme.
Version: 1.3
*/

/* ============================= */
/* GLOBAL RESET & BASE STYLES   */
/* ============================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f6f8;
    color: #222;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6, .archive-title, .post-title, .single-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #111;
}

.site-content {
    flex: 1;
}

.content-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 20px 10px;
}

/* ============================= */
/* HEADER                        */
/* ============================= */

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo .site-logo {
    height: 1.9rem;
    width: auto;
}

.site-header {
    background: #ffffff;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-bottom: 3px solid #66ccff;
}

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

.header-logo a {
    color: #111;
    text-decoration: none;
    font-size: 1.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.accent-dot {
    color: #66ccff;
}

.main-menu {
    list-style: none;
    display: flex;
    gap: 28px;
}

.main-menu li a {
    color: #222;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.main-menu li a::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: #66ccff;
    transition: width 0.3s ease;
}

.main-menu li a:hover::after {
    width: 100%;
}

/* ============================= */
/* ARCHIVE HEADER                */
/* ============================= */

.archive-header {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
    padding: 60px 20px;
    background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0));
    border-bottom: 1px solid #e6e6e6;
}

.archive-title {
    position: relative;
    font-size: 2.8rem;
    font-weight: 900;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    max-width: 900px;
    line-height: 1.2;
    margin: 0 auto;
}

.archive-title::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background: #66ccff;
    margin: 18px auto 0;
    border-radius: 2px;
}

.archive-description {
    margin-top: 18px;
    font-size: 1rem;
    color: #666;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================= */
/* FOOTER                        */
/* ============================= */

.site-footer {
    background: #111;
    color: #ddd;
    padding: 10px 10px 10px;
    text-align: center;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
}

.footer-col {
    text-align: center;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
}

.footer-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: #66ccff;
    margin: 10px auto 0;
}

.footer-col p {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-social a {
    font-size: 34px;
    color: #ffffff;
    transition: 0.3s ease;
}

.footer-social a:hover {
    color: red;
    transform: scale(1.2);
}

.footer-bottom {
    margin-top: 10px;
    padding-top: 5px;
    border-top: 1px solid #222;
    color: #777;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================= */
/* BACK BUTTON                   */
/* ============================= */

.back-button-wrapper {
    margin-bottom: 0px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #333;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: #66ccff;
    color: #ffffff;
    border-color: #66ccff;
    transform: translateX(-3px);
}

.back-icon {
    font-size: 1rem;
    font-weight: bold;
}

.advertisement-box {
    width: 100%;
    max-width: 900px;
    height: 120px;
    /* rectangular banner */
    background: #e5e5e5;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    margin: 30px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* ============================= */
/* RESPONSIVE                    */
/* ============================= */

@media (max-width: 768px) {
    h1 {
        font-size: 1.4rem;
    }
    h2 {
        font-size: 1rem;
    }
    .header-logo a {
        font-size: 1.4rem;
    }

    .site-logo {
        height: 1.5rem;
    }

    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .archive-title {
        font-size: 1.4rem;
    }
}
