/* OtakuKart Inspired Theme Main CSS */

/* Global Reset & Typography */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--light-bg);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #000;
    margin-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Ticker Bar */
.top-bar-ticker {
    background-color: #000;
    color: #fff;
    padding: 10px 0;
    font-size: 12px;
    font-weight: 700;
}

.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.badge-pulsing {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.top-bar-links a {
    color: #aaa;
    margin-left: 20px;
    text-transform: uppercase;
}

.top-bar-links a:hover {
    color: #fff;
}

/* Header & Branding */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-title {
    font-size: 28px;
    margin: 0;
    font-weight: 800;
    letter-spacing: -1px;
}

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

.title-dot {
    color: var(--primary-color);
}

/* Main Navigation */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.main-navigation li {
    margin: 0 15px;
}

.main-navigation a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle .hamburger-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #000;
    margin: 5px 0;
}

/* Header Actions */
.header-right-actions {
    display: flex;
    align-items: center;
}

.search-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    margin-right: 15px;
}

.btn-newsletter {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.btn-newsletter:hover {
    background-color: var(--primary-hover);
    color: #fff;
}

/* Search Dropdown Area */
.search-overlay-bar {
    display: none;
    background: #000;
    padding: 15px 0;
    position: absolute;
    width: 100%;
    left: 0;
    top: 100%;
    border-bottom: 3px solid var(--primary-color);
}

.search-overlay-bar.active {
    display: block;
}

.search-overlay-bar .search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
}

.search-overlay-bar .search-field {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search-overlay-bar .search-submit-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: 700;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* Hero Section */
.otaku-hero-grid-section {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.hero-main-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.hero-image-wrapper {
    position: relative;
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-main-card:hover .hero-img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 800;
    border-radius: 3px;
    letter-spacing: 1px;
}

.hero-content {
    padding: 25px;
}

.hero-title {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 12px;
}

.hero-excerpt {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 15px;
}

.post-meta {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.post-meta .separator {
    margin: 0 8px;
}

.hero-sidebar-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-sub-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    gap: 15px;
    padding: 12px;
}

.sub-card-image-wrap {
    width: 110px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.sub-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sub-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-badge-small {
    color: var(--primary-color);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.sub-card-title {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 6px;
}

/* Two Columns Layout */
.main-two-columns-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.section-title-bar {
    border-bottom: 3px solid #000;
    padding-bottom: 10px;
    margin-bottom: 25px;
}

.section-title-bar .title-text {
    background-color: #000;
    color: #fff;
    padding: 6px 15px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
}

.articles-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.article-grid-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.card-thumbnail-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.article-grid-card:hover .card-thumbnail {
    transform: scale(1.05);
}

.card-body {
    padding: 15px;
}

.card-title {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.card-excerpt {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Sidebar Styling */
.widget-title {
    font-size: 18px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 8px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.latest-text-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.latest-text-item {
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
}

.latest-text-item:last-child {
    border-bottom: none;
}

.item-time {
    font-size: 11px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 4px;
}

.item-title {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
}

/* Single Post Page Template */
.single-post-container {
    max-width: 800px;
    margin: 40px auto;
}

.entry-header {
    margin-bottom: 25px;
}

.entry-header .category-badge-above {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 800;
    border-radius: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.entry-title {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 15px;
}

.single-post-meta {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    margin-bottom: 30px;
}

.single-featured-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 25px;
}

/* Footer Widget Area */
.site-footer {
    background-color: var(--dark-bg);
    color: #ccc;
    padding: 60px 0 0;
    margin-top: 50px;
    font-size: 14px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
}

.footer-logo {
    font-size: 26px;
    color: #fff;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-about {
    line-height: 1.7;
    color: #999;
}

.footer-heading {
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links-list a {
    color: #999;
}

.footer-links-list a:hover {
    color: #fff;
}

.footer-social-links {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background-color: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background-color 0.2s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.footer-bottom-bar {
    background-color: #050505;
    padding: 20px 0;
    border-top: 1px solid #111;
}

.bottom-bar-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.footer-bottom-menu li {
    margin-left: 15px;
}

.footer-bottom-menu a {
    color: #666;
    font-size: 12px;
}

.footer-bottom-menu a:hover {
    color: #fff;
}

/* Responsive styles */
@media (max-width: 991px) {
    .otaku-hero-grid-section {
        grid-template-columns: 1fr;
    }
    .main-two-columns-layout {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-navigation {
        display: none; /* Add JS functionality to expand mobile menu */
    }
    .menu-toggle {
        display: block;
    }
    .articles-grid-layout {
        grid-template-columns: 1fr;
    }
    .bottom-bar-wrap {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}
