/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    --primary: #01875f; /* Green color suitable for Android/APK niche */
    --primary-hover: #016b4b;
    --dark: #111111;
    --gray: #666666;
    --light-gray: #f5f5f5;
    --bg-color: #f0f2f5;
    --card-bg: #ffffff;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: #333;
    line-height: 1.6;
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
nav {
    background-color: var(--primary);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.logo-text {
    letter-spacing: 0.5px;
}

/* ==========================================================================
   Sidebar (Mobile Menu) & Overlay
   ========================================================================== */
#overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    backdrop-filter: blur(2px);
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    background-color: #fff;
    overflow-x: hidden;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

.sidenav-header {
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    background: var(--primary);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidenav a {
    padding: 15px 20px;
    text-decoration: none;
    font-size: 16px;
    color: #333;
    display: block;
    border-bottom: 1px solid var(--light-gray);
    transition: 0.2s;
    font-weight: 500;
}

.sidenav a:hover {
    background-color: var(--light-gray);
    color: var(--primary);
    padding-left: 25px;
}

/* ==========================================================================
   Cards & Content Blocks
   ========================================================================== */
.card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid #ebebeb;
}

.app-header {
    display: flex;
    gap: 15px;
    align-items: center;
}

.app-icon {
    border-radius: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    object-fit: cover;
}

.dev-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.dev-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-download, .btn-secondary {
    display: inline-block;
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    text-align: center;
    box-sizing: border-box;
}

.btn-download {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(1, 135, 95, 0.2);
}

.btn-download:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--light-gray);
    color: var(--dark);
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* ==========================================================================
   Horizontal Scroll (Screenshots)
   ========================================================================== */
.ss-slider {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding-bottom: 15px;
    margin-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
}

.ss-slider::-webkit-scrollbar {
    height: 6px;
}

.ss-slider::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.ss-slider::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.ss-slider img {
    border-radius: 10px;
    scroll-snap-align: start;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* ==========================================================================
   Article Content & Typography
   ========================================================================== */
.article-content {
    color: #444;
    font-size: 16px;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 15px;
}

.article-content h2, .article-content h3 {
    color: var(--dark);
    margin-top: 25px;
    margin-bottom: 15px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.article-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.article-content a:hover {
    text-decoration: underline;
}

.article-content ul, .article-content ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

/* ==========================================================================
   FAQs (Accordion Style)
   ========================================================================== */
details {
    background: #fafafa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

details[open] {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(1, 135, 95, 0.1);
}

summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--dark);
    outline: none;
    font-size: 15px;
    list-style: none; /* Remove default arrow in modern browsers */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none; /* Remove arrow in Safari/Chrome */
}

summary::after {
    content: '+';
    color: var(--primary);
    font-size: 20px;
    font-weight: bold;
    transition: transform 0.2s;
}

details[open] summary::after {
    content: '-';
    transform: rotate(180deg);
}

/* ==========================================================================
   Grid Layout for Recommended Posts/Guides
   ========================================================================== */
.guide-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-color: #d0d0d0;
}

.guide-card img {
    display: block;
    object-fit: cover;
}

/* ==========================================================================
   Ads Box Container
   ========================================================================== */
.ad-box {
    min-height: 50px;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    border-radius: 8px;
    color: #999;
    font-size: 12px;
    text-align: center;
    overflow: hidden;
    border: 1px dashed #ccc;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: #fff;
    border-top: 1px solid var(--border-color);
    padding: 50px 0 20px;
    margin-top: 50px;
    color: #555;
}

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

.footer-brand h2 {
    margin-top: 0;
    color: var(--dark);
    font-size: 22px;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons svg {
    width: 24px;
    height: 24px;
    fill: #888;
    transition: 0.2s;
}

.social-icons a:hover svg {
    fill: var(--primary);
    transform: scale(1.1);
}

.footer-links h4 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: 0.2s;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px; /* Slide effect on hover */
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
    font-size: 13px;
    color: #777;
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 600px) {
    .container {
        padding: 0 10px;
    }
    .card {
        padding: 15px;
    }
    .app-icon {
        width: 70px;
        height: 70px;
    }
    .app-header h1 {
        font-size: 20px !important;
    }
}
