/*
Theme Name: AK Lasbela
Theme URI: https://aklasbelapk.com
Author: AK Lasbela Team
Author URI: https://aklasbelapk.com
Description: AK Lasbela custom WordPress theme with purple-blue design
Version: 1.3.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ak-lasbela
Tags: blog, custom-menu, right-sidebar
*/

/* === RESET === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* === BODY === */
body {
    background: linear-gradient(135deg, #5500AA 0%, #7B00D4 35%, #9B30FF 65%, #BF70FF 100%);
    background-attachment: fixed;
    color: #1e1e2e;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
}

a { color: #8A2BE2; text-decoration: underline; }
a:hover { color: #5500AA; }
img { max-width: 100%; height: auto; display: block; }

/* === TOP BANNER === */
.ak-top-bar {
    background: linear-gradient(90deg, #4400AA, #7B00D4, #4400AA);
    width: 100%;
    border-bottom: 3px solid #C060FF;
}
.ak-top-bar img {
    width: 100%;
    height: auto;
    display: block;
}
.ak-top-bar-text {
    text-align: center;
    padding: 22px 20px;
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ============================================
   NAVIGATION — Purple bar, hamburger CENTER
   ============================================ */
.ak-nav {
    background: #7B00D4;
    border-bottom: 3px solid #C060FF;
    box-shadow: 0 3px 15px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 999;
}
.ak-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;   /* hamburger CENTER */
    width: 100%;
}

/* === HAMBURGER BUTTON — CENTER on purple bar === */
.ak-menu-toggle {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    padding: 14px 20px;
    color: #fff;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;           /* full width so it centers properly */
    text-align: center;
}
.ak-menu-toggle .bar {
    display: block;
    width: 30px;
    height: 3px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}
/* hamburger lines wrapper */
.ak-menu-toggle .bars-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* X animation when open */
.ak-menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.ak-menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}
.ak-menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   DROPDOWN MENU — Dark grey, LEFT aligned text
   Exactly like screenshot
   ============================================ */
#ak-primary-menu,
#ak-primary-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#ak-primary-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #3a3a3a;
    border-top: 2px solid #C060FF;
}
#ak-primary-menu.ak-open {
    display: flex;
}

/* Each item */
#ak-primary-menu > li {
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
#ak-primary-menu > li > a {
    display: block;
    padding: 16px 24px;
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    text-align: center;      /* CENTER aligned */
    letter-spacing: 0.3px;
    transition: background 0.15s, color 0.15s;
}
#ak-primary-menu > li > a:hover,
#ak-primary-menu > li.current-menu-item > a,
#ak-primary-menu > li.current-menu-ancestor > a {
    background: #4a4a4a;
    color: #fde68a;
}

/* ============================================
   MAIN WRAPPER
   ============================================ */
.ak-wrap {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.ak-content { flex: 1; min-width: 0; }
.ak-sidebar  { width: 280px; flex-shrink: 0; }

/* === POST CARD === */
article.ak-post {
    background: #ffffff;
    margin-bottom: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(100,0,200,0.25);
    border-top: 4px solid #8A2BE2;
    overflow: hidden;
}
.ak-post-inner { padding: 30px 35px; }

/* Zoom animation */
@keyframes akZoom {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.012); }
}
.ak-zoom { animation: akZoom 2s ease-in-out infinite; }

.ak-entry-meta { display: none !important; }

/* === CUSTOM META === */
.ak-custom-top {
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    color: #5500AA;
    background: #f5f3ff;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    border-bottom: 2px solid #ede9fe;
}
.ak-custom-bot {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 2px solid #ede9fe;
    text-align: center;
    font-weight: 700;
}
.ak-site-link {
    color: #6600CC !important;
    text-decoration: underline;
    font-size: 16px;
    display: block;
    margin: 6px 0;
}
.ak-time-row { font-size: 13px; color: #8A2BE2; margin-bottom: 4px; }
.ak-edit-btn {
    color: #d9534f !important;
    font-size: 12px;
    text-decoration: none;
    border: 1px solid #d9534f;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 8px;
}

/* === ENTRY CONTENT === */
.ak-post-inner .entry-content h1 { font-size: 20px !important; line-height: 1.3; margin-bottom: 6px; }
.ak-post-inner .entry-content h2 { font-size: 18px !important; line-height: 1.3; margin-bottom: 6px; }
.ak-post-inner .entry-content h3 { font-size: 16px !important; line-height: 1.3; margin-bottom: 6px; }
.ak-post-inner .entry-content p  { font-size: 18px !important; line-height: 1.3; margin-bottom: 6px; }
.ak-post-inner .entry-content blockquote { margin: 0; padding: 0; border: none; }

/* === PAGINATION === */
.ak-pagination {
    background: #fff;
    padding: 16px;
    margin-bottom: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(100,0,200,0.15);
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.ak-pagination .page-numbers {
    display: inline-block;
    padding: 7px 13px;
    border: 2px solid #8A2BE2;
    border-radius: 6px;
    text-decoration: none;
    color: #8A2BE2;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
}
.ak-pagination .page-numbers.current,
.ak-pagination .page-numbers:hover {
    background: #8A2BE2;
    color: #fff;
}

/* === SIDEBAR === */
.ak-sidebar .widget {
    background: #fff;
    padding: 20px;
    margin-bottom: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(100,0,200,0.15);
    border-top: 3px solid #8A2BE2;
}
.ak-sidebar .widget-title {
    font-size: 15px;
    font-weight: 700;
    border-bottom: 2px solid #ede9fe;
    padding-bottom: 8px;
    margin-bottom: 12px;
    color: #5500AA;
}

/* === FOOTER === */
.ak-footer {
    background: linear-gradient(90deg, #4400AA, #7B00D4, #4400AA);
    padding: 18px 20px;
    text-align: center;
    font-size: 13px;
    color: #e9d5ff;
    border-top: 3px solid #C060FF;
}
.ak-footer a { color: #fde68a; text-decoration: none; }

/* === NO RESULTS / 404 === */
.ak-no-results {
    background: #fff;
    padding: 40px;
    text-align: center;
    margin-bottom: 18px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(100,0,200,0.15);
    color: #5500AA;
}

/* === MOBILE === */
@media (max-width: 768px) {
    .ak-wrap { flex-direction: column; padding: 10px; margin: 10px auto; }
    .ak-sidebar { width: 100%; }
    .ak-post-inner { padding: 18px; }
    .ak-post-inner .entry-content h1 { font-size: 18px !important; }
    .ak-post-inner .entry-content h2 { font-size: 16px !important; }
    .ak-post-inner .entry-content h3 { font-size: 15px !important; }
    .ak-post-inner .entry-content p  { font-size: 16px !important; }
}
