@charset "utf-8";

/* ==========================================================================
   Base Reset & Core Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    width: 100%;
    font-family: 'Open Sans', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    overflow-x: hidden;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.main-container {
    max-width: 1024px;
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(0,0,0,0.05);
}

/* ==========================================================================
   Header
   ========================================================================== */
header {
    background: #333;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding: 1.5rem 2rem;
    color: #fff;
}

.logo-area {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 250px;
}

.logo-area img {
    width: 40px;
    height: 40px;
    margin-right: 1.5rem;
}

.logo-area h1 {
    font-size: 2rem;
    margin: 0;
    font-weight: 800;
    letter-spacing: 1px;
    color: #fff;
}

.header-buttons {
    display: flex;
    gap: 15px;
}

.header-buttons button {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
}

.btn-login {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3) !important;
}

.btn-login:hover {
    background: rgba(255,255,255,0.1);
}

.btn-member {
    background: #fff;
    color: #333;
}

.btn-member:hover {
    background: #eee;
}

/* ==========================================================================
   Navigation & Search
   ========================================================================== */
.nav-container {
    width: 100%;
    background: #eee;
    display: flex;
    align-items: center;
    padding: 0.8rem 2rem;
    border-bottom: 1px solid #ddd;
}

.search-form {
    display: flex;
    flex: 1;
    max-width: 400px;
    background: #fff;
    border-radius: 25px;
    padding: 0 15px;
    margin-left: auto;
    border: 1px solid #ccc;
    overflow: hidden;
}

.search-form input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
    font-size: 0.9rem;
}

.search-form button {
    background: none;
    border: none;
    padding: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #444;
}

/* Standard Nav Bar */
#nav_widescreen {
    display: block;
    width: 100%;
    background: #2a2a2a;
    border-bottom: 3px solid #e74c3c;
}

#nav_widescreen ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    max-width: 1024px;
    margin: 0 auto;
}

#nav_widescreen ul li {
    flex: 1;
}

#nav_widescreen ul li button {
    width: 100%;
    padding: 1.2rem;
    background: transparent;
    color: #fff;
    border: none;
    border-right: 1px solid #3d3d3d;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

#nav_widescreen ul li button:hover {
    background: #e74c3c;
}

#nav_smartphone {
    display: none; /* Handled by media queries if needed, using same structure */
}

/* ==========================================================================
   Content Layout
   ========================================================================== */
.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding: 2.5rem 2rem;
}

.main-content {
    flex: 2;
    min-width: 300px;
}

.sidebar {
    flex: 1;
    min-width: 280px;
}

section {
    width: 100%;
}

article {
    margin-bottom: 2.5rem;
}

article img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

article h2, article h3 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    line-height: 1.2;
    color: #1a1a1a;
    font-weight: 800;
}

article h3 {
    font-size: 1.5rem;
}

article p {
    margin-bottom: 1.5rem;
    color: #444;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
aside {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
}

aside h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
    text-transform: uppercase;
    border-bottom: 2px solid #e74c3c;
    display: inline-block;
    padding-bottom: 8px;
}

aside article {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
    align-items: flex-start;
    border-bottom: 1px solid #f4f4f4;
    padding-bottom: 1.5rem;
}

aside article:last-child {
    border-bottom: none;
}

aside article img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    margin-bottom: 0;
    flex-shrink: 0;
}

aside article p {
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

/* ==========================================================================
   Ad Space
   ========================================================================== */
#ad_space {
    width: 100%;
    background: #eee;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: #ccc;
    margin: 2rem 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: #333;
    color: #fff;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.footer-social h6 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-social img {
    width: 28px;
    height: 28px;
    filter: invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-social img:hover {
    opacity: 1;
}

footer h5 {
    font-size: 0.85rem;
    color: #999;
    font-weight: 400;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 850px) {
    header {
        flex-direction: column;
        padding: 1.5rem;
        text-align: center;
    }

    .logo-area {
        flex-direction: column;
        margin-bottom: 1.5rem;
    }

    .logo-area img {
        margin: 0 0 1rem 0;
    }

    .header-buttons {
        width: 100%;
        justify-content: center;
    }

    .nav-container {
        padding: 1rem;
    }

    .search-form {
        margin: 0;
        width: 100%;
        max-width: none;
    }

    #nav_widescreen ul li {
        min-width: 50%;
    }

    #nav_widescreen ul li button {
        border-bottom: 1px solid #3d3d3d;
        padding: 1rem;
    }

    .content-wrapper {
        flex-direction: column;
        padding: 1.5rem;
    }

    aside {
        margin-top: 1rem;
    }
}
