/*
 * skin.css — Bulbmeister Blog Skin Styles
 * Extracted from index.main.php for caching efficiency.
 * Loaded via _skin.class.php require_css().
 */

/* =====================================================================
   MOBILE-ONLY DETECTION
   ===================================================================== */
@media (pointer: coarse) and (hover: none) {

    * { -webkit-text-size-adjust: none !important; }

    html { width: device-width !important; }

    body {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Large hamburger on touch devices */
    #hamburger-btn,
    button#hamburger-btn,
    .hamburger-menu,
    button.hamburger-menu {
        display: flex !important;
        background: #2d5016 !important;
        background-color: #2d5016 !important;
        color: white !important;
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        z-index: 99999 !important;
        width: 80px !important;
        height: 80px !important;
        min-width: 80px !important;
        min-height: 80px !important;
        border-radius: 40px !important;
        font-size: 32px !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.3) !important;
        border: none !important;
        cursor: pointer !important;
    }

    /* Hide desktop nav on touch devices */
    .modern-bulbmeister-nav,
    .modern-nav-content,
    body > *:first-child::after,
    nav,
    .nav-links {
        display: none !important;
    }

    /* Enlarge mobile menu on touch devices */
    .mobile-menu {
        width: 900px !important;
        font-size: 3rem !important;
        left: -900px !important;
    }
    .mobile-menu.open { left: 0 !important; }
    .mobile-menu-header { padding: 4.5rem !important; }
    .mobile-menu-logo { font-size: 4.5rem !important; }
    .mobile-nav-links a {
        padding: 3.6rem 4.5rem !important;
        font-size: 3rem !important;
    }
    .close-menu {
        font-size: 4.5rem !important;
        padding: 1.5rem !important;
    }
}

/* =====================================================================
   RESET / BASE
   ===================================================================== */
body::before,
body::after,
body > *:first-child::before,
body > *:first-child::after {
    display: none !important;
    content: none !important;
}

body > * { position: relative !important; }

body {
    font-family: 'Georgia', serif !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #f5f5f5 !important;
}

/* =====================================================================
   HEADER
   ===================================================================== */
.modern-bulbmeister-header {
    background: linear-gradient(135deg, #2d5016 0%, #4a7c29 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

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

.modern-logo {
    display: flex;
    align-items: center;
    flex: 1;
}

.logo-with-bg {
    background: white;
    padding: 8px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo-with-bg img {
    max-height: 50px;
    width: auto;
}

.text-logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: white !important;
    text-decoration: none !important;
    font-family: 'Georgia', serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.text-logo:hover {
    color: white !important;
    text-decoration: none !important;
}

.modern-contact-info {
    text-align: right;
    font-size: 0.9rem;
    color: white;
    padding: 0 1rem;
}

/* =====================================================================
   NAVIGATION
   ===================================================================== */
.modern-bulbmeister-nav {
    background: rgba(45, 80, 22, 0.95);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.modern-nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.modern-nav-content a {
    color: white !important;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.modern-nav-content a:hover {
    background: rgba(255,255,255,0.2);
    text-decoration: none;
    transform: translateY(-2px);
    color: white !important;
}

.modern-nav-content a.active {
    background: rgba(255,255,255,0.2);
    color: white !important;
}

/* =====================================================================
   HAMBURGER / MOBILE MENU
   ===================================================================== */
.hamburger-menu {
    display: none;
    background: rgba(45, 80, 22, 0.95);
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.6rem;
    z-index: 1001;
    position: fixed;
    top: 12px;
    right: 12px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.hamburger-menu:hover {
    background: rgba(45, 80, 22, 1);
    transform: scale(1.05);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, #2d5016 0%, #4a7c29 100%);
    z-index: 1000;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.3);
}

.mobile-menu.open { left: 0; }

.mobile-menu-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-logo {
    color: white !important;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

.close-menu {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.close-menu:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
}

.mobile-nav-links { padding: 1rem 0; }

.mobile-nav-links a {
    display: block;
    color: white !important;
    text-decoration: none;
    padding: 1.2rem 1.5rem;
    transition: background 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 1rem;
    font-weight: 500;
}

.mobile-nav-links a:hover { background: rgba(255,255,255,0.1); }

.mobile-nav-links a.active {
    background: rgba(255,255,255,0.2);
    border-left: 4px solid white;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =====================================================================
   BLOG CATEGORY NAV BAR
   ===================================================================== */
.blog-categories {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.blog-cat-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.blog-cat-content a {
    background: white;
    color: #2d5016 !important;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #4a7c29;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.blog-cat-content a:hover {
    background: #4a7c29;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-decoration: none;
}

.blog-cat-content a.current {
    background: #4a7c29;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* =====================================================================
   LAYOUT
   ===================================================================== */
.pageHeader { display: none !important; }
#splash { display: none !important; }
div[style*="background-image"] { display: none !important; }
.bpost img[src*="All blogs"] { display: none !important; }

#wrapper {
    background: #f5f5f5;
    min-height: 100vh;
    margin-top: 30px;
}

#inner {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 30px 20px 20px;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border-radius: 12px;
    position: relative;
    z-index: 10;
}

/* =====================================================================
   POSTS
   ===================================================================== */
.bpost, .post {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.bpost:hover, .post:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.bpost h1, .bpost h2, .bpost h3,
h1, h2, h3 {
    color: #2d5016 !important;
    font-family: 'Georgia', serif !important;
    margin-bottom: 15px;
}

.bpost h2 {
    border-bottom: 2px solid #4a7c29;
    padding-bottom: 10px;
    font-size: 1.8em;
}

.bpost a, #wrapper a, #inner a {
    color: #4a7c29 !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.bpost a:hover, #wrapper a:hover, #inner a:hover {
    color: #2d5016 !important;
    text-decoration: underline;
}

.bsmallhead {
    background: #f7fafc;
    padding: 10px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    border-left: 4px solid #4a7c29;
}

.bpost img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    max-width: 100%;
    height: auto;
}

.bpost img:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* =====================================================================
   PAGINATION
   ===================================================================== */
.center p {
    background: #f7fafc;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.center p a {
    background: #4a7c29;
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    margin: 0 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-block;
}

.center p a:hover {
    background: #2d5016;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* =====================================================================
   SIDEBAR
   ===================================================================== */
#secondary {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    margin-left: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#secondary h2 {
    color: #2d5016;
    border-bottom: 2px solid #4a7c29;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.modern-footer {
    background: #2d5016;
    color: white;
    padding: 30px 0;
    margin-top: 40px;
    text-align: center;
}

.footer-links { margin-bottom: 20px; }

.footer-links a,
#wrapper .footer-links a {
    color: #a0d468 !important;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
}

.footer-links a:hover,
#wrapper .footer-links a:hover {
    color: white !important;
    text-decoration: none;
}

.footer-copyright {
    color: #aaa;
    font-size: 12px;
    margin-top: 15px;
}

.footer-copyright a,
#wrapper .footer-copyright a {
    color: #aaa !important;
}

.footer-copyright a:hover,
#wrapper .footer-copyright a:hover {
    color: white !important;
}

/* =====================================================================
   FACEBOOK BUTTON
   ===================================================================== */
.facebook-like-float {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    z-index: 1000 !important;
    display: block !important;
}

#fb-like-fixed,
#fb-like-fixed table,
#fb-like-fixed TABLE,
#fb-like-fixed td,
#fb-like-fixed TD {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* =====================================================================
   RESPONSIVE — 768px
   ===================================================================== */
@media (max-width: 768px) {

    .hamburger-menu { display: flex !important; }
    .modern-nav-content { display: none; }
    .modern-bulbmeister-nav { display: none; }

    body::before,
    body::after,
    body > *:first-child::before,
    body > *:first-child::after {
        display: none !important;
        content: none !important;
        position: static !important;
    }

    .modern-header-content {
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
        position: relative;
    }

    .modern-contact-info {
        text-align: center;
        font-size: 0.85rem;
        order: 2;
    }

    .modern-logo {
        order: 1;
        justify-content: center;
    }

    .text-logo { font-size: 1.8rem; }
    .logo-with-bg { margin: 0 auto; }

    .blog-categories { padding: 10px 0; }

    .blog-cat-content {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        text-align: center;
        padding: 0 15px;
        justify-content: center;
    }

    .blog-cat-content a {
        padding: 8px 12px;
        font-size: 12px;
        margin: 2px;
        flex: 0 0 auto;
        min-width: auto;
    }

    .bpost, .post {
        padding: 15px;
        margin: 10px;
    }

    #secondary {
        margin-left: 0;
        margin-top: 20px;
    }

    .center p a {
        display: inline-block;
        margin: 2px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .facebook-like-float { display: none !important; }

    .footer-links a {
        display: inline;
        margin: 0 8px;
        font-size: 12px;
    }

    .modern-footer {
        clear: both;
        position: relative;
        z-index: 10;
    }

    #wrapper {
        margin-top: 10px !important;
        position: relative !important;
    }

    #inner {
        margin-top: 10px !important;
        position: relative !important;
    }
}

/* =====================================================================
   RESPONSIVE — 480px
   ===================================================================== */
@media (max-width: 480px) {
    .text-logo { font-size: 1.6rem; }
    .modern-contact-info { font-size: 0.8rem; }
}
