/*
Theme Name: MB17 Theme
Theme URI: https://mtminings.com
Author: MB17 Team
Author URI: https://mtminings.com
Description: Professional blockchain mining theme template with Bing SEO optimization, featuring homepage, archive, single post and more
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mb17
Tags: crypto, blockchain, responsive, seo, bing-optimized, dark-mode
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8b5cf6;
    --primary-hover: #7c3aed;
    --secondary-color: #a78bfa;
    --text-color: #e2e0ea;
    --text-heading: #f5f3ff;
    --bg-color: #1a1a2e;
    --bg-card: #16213e;
    --bg-card-hover: #1f3056;
    --section-bg: #0f3460;
    --border-color: #2d2b55;
    --header-height: 70px;
    --shadow-color: rgba(139, 92, 246, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

main {
    margin-top: var(--header-height);
}

section {
    padding: 80px 0;
}

h1, h2, h3 {
    line-height: 1.2;
    color: var(--text-heading);
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.hero {
    background: var(--section-bg);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

.features-grid,
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card,
.product-card {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover,
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
    border-color: var(--primary-color);
}

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

.product-card img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.news {
    background: var(--section-bg);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
    border-color: var(--primary-color);
}

.news-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-content {
    padding: 1.5rem;
}

.news-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-heading);
}

.news-content p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.news-content time {
    color: var(--secondary-color);
    font-size: 0.875rem;
}

.why-mining {
    background: var(--bg-color);
}

.why-mining-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.why-mining-card {
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.why-mining-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow-color);
    border-color: var(--primary-color);
}

.why-mining-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.why-mining-card p {
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.vip-rebate {
    background: var(--section-bg);
}

.vip-table-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.vip-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
}

.vip-table thead {
    background: var(--primary-color);
}

.vip-table thead th {
    padding: 1rem 1.5rem;
    text-align: center;
    font-weight: 600;
    color: var(--bg-color);
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.vip-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

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

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

.vip-table tbody td {
    padding: 1rem 1.5rem;
    text-align: center;
    color: var(--text-color);
    font-size: 1rem;
}

.vip-table tbody td:first-child {
    color: var(--primary-color);
    font-weight: 600;
}

.vip-table tbody td:last-child {
    color: var(--text-heading);
    font-weight: 500;
}

.faq {
    background: var(--bg-color);
}

.faq-list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px var(--shadow-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-heading);
    font-size: 1.05rem;
    font-weight: 500;
    text-align: left;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 1rem;
}

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

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: var(--secondary-color);
    line-height: 1.7;
    font-size: 0.95rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer {
    background: var(--bg-card);
    color: var(--secondary-color);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-color);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-list.active {
        max-height: 500px;
    }

    .nav-list li {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-list a {
        display: block;
        padding: 1rem 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
    }

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

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

    .why-mining-grid {
        grid-template-columns: 1fr;
    }

    .vip-table-wrapper {
        overflow-x: auto;
    }

    .vip-table {
        min-width: 500px;
    }

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

    .hero-buttons {
        flex-direction: column;
    }
}

.breadcrumb {
    background: var(--section-bg);
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

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

.breadcrumb span:last-child {
    color: var(--text-heading);
    font-weight: 500;
}

.news-list {
    padding: 0 0 4rem 0;
}

.news-list h1 {
    text-align: center;
    margin-bottom: 3rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(.disabled) {
    background: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: var(--bg-color);
    border-color: var(--primary-color);
}

.pagination-btn.disabled {
    color: #475569;
    cursor: not-allowed;
}

.pagination-dots {
    padding: 0 0.5rem;
    color: var(--secondary-color);
}

.related-articles {
    background: var(--section-bg);
    padding: 4rem 0;
}

.related-articles h2 {
    margin-bottom: 2.5rem;
}

.content-wrapper {
    padding: 0 0 4rem 0;
}

.content-wrapper .container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.article-main {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.article-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.article-meta {
    color: var(--secondary-color);
}

.article-featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.article-content h2 {
    font-size: 1.5rem;
    text-align: left;
    margin: 2rem 0 1rem 0;
}

.article-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--text-color);
}

.article-content ul {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--secondary-color);
    background: var(--section-bg);
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    border-radius: 0 8px 8px 0;
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.sidebar-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
}

.sidebar-news {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-news-item {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.sidebar-news-item:hover {
    background-color: var(--section-bg);
}

.sidebar-news-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.sidebar-news-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.sidebar-news-info h4 {
    font-size: 0.9rem;
    line-height: 1.4;
    font-weight: 500;
    color: var(--text-heading);
}

.sidebar-news-info time {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

@media (max-width: 1024px) {
    .content-wrapper .container {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sidebar-section {
        flex: 1;
        min-width: 300px;
    }
}

@media (max-width: 768px) {
    .article-main {
        padding: 1.5rem;
    }
    
    .article-header h1 {
        font-size: 1.5rem;
    }
    
    .article-content h2 {
        font-size: 1.25rem;
    }
    
    .article-sidebar {
        flex-direction: column;
    }
    
    .sidebar-section {
        min-width: auto;
    }
}

.pagination-wrap {
    padding: 20px 10px;
    margin-top: 20px;
    border-radius: 8px;
}

.pagination-wrap .paging-cls {
    text-align: center;
}

.pagination-wrap .paging-cls li {
    display: inline-block;
    margin: 0 5px;
    list-style: none;
}

.pagination-wrap .paging-cls span,
.pagination-wrap .paging-cls a {
    display: inline-block;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    height: 44px;
    line-height: 44px;
    width: 44px;
    margin: 0 3px;
    font-size: 14px;
    color: var(--text-color);
    text-decoration: none;
    background: var(--bg-card);
}

.pagination-wrap .paging-cls span:hover,
.pagination-wrap .paging-cls a:hover {
    background: var(--primary-color);
    color: var(--bg-color) !important;
}

.pagination-wrap .paging-cls .current {
    background: var(--primary-color);
    color: var(--bg-color);
    font-weight: bold;
}

.pagination-wrap .paging-cls .fa-angle-double-left::before {
    content: "<";
}

.pagination-wrap .paging-cls .fa-angle-double-right::before {
    content: ">";
}

.pagination-wrap .active a {
    background-color: var(--primary-color) !important;
    color: var(--bg-color) !important;
    font-weight: bold;
}
