/*
Theme Name: M999 APK
Theme URI: http://localhost/wordpress
Author: m999 
Description: M999 APK Download Theme
Version: 1.0
License: GPL v2
*/

/* WordPress-managed logo and page content. Homepage layout CSS remains in index.php. */
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { display: block; width: auto; max-width: 190px; max-height: 58px; object-fit: contain; }
.m999-page { min-height: 60vh; background: #0d1117; color: #e6edf3; padding: 64px 0; }
.m999-page .container { width: min(1100px, calc(100% - 32px)); margin: 0 auto; }
.entry-content { font: 400 1rem/1.75 Inter, sans-serif; }
.entry-content img { max-width: 100%; height: auto; }
.entry-content a { color: #f5c542; }
.entry-content h2, .entry-content h3 { margin: 1.5em 0 .6em; }
.m999-mobile-nav ul, .m999-footer-links { list-style: none; margin: 0; padding: 0; }

/* Shared templates: header, footer, and WordPress editor pages. */
body { margin: 0; background: #0d1117; color: #e6edf3; font-family: Inter, Arial, sans-serif; }
.m999-header { position: sticky; top: 0; z-index: 1000; background: #111820; border-bottom: 1px solid #27313d; }
.m999-nav { width: min(1100px, calc(100% - 32px)); min-height: 70px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.m999-logo, .m999-footer-logo { color: #f5c542; font-size: 1.3rem; font-weight: 800; text-decoration: none; }
.m999-nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.m999-nav-links a, .m999-footer-links a { color: #e6edf3; text-decoration: none; }
.m999-hamburger { display: none; background: none; border: 0; color: #fff; }
.m999-mobile-nav { display: none; padding: 0 16px 16px; }
.m999-mobile-nav.open { display: block; }
.m999-mobile-nav li { list-style: none; }
.m999-mobile-nav a { display: block; padding: 10px; color: #fff; text-decoration: none; }
@media (max-width: 760px) { .m999-nav-links { display: none; } .m999-hamburger { display: block; } }

/* Blog, categories, archives and single posts. */
.m999-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.m999-post-card { overflow: hidden; background: #151d27; border: 1px solid #27313d; border-radius: 14px; }
.m999-post-thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.m999-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.m999-post-content { padding: 22px; }
.m999-post-content h2 { margin: 7px 0 12px; font-size: 1.25rem; }
.m999-post-content h2 a, .m999-read-more { color: #f5c542; text-decoration: none; }
.m999-post-meta { color: #9ba7b4; font-size: .85rem; }
.m999-post-meta a { color: inherit; }
.m999-content-narrow { max-width: 850px; }
.m999-single-image img { display: block; width: 100%; height: auto; border-radius: 14px; }
.navigation.pagination { margin-top: 36px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.page-numbers { padding: 9px 13px; background: #151d27; color: #fff; border-radius: 6px; text-decoration: none; }
.page-numbers.current { background: #f5c542; color: #111; }
@media (max-width: 850px) { .m999-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .m999-post-grid { grid-template-columns: 1fr; } }
