/* ================================================
   OPM Manga Hub - Anime Theme Stylesheet
   ================================================ */

/* CSS Variables for Anime Theme Colors */
:root {
    --primary-color: #ff4444;
    --secondary-color: #ffcc00;
    --dark-bg: #1a1a2e;
    --darker-bg: #0f0f1e;
    --light-text: #ffffff;
    --gray-text: #b8b8d4;
    --accent-color: #ff6b6b;
    --card-bg: #16213e;
    --hover-color: #ff5555;
    --shadow: rgba(255, 68, 68, 0.3);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    color: var(--light-text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ================================================
   Header & Navigation
   ================================================ */
header {
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--card-bg) 100%);
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 4px 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    padding: 1rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--shadow);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: rgba(255, 68, 68, 0.1);
    transform: translateY(-2px);
}

/* ================================================
   Hero Section
   ================================================ */
.hero-section {
    padding: 3rem 0;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px var(--shadow);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px var(--shadow), 0 0 20px var(--shadow);
    }
    to {
        text-shadow: 0 0 20px var(--shadow), 0 0 30px var(--shadow), 0 0 40px var(--shadow);
    }
}

.hero-image {
    max-width: 600px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow);
    transition: transform 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ================================================
   Article Section
   ================================================ */
.article-section {
    padding: 3rem 0;
}

.article-section article {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.article-section h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
}

.article-section p {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    line-height: 1.8;
}

.article-section a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.article-section a:hover {
    color: var(--accent-color);
}

/* ================================================
   Manga Information Table
   ================================================ */
.info-section {
    padding: 3rem 0;
}

.info-section h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
}

.table-container {
    overflow-x: auto;
}

.manga-info-table {
    width: 100%;
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 68, 68, 0.2);
}

.manga-info-table th,
.manga-info-table td {
    padding: 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 68, 68, 0.1);
}

.manga-info-table th {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--light-text);
    font-weight: bold;
    width: 30%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.manga-info-table td {
    color: var(--gray-text);
    font-size: 1.1rem;
}

.manga-info-table tr:last-child td,
.manga-info-table tr:last-child th {
    border-bottom: none;
}

.manga-info-table tr:hover {
    background: rgba(255, 68, 68, 0.05);
}

/* ================================================
   Blog Section
   ================================================ */
.blog-section {
    padding: 3rem 0;
}

.blog-section h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 68, 68, 0.2);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px var(--shadow);
    border-color: var(--primary-color);
}

.blog-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.blog-content p {
    color: var(--gray-text);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* ================================================
   Blog Post Page
   ================================================ */
.blog-post {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 68, 68, 0.2);
    margin: 3rem 0;
}

.post-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 68, 68, 0.2);
    color: var(--gray-text);
}

.post-meta span {
    font-size: 0.9rem;
}

.post-content h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin: 2rem 0 1rem 0;
}

.post-content p {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    text-align: justify;
}

.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
}

.post-content a:hover {
    color: var(--accent-color);
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255, 68, 68, 0.2);
}

.tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.tag {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--light-text);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* ================================================
   Related Posts & Sidebar
   ================================================ */
.related-posts {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 68, 68, 0.2);
    margin-top: 2rem;
}

.related-posts h3 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.related-posts ul {
    list-style: none;
}

.related-posts li {
    margin-bottom: 1rem;
}

.related-posts a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-posts a:hover {
    color: var(--primary-color);
}

/* ================================================
   Page Content (About, Contact, etc.)
   ================================================ */
.page-content {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 68, 68, 0.2);
    margin: 3rem 0;
}

.page-content h1 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.page-content h2 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin: 2rem 0 1rem 0;
}

.page-content h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
}

.page-content p {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.page-content ul,
.page-content ol {
    color: var(--gray-text);
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.page-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.feature-list,
.philosophy-list {
    list-style: none;
    margin-left: 0;
}

.feature-list li,
.philosophy-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 1rem;
}

.feature-list li::before,
.philosophy-list li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* ================================================
   Contact Form
   ================================================ */
.contact-form {
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--darker-bg);
    border: 2px solid rgba(255, 68, 68, 0.3);
    border-radius: 8px;
    color: var(--light-text);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ================================================
   Buttons
   ================================================ */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--light-text);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow);
}

/* ================================================
   Info Cards
   ================================================ */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.info-card {
    background: var(--darker-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 68, 68, 0.2);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px var(--shadow);
}

.info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ================================================
   Author Section
   ================================================ */
.author-profiles {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

.author-card {
    display: flex;
    gap: 2rem;
    background: var(--darker-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 68, 68, 0.2);
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: bold;
    color: var(--light-text);
}

.author-details h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.author-role {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.author-bio {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.author-expertise {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ================================================
   Privacy Policy
   ================================================ */
.privacy-policy .policy-section {
    margin-bottom: 2rem;
}

.last-updated {
    color: var(--gray-text);
    font-style: italic;
    margin-bottom: 2rem;
}

/* ================================================
   Footer
   ================================================ */
footer {
    background: var(--darker-bg);
    border-top: 3px solid var(--primary-color);
    margin-top: 4rem;
    padding: 3rem 0 1rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--gray-text);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 68, 68, 0.2);
    color: var(--gray-text);
}

/* ================================================
   Responsive Design
   ================================================ */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .article-section article {
        padding: 2rem;
    }
    
    .article-section h1 {
        font-size: 2rem;
    }
    
    .post-header h1 {
        font-size: 1.8rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .author-card {
        flex-direction: column;
        text-align: center;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .page-content {
        padding: 2rem;
    }
    
    .page-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    .logo h2 {
        font-size: 1.3rem;
    }
    
    .manga-info-table th,
    .manga-info-table td {
        padding: 1rem;
        font-size: 0.9rem;
    }
}