/* ==========================================
   BATOTO CLONE - CSS STYLES
   Dark theme manga reading platform
   ========================================== */

/* CSS Variables */
:root {
    --bg-primary: #0f1117;
    --bg-secondary: #1a1d26;
    --bg-tertiary: #242734;
    --bg-card: #1e2130;
    --bg-hover: #2a2d3e;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a4b8;
    --text-muted: #6b7085;
    --accent-primary: #6c5ce7;
    --accent-secondary: #a29bfe;
    --accent-green: #00cec9;
    --accent-orange: #e17055;
    --accent-blue: #0984e3;
    --border-color: #2d3044;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
    --max-width: 1200px;
    --header-height: 64px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-primary);
}

ul, ol {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--accent-primary);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    border-radius: 0 0 var(--radius-sm) 0;
}

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

/* ==========================================
   HEADER / NAVIGATION
   ========================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.logo-img:hover {
    opacity: 0.85;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-menu li a {
    display: block;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.mobile-toggle.active .hamburger {
    background: transparent;
}

.mobile-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
    padding: calc(var(--header-height) + 40px) 0 60px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-section h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

.badge-row {
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--accent-green), #00b894);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quick-links {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.quick-link {
    padding: 8px 20px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.quick-link:hover {
    background: var(--bg-hover);
    color: var(--accent-secondary);
    border-color: var(--accent-primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #5a4bd1);
    color: #fff;
    box-shadow: 0 4px 16px rgba(108, 92, 231, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(108, 92, 231, 0.5);
    color: #fff;
}

.btn-download {
    margin-bottom: 24px;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    margin: 30px auto;
    max-width: 500px;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
    line-height: 1.8;
}

.hero-image {
    position: relative;
}

.hero-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

/* App Info Table */
.app-info-table {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
}

.app-info-table table {
    width: 100%;
    border-collapse: collapse;
}

.app-info-table tr {
    border-bottom: 1px solid var(--border-color);
}

.app-info-table tr:last-child {
    border-bottom: none;
}

.app-info-table td {
    padding: 12px 16px;
    font-size: 0.95rem;
}

.app-info-table td.label {
    color: var(--text-muted);
    font-weight: 600;
    width: 180px;
    white-space: nowrap;
}

.app-info-table td a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.app-info-table td a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

/* Screenshot Gallery */
.screenshot-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.screenshot-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    background: var(--bg-card);
}

.screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.screenshot-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

/* ==========================================
   MANGA GRID SECTION
   ========================================== */
.manga-section {
    padding: 70px 0;
}

.manga-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.manga-section .section-header h2 {
    text-align: center;
}

.manga-section .section-header h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 8px;
}

.manga-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.manga-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.manga-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-primary);
}

.manga-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.manga-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.manga-card:hover .manga-cover img {
    transform: scale(1.08);
}

.manga-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.6) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.manga-card:hover .manga-overlay {
    opacity: 1;
}

.manga-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 1;
    z-index: 2;
}

.manga-badge.hot {
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
}

.manga-badge.new {
    background: linear-gradient(135deg, #00c853, #69f0ae);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.4);
}

.manga-badge.trending {
    background: linear-gradient(135deg, #ff9800, #ffc107);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.4);
}

.manga-info {
    padding: 12px 14px 16px;
}

.manga-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.manga-card:hover .manga-title {
    color: var(--accent-primary);
}

.manga-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.manga-genre {
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.manga-rating {
    font-size: 0.75rem;
    color: #ffc107;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.manga-rating i {
    font-size: 0.65rem;
}

/* ==========================================
   CONTENT SECTIONS
   ========================================== */
.content-section {
    padding: 60px 0;
}

.content-section:nth-child(even) {
    background: var(--bg-secondary);
}

.content-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 12px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.8;
}

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

.content-section ul li,
.content-section ol li {
    position: relative;
    padding: 6px 0 6px 28px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.content-section ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 16px;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.content-section ol {
    counter-reset: item;
}

.content-section ol li {
    counter-increment: item;
}

.content-section ol li::before {
    content: counter(item) '.';
    position: absolute;
    left: 4px;
    color: var(--accent-primary);
    font-weight: 700;
}

/* ==========================================
   FEATURE CARDS
   ========================================== */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-card h3 i {
    color: var(--accent-primary);
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.15);
    border-radius: var(--radius-sm);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.feature-list {
    margin: 12px 0 0 0;
    padding: 0;
}

.feature-list li {
    padding: 8px 0 8px 28px;
    color: var(--text-secondary);
    position: relative;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 4px;
    color: var(--accent-green);
    font-weight: 700;
}

/* ==========================================
   STEP CARDS
   ========================================== */
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    position: relative;
    transition: var(--transition);
}

.step-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.step-card ul {
    margin: 12px 0;
}

.step-image {
    margin: 20px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.step-image img {
    width: 100%;
    border-radius: var(--radius-md);
}

/* ==========================================
   TROUBLESHOOTING CARDS
   ========================================== */
.trouble-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
    transition: var(--transition);
    border-left: 4px solid var(--accent-orange);
}

.trouble-card:hover {
    box-shadow: var(--shadow-sm);
}

.trouble-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.trouble-card h3 i {
    color: var(--accent-orange);
    font-size: 1rem;
}

/* ==========================================
   DOWNLOAD SECTION
   ========================================== */
.download-section {
    text-align: center;
}

.download-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.download-section p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.install-steps {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin: 24px auto;
    max-width: 600px;
    text-align: left;
}

.install-steps p {
    margin-bottom: 16px;
}

/* ==========================================
   PLATFORM LINKS
   ========================================== */
.platform-links {
    display: flex;
    gap: 16px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.platform-link {
    padding: 12px 24px;
    background: var(--bg-card);
    color: var(--accent-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-weight: 600;
    transition: var(--transition);
}

.platform-link:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

/* ==========================================
   ALTERNATIVES LIST
   ========================================== */
.alternatives-list li {
    padding: 10px 0 10px 28px;
}

.alternatives-list li strong {
    color: var(--accent-secondary);
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq-section .faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(108, 92, 231, 0.3);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.faq-question:hover {
    background: rgba(108, 92, 231, 0.05);
}

.faq-question i {
    color: var(--accent-primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 24px 18px;
}

.faq-answer p {
    color: var(--text-secondary);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand .footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--accent-secondary);
    display: block;
    margin-bottom: 8px;
    text-decoration: none;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    border-radius: 6px;
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.footer-logo-img:hover {
    opacity: 0.85;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-secondary);
}

/* ==========================================
   SCROLL TO TOP
   ========================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--accent-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 900;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    background: #5a4bd1;
}

/* ==========================================
   PAGE TEMPLATE (for subpages)
   ========================================== */
.page-header {
    padding: calc(var(--header-height) + 40px) 0 40px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.page-content {
    padding: 50px 0;
    min-height: 50vh;
}

.page-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

.page-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.page-content ul li {
    position: relative;
    padding: 6px 0 6px 28px;
    color: var(--text-secondary);
}

.page-content ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 16px;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

/* ==========================================
   CONTACT FORM
   ========================================== */
.contact-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.2);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ==========================================
   BLOG CARDS
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.blog-card-image {
    height: 200px;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 24px;
}

.blog-card-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.blog-card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.6;
}

.blog-card-meta {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ==========================================
   BLOG POST PAGES
   ========================================== */

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--accent-primary);
}

.breadcrumb i {
    font-size: 0.6rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumb span {
    color: var(--text-secondary);
}

/* Blog Post Meta */
.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.blog-post-meta span {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-post-meta i {
    color: var(--accent-primary);
    font-size: 0.8rem;
}

/* Blog Article Content */
.blog-post-content {
    padding-bottom: 60px;
}

.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.blog-article p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.9;
    margin-bottom: 18px;
}

.blog-article a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.blog-article a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.blog-article h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.blog-article h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 28px;
    margin-bottom: 12px;
}

.blog-article ul,
.blog-article ol {
    color: var(--text-secondary);
    padding-left: 24px;
    margin-bottom: 20px;
}

.blog-article li {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 8px;
}

.blog-article li strong {
    color: var(--text-primary);
}

/* Comparison Table in Blog */
.comparison-table {
    overflow-x: auto;
    margin: 24px 0 32px;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.comparison-table thead tr {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
}

.comparison-table th {
    padding: 14px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    text-align: left;
    white-space: nowrap;
}

.comparison-table td {
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover {
    background: var(--bg-hover);
}

/* Blog CTA Box */
.blog-cta {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(162, 155, 254, 0.1));
    border: 1px solid rgba(108, 92, 231, 0.3);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-top: 40px;
}

.blog-cta p {
    margin-bottom: 0 !important;
    font-size: 1rem !important;
    color: var(--text-primary) !important;
}

.blog-cta a {
    color: var(--accent-secondary) !important;
    font-weight: 600;
}

/* Blog Navigation (Prev/Next) */
.blog-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(108, 92, 231, 0.08);
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-image {
        max-width: 400px;
    }

    .screenshot-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .manga-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        align-items: stretch;
        padding: 80px 20px 20px;
        gap: 4px;
        transition: right 0.3s ease;
        border-left: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li a {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .screenshot-gallery {
        grid-template-columns: 1fr;
    }

    .manga-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .manga-info {
        padding: 10px 12px 14px;
    }

    .manga-title {
        font-size: 0.8rem;
    }

    .content-section {
        padding: 40px 0;
    }

    .content-section h2 {
        font-size: 1.4rem;
    }

    .feature-card,
    .step-card,
    .trouble-card {
        padding: 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-post-meta {
        gap: 12px;
    }

    .blog-article h2 {
        font-size: 1.3rem;
    }

    .blog-nav {
        flex-direction: column;
    }

    .blog-nav .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .quick-links {
        flex-direction: column;
    }

    .platform-links {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.3rem;
    }

    .manga-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .manga-badge {
        padding: 3px 7px;
        font-size: 0.55rem;
    }

    .manga-info {
        padding: 8px 10px 12px;
    }

    .manga-title {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }

    .manga-genre {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .manga-rating {
        font-size: 0.65rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .app-info-table td.label {
        width: 120px;
    }

    .faq-question {
        padding: 14px 18px;
        font-size: 0.9rem;
    }
}

/* ==========================================
   LOADING ANIMATION
   ========================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ==========================================
   PLACEHOLDER IMAGES
   ========================================== */
.placeholder-img {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    min-height: 200px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Selection */
::selection {
    background: rgba(108, 92, 231, 0.4);
    color: var(--text-primary);
}
