/*
Theme Name: Karaoke AdSense Pro
Theme URI: https://karaokenearme.my
Author: KaraokeNearMe Team
Author URI: https://karaokenearme.my
Description: Premium WordPress theme optimized for Google AdSense approval. Fast, mobile-first, SEO-optimized with clean design and high readability.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: karaoke-adsense-pro
Tags: blog, directory, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready, adsense-ready

This theme is optimized for Google AdSense approval with:
- Clean, professional design
- High contrast and readability
- Mobile-first responsive design
- Fast loading times
- SEO optimized structure
*/

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #2c3e50;
    background-color: #f5f7fa;
    font-weight: 400;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 700;
    color: #1a252f;
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.3;
}

h1 {
    font-size: 2.25rem;
    color: #d32f2f;
    margin-top: 0;
    padding-bottom: 0.5em;
    border-bottom: 3px solid #d32f2f;
}

h2 {
    font-size: 1.875rem;
    color: #2c3e50;
    border-left: 5px solid #d32f2f;
    padding-left: 1rem;
    margin-top: 2.5em;
}

h3 {
    font-size: 1.5rem;
    color: #34495e;
    margin-top: 2em;
}

h4 {
    font-size: 1.25rem;
    color: #34495e;
}

h5, h6 {
    font-size: 1.125rem;
    color: #34495e;
}

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

a {
    color: #d32f2f;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #b71c1c;
    text-decoration: underline;
}

strong, b {
    font-weight: 700;
}

em, i {
    font-style: italic;
}

/* ============================================
   LAYOUT STRUCTURE
   ============================================ */
.site-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    box-shadow: 0 0 40px rgba(0,0,0,0.05);
}

.site-header {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-branding {
    flex: 0 0 auto;
}

.site-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
}

.site-title a {
    color: #ffffff;
    text-decoration: none;
}

.site-title a:hover {
    color: #ffd700;
    text-decoration: none;
}

.site-description {
    color: #ecf0f1;
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-navigation {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    background-color: #d32f2f;
    color: #ffffff;
    text-decoration: none;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: #d32f2f;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: #b71c1c;
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    background: #ecf0f1;
    padding: 1rem 2rem;
    font-size: 0.875rem;
    border-bottom: 1px solid #ddd;
}

.breadcrumbs-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumbs a {
    color: #d32f2f;
    font-weight: 500;
}

.breadcrumbs span {
    color: #7f8c8d;
    margin: 0 0.5rem;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    display: flex;
    gap: 2.5rem;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.site-main {
    background: #ffffff;
}

/* ============================================
   ARTICLES & POSTS
   ============================================ */
article {
    background: #ffffff;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    margin-top: 0;
    margin-bottom: 1rem;
}

.entry-meta {
    color: #7f8c8d;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

.entry-meta span {
    margin-right: 1.5rem;
}

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.entry-content > * {
    margin-bottom: 1.5em;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */
.table-of-contents,
.ez-toc-container,
#toc_container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none !important;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.25);
}

.toc-title,
.ez-toc-title {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
    text-align: center;
    border: none !important;
}

.toc-list,
.ez-toc-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.toc-list li,
.ez-toc-list li {
    margin-bottom: 0.75rem !important;
}

.toc-list a,
.ez-toc-list a {
    color: #ffffff !important;
    font-size: 1rem;
    padding: 0.5rem 0;
    display: block;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.toc-list a:hover,
.ez-toc-list a:hover {
    color: #ffd700 !important;
    padding-left: 1rem;
    text-decoration: none !important;
}

/* ============================================
   LISTS
   ============================================ */
.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
    padding: 0;
}

.entry-content ul li,
.entry-content ol li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ul li::marker {
    color: #d32f2f;
}

.entry-content ol {
    list-style-type: decimal;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    flex: 0 0 320px;
    width: 320px;
}

.widget {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.75rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-top: 4px solid #d32f2f;
}

.widget-title {
    color: #1a252f;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #ecf0f1;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f7fa;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #2c3e50;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    display: block;
}

.widget ul li a:hover {
    color: #d32f2f;
    padding-left: 0.75rem;
    text-decoration: none;
}

/* Search Widget */
.widget_search .search-form {
    position: relative;
}

.widget_search input[type="search"] {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #ecf0f1;
    border-radius: 50px;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.widget_search input[type="search"]:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.2);
}

.widget_search button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #d32f2f;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.widget_search button:hover {
    background: #b71c1c;
}

/* ============================================
   ADSENSE OPTIMIZATION ZONES
   ============================================ */
.adsense-top {
    margin: 2rem auto;
    text-align: center;
    min-height: 90px;
    background: #f5f7fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adsense-sidebar {
    margin: 1.5rem 0;
    min-height: 250px;
    background: #f5f7fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adsense-content {
    margin: 2rem 0;
    min-height: 90px;
    background: #f5f7fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #1a252f;
    color: #ecf0f1;
    padding: 3rem 2rem 1.5rem;
    margin-top: 3rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget h3 {
    color: #ffffff;
    font-size: 1.125rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 0.5rem;
}

.footer-widget a {
    color: #ecf0f1;
    font-size: 0.9375rem;
}

.footer-widget a:hover {
    color: #ffd700;
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    font-size: 0.875rem;
    color: #95a5a6;
}

.site-info a {
    color: #ffd700;
}

/* ============================================
   BUTTONS
   ============================================ */
.button,
.btn,
input[type="submit"],
button[type="submit"] {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: #ffffff;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
    display: inline-block;
}

.button:hover,
.btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
    text-decoration: none;
    color: #ffffff;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .site-content {
        flex-direction: column;
    }

    .sidebar {
        flex: 1;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .header-inner {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .main-navigation {
        display: none;
        width: 100%;
        order: 3;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
    }

    .main-navigation a {
        padding: 1rem;
        border-radius: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .menu-toggle {
        display: block;
    }

    .site-content {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }

    article {
        padding: 1.5rem;
    }

    .breadcrumbs {
        padding: 0.75rem 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .site-content {
        padding: 1rem 0.75rem;
    }

    article {
        padding: 1rem;
        border-radius: 6px;
    }

    .widget {
        padding: 1.25rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus {
    outline: 2px solid #d32f2f;
    outline-offset: 2px;
}

::selection {
    background: #d32f2f;
    color: #ffffff;
}

::-moz-selection {
    background: #d32f2f;
    color: #ffffff;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #d32f2f;
    color: #ffffff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 100000;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .main-navigation,
    .sidebar,
    .site-footer,
    .breadcrumbs {
        display: none;
    }

    .site-content {
        max-width: 100%;
        padding: 0;
    }

    article {
        box-shadow: none;
        padding: 0;
    }
}
