/*
Theme Name: Webtoonoku Pro
Theme URI: https://webtoonoku.com
Author: Webtoonoku Team
Author URI: https://webtoonoku.com
Description: Profesyonel Manga ve Webtoon Platformu WordPress Temasi
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: webtoonoku
Tags: manga, webtoon, comics, responsive, seo-friendly
*/

/* ==================== CSS RESET ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

/* ==================== LAYOUT ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==================== HEADER ==================== */
.site-header {
    background: #1a1a2e;
    color: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.site-logo span {
    color: #e94560;
}

/* Navigation */
.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
}

.main-nav a:hover {
    color: #e94560;
}

/* Search */
.header-search {
    position: relative;
    flex: 0 0 250px;
}

.header-search input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.9rem;
}

.header-search input::placeholder {
    color: rgba(255,255,255,0.6);
}

.header-search button {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
}

/* User Actions */
.user-actions {
    display: flex;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #e94560;
    color: #fff;
}

.btn-primary:hover {
    background: #d63d56;
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==================== MAIN ==================== */
.site-main {
    min-height: calc(100vh - 300px);
    padding: 30px 0;
}

/* ==================== HERO ==================== */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 40px 0;
    margin-bottom: 30px;
    color: #fff;
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ==================== SECTIONS ==================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: #e94560;
    border-radius: 2px;
}

.view-all {
    color: #e94560;
    font-weight: 500;
    font-size: 0.9rem;
}

.view-all:hover {
    text-decoration: underline;
}

/* ==================== MANGA GRID ==================== */
.manga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.manga-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.manga-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

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

.manga-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.manga-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.manga-card-badge.ongoing {
    background: #ffc107;
    color: #333;
}

.manga-card-badge.completed {
    background: #28a745;
    color: #fff;
}

.manga-card-badge.hiatus {
    background: #6c757d;
    color: #fff;
}

.manga-card-info {
    padding: 12px;
}

.manga-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #333;
}

.manga-card-meta {
    font-size: 0.8rem;
    color: #666;
}

.manga-card-chapter {
    color: #e94560;
    font-weight: 500;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background: #1a1a2e;
    color: rgba(255,255,255,0.8);
    padding: 40px 0 20px;
    margin-top: 40px;
}

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

.footer-widget h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.footer-widget a {
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: 8px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1a1a2e;
        padding: 15px;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .header-search {
        flex: 1;
        order: 3;
        margin-top: 10px;
    }
    
    .header-inner {
        flex-wrap: wrap;
    }
    
    .manga-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .manga-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==================== UTILITY ==================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }

/* ==================== CONTENT SECTION ==================== */
.content-section {
    margin-bottom: 40px;
}

/* ==================== GENRE CLOUD ==================== */
.genre-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.genre-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border-radius: 25px;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.genre-tag:hover {
    background: #e94560;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.3);
}

.genre-tag .count {
    background: rgba(0,0,0,0.1);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.genre-tag:hover .count {
    background: rgba(255,255,255,0.2);
}

/* ==================== DROPPED BADGE ==================== */
.manga-card-badge.dropped {
    background: #dc3545;
    color: #fff;
}

/* ==================== RESPONSIVE GENRE CLOUD ==================== */
@media (max-width: 768px) {
    .genre-cloud {
        gap: 8px;
    }
    
    .genre-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}
