/*
Theme Name: CombooAPK Android Pro
Theme URI: https://combooapk.com
Author: CombooAPK Editorial Team
Author URI: https://combooapk.com
Description: Sleek, high-performance Android tech portal theme. AdSense optimized, mobile-first, and ultra-fast.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: combooapk-theme
*/

:root {
    --android-green: #3DDC84;
    --android-dark-green: #073042;
    --android-neon: #00E676;
    --dark-bg: #0b0f19;
    --card-bg: #ffffff;
    --body-bg: #f8fafc;
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --accent: #2563eb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--body-bg);
    line-height: 1.75;
    font-size: 16px;
}

a {
    color: #16a34a;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

/* Header */
.site-header {
    background: #0f172a;
    border-bottom: 2px solid var(--android-green);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.site-logo {
    font-size: 1.65rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.site-logo span {
    color: var(--android-green);
}

/* Desktop Navigation */
.site-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: #cbd5e1;
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.4rem 0.65rem;
    border-radius: 6px;
    display: block;
}

.site-nav a:hover {
    color: var(--android-green);
    background: rgba(61, 220, 132, 0.1);
    text-decoration: none;
}

/* Mobile Hamburger Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    outline: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 38px;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu-toggle .bar {
    width: 24px;
    height: 3px;
    background-color: var(--android-green);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Responsive Dropdown */
@media (max-width: 900px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #0f172a;
        border-top: 1px solid #1e293b;
        border-bottom: 3px solid var(--android-green);
        box-shadow: 0 10px 25px rgba(0,0,0,0.3);
        padding: 1rem 1.5rem;
    }

    .site-nav.active {
        display: block;
        animation: slideDown 0.25s ease-out forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }

    .site-nav a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .site-nav a:hover {
        background: rgba(61, 220, 132, 0.15);
        color: #ffffff;
    }

    /* Animated Hamburger Icon to X */
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* Hero Section */
.hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    padding: 3rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #334155;
    margin-bottom: 2rem;
}

.hero-banner h1 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.hero-banner h1 span {
    color: var(--android-green);
}

.hero-banner p {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto;
}

/* Main Layout */
.main-container {
    max-width: 1200px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2.5rem;
}

@media (max-width: 900px) {
    .main-container {
        grid-template-columns: 1fr;
    }
}

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

/* Post Cards */
.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

.post-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.75rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.06);
    border-color: #cbd5e1;
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.category-pill {
    background: #dcfce7;
    color: #15803d;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-title {
    font-size: 1.45rem;
    margin-bottom: 0.6rem;
    line-height: 1.35;
    font-weight: 700;
}

.post-title a {
    color: #0f172a;
}

.post-title a:hover {
    color: #16a34a;
    text-decoration: none;
}

.post-excerpt {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.read-btn {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: #16a34a;
    font-size: 0.9rem;
}

/* Single Article Styling */
.single-article {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.single-title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.25;
    color: #0f172a;
    margin-bottom: 1rem;
}

.article-body {
    margin-top: 1.75rem;
    font-size: 1.05rem;
}

.article-body h2 {
    font-size: 1.45rem;
    color: #0f172a;
    margin: 2rem 0 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid #dcfce7;
}

.article-body h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin: 1.5rem 0 0.5rem;
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body ul, .article-body ol {
    margin: 1rem 0 1.5rem 1.75rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    background: #f0fdf4;
    border-left: 4px solid var(--android-green);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    color: #166534;
    margin: 1.5rem 0;
    font-weight: 500;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.article-body th, .article-body td {
    border: 1px solid var(--border-color);
    padding: 0.75rem;
    text-align: left;
}

.article-body th {
    background-color: #f8fafc;
    font-weight: 700;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.widget-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.widget-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ad-placeholder {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    color: #94a3b8;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* Footer */
.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 3.5rem 1.5rem 2rem;
    border-top: 1px solid #1e293b;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-nav a {
    color: #cbd5e1;
}

.footer-nav a:hover {
    color: var(--android-green);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2.5rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #1e293b;
    text-align: center;
    font-size: 0.88rem;
    color: #64748b;
}
