/*
Theme Name: Simple Starter
Theme URI: https://example.com
Author: MAJ Softeranext
Author URI: https://example.com
Description: Minimal starter theme for learning WordPress theming. Two-column blog layout with Customizer controls.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simple-starter
Tags: two-columns, blog, responsive, accessibility
*/

/* ============================================
   BASIC RESET & VARIABLES
   ============================================ */
:root {
    --accent-color: #1e90ff;
    --max-width: 1000px;
    --space: 1rem;
    --font-system: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    --sidebar-width: 320px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-system);
    margin: 0;
    padding: 0;
    color: #222;
    background: #fff;
    line-height: 1.6;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================
   HEADER - COMPLETE & CLEAN
   ============================================ */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 10px 20px;
    position: relative;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    border-bottom: 1px solid #eee;
}

.site-branding {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 10px;
}

/* ===== LEFT: LOGO ===== */
.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.site-logo img {
    max-height: 45px;
    width: auto;
    display: block;
}

/* ===== CENTER: BRANDING TEXT ===== */
.branding-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.branding-text .site-title {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.branding-text .site-title h1 {
    margin: 0;
    font-size: inherit;
}

.branding-text .site-description {
    margin: 0;
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== RIGHT: BELL + MENU TOGGLE ===== */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ===== NOTIFICATION BELL ===== */
.bell-wrapper {
    display: flex;
    align-items: center;
    position: relative;
}

.bell-link {
    position: relative;
    display: inline-block;
    font-size: 24px;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease;
    line-height: 1;
}

.bell-link:hover {
    transform: scale(1.1);
}

/* ðŸ”´ BADGE - SHOWS COUNT */
.bell-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* ===== MENU TOGGLE (Hamburger) ===== */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    flex-shrink: 0;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #f8f9fa;
    border-color: #bbb;
}

.menu-toggle .menu-icon {
    font-size: 18px;
    line-height: 1;
}

.menu-toggle .menu-text {
    font-size: 13px;
    font-weight: 500;
}

/* ===== NAVIGATION ===== */
.site-navigation {
    flex: 1;
    width: 100%;
}

.site-navigation .menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    flex-wrap: wrap;
}

.site-navigation .menu li {
    position: relative;
}

.site-navigation .menu li a {
    display: block;
    padding: 8px 14px;
    text-decoration: none;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.site-navigation .menu li a:hover {
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
}

.site-navigation .menu li a:active {
    background: #667eea;
    color: #fff;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.site-main {
    max-width: 100%;
    margin: 10px auto;
    padding: 10px 15px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

/* ============================================
   SIDEBAR
   ============================================ */
#secondary {
    display: none;
}

body.has-sidebar .site-main {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 2rem;
}

body.has-sidebar #secondary {
    display: block;
}

/* ============================================
   POST LIST
   ============================================ */
.article-list article {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.article-list .post-thumbnail img {
    width: 140px;
    height: auto;
    display: block;
    border-radius: 4px;
}

.entry-title {
    margin: 0 0 .25rem;
    font-size: 1.1rem;
}

.entry-meta {
    color: #666;
    font-size: .9rem;
    margin-bottom: .5rem;
}

/* ============================================
   HERO
   ============================================ */
.site-hero {
    background: linear-gradient(180deg, rgba(30, 144, 255, 0.08), rgba(255, 255, 255, 0));
    padding: 2rem var(--space);
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.site-hero h1 {
    margin: 0 0 .5rem;
    font-size: 2rem;
}

.site-hero p {
    margin: 0;
    color: #444;
}

/* ============================================
   WIDGETS
   ============================================ */
.widget {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.widget-title {
    font-weight: 700;
    margin: 0 0 .5rem;
}

/* ============================================
   SINGLE POST
   ============================================ */
.single .post-thumbnail img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1rem;
}

/* ============================================
   FOOTER — MINIMAL
   ============================================ */
.site-footer {
    background: #1a1a2e;
    color: #c8d6e5;
    padding: 20px 20px;
    margin-top: 40px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 13px;
    color: #8892b0;
    margin: 0;
    line-height: 1.6;
}

.footer-copyright strong {
    color: #ffffff;
    font-weight: 600;
}

.footer-copyright .footer-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-copyright .footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}


/* ============================================
   MOBILE RESPONSIVE - COMPLETE
   ============================================ */

/* Tablet and Small Desktop (992px and below) */
@media (max-width: 992px) {
    /* Show menu toggle */
    .menu-toggle {
        display: flex !important;
    }

    /* Hide navigation by default */
    .site-navigation {
        display: none;
        width: 100%;
        order: 99;
        margin-top: 5px;
    }

    .site-navigation.active {
        display: block;
    }

    .site-navigation .menu {
        flex-direction: column;
        padding: 5px 0;
        gap: 0;
    }

    .site-navigation .menu li a {
        padding: 10px 16px;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
    }

    .site-navigation .menu li:last-child a {
        border-bottom: none;
    }

    /* Compact header */
    .header-right {
        gap: 6px;
    }

    .footer-widgets {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    .site-header {
        padding: 8px 12px;
    }

    .site-branding {
        gap: 6px;
    }

    .site-logo img {
        max-height: 35px;
    }

    .branding-text .site-title {
        font-size: 16px;
    }

    .branding-text .site-description {
        display: none;
    }

    .bell-link {
        font-size: 20px !important;
    }

    .bell-badge {
        font-size: 9px !important;
        min-width: 16px !important;
        height: 16px !important;
        padding: 1px 4px !important;
        top: -6px !important;
        right: -8px !important;
        border-width: 1.5px !important;
    }

    .menu-toggle {
        padding: 5px 10px;
        font-size: 13px;
    }

    .menu-toggle .menu-icon {
        font-size: 16px;
    }

    .menu-toggle .menu-text {
        font-size: 12px;
    }

    .site-main {
        padding: 15px !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .site-footer {
        padding: 30px 15px 15px;
    }

    #secondary {
        display: none !important;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .site-header {
        padding: 5px 8px;
    }

    .site-branding {
        gap: 4px;
    }

    .site-logo img {
        max-height: 28px;
    }

    .branding-text .site-title {
        font-size: 14px;
    }

    .branding-text .site-description {
        display: none;
    }

    .bell-link {
        font-size: 18px !important;
    }

    .bell-badge {
        font-size: 8px !important;
        min-width: 14px !important;
        height: 14px !important;
        padding: 1px 3px !important;
        top: -5px !important;
        right: -7px !important;
        border-width: 1px !important;
    }

    .menu-toggle {
        padding: 4px 8px;
        font-size: 12px;
    }

    .menu-toggle .menu-icon {
        font-size: 14px;
    }

    .menu-toggle .menu-text {
        font-size: 11px;
    }

    .site-navigation .menu li a {
        font-size: 13px;
        padding: 8px 12px;
    }

    .header-right {
        gap: 4px;
    }

    .site-main {
        padding: 10px !important;
    }

    .site-footer {
        padding: 20px 10px 10px;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-column h3 {
        margin-top: 20px;
    }

    .footer-column:first-child h3 {
        margin-top: 0;
    }

    #secondary {
        display: none !important;
    }
}