/*
Theme Name: Litbuy Sheets Theme
Theme URI: https://litbuy-sheets.de
Author: Litbuy Team
Author URI: https://litbuy-sheets.de
Description: SEO-optimized theme for Litbuy Sheets with multi-page support
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: litbuy-sheets
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f5f5f5;
}

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

/* Header Styles */
.site-header {
    background: #0F1117;
    color: #fff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.site-logo h1 {
    font-size: 1.5rem;
    color: #FBBF24;
    font-weight: 700;
    margin: 0;
}

.site-logo a {
    color: #FBBF24;
    text-decoration: none;
}

/* Navigation */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    padding: 0.5rem;
    display: block;
}

.nav-menu a:hover {
    color: #FBBF24;
}

/* Dropdown Menu */
.nav-menu .menu-item-has-children > a::after {
    content: ' ▼';
    font-size: 0.7em;
}

.nav-menu .sub-menu {
    display: none;
    position: absolute;
    background: #171A23;
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    z-index: 1000;
    border-radius: 5px;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    padding: 0;
}

.nav-menu .menu-item-has-children:hover > .sub-menu {
    display: block;
}

.nav-menu .sub-menu li {
    width: 100%;
}

.nav-menu .sub-menu a {
    padding: 12px 16px;
    white-space: nowrap;
}

.nav-menu .sub-menu a:hover {
    background: #1E222E;
    color: #FBBF24;
}

/* Header Buttons */
.header-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-left: 2rem;
}

.btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
    font-size: 0.9rem;
}

.btn-primary {
    background: #FBBF24;
    color: #0F1117;
}

.btn-primary:hover {
    background: #F59E0B;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #22D3EE;
    color: #0F1117;
}

.btn-secondary:hover {
    background: #06B6D4;
    transform: translateY(-2px);
}

.btn-register {
    background: #5B8CFF;
    color: #fff;
}

.btn-register:hover {
    background: #4F7AE0;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0F1117 0%, #1E222E 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.hero-content h1,
.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #FBBF24;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Category Grid */
.categories-section {
    padding: 4rem 0;
    background: #fff;
}

.categories-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #0F1117;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s;
    border: 2px solid transparent;
    display: block;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #FBBF24;
    text-decoration: none;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #0F1117;
}

.category-card p {
    color: #666;
    margin: 0;
}

/* About Section */
.about-section {
    padding: 4rem 0;
    background: #f5f5f5;
}

.about-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #0F1117;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-box {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #0F1117;
}

.feature-box p {
    color: #666;
    font-size: 1rem;
    margin: 0;
}

/* Articles Section */
.articles-section {
    padding: 4rem 0;
    background: #fff;
}

.articles-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #0F1117;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    text-decoration: none;
    color: #1a1a1a;
    transition: all 0.3s;
    border-left: 4px solid #FBBF24;
    display: block;
}

.article-card:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
}

.article-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #0F1117;
}

.article-card p {
    color: #666;
    margin: 0;
}

/* Single Article Page */
.article-hero {
    background: linear-gradient(135deg, #0F1117 0%, #1E222E 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.article-hero h1 {
    font-size: 2.5rem;
    color: #FBBF24;
    margin-bottom: 1rem;
}

.article-hero p {
    font-size: 1.2rem;
    color: #e0e0e0;
}

.article-content-wrapper {
    padding: 3rem 0;
    background: #fff;
}

.article-main-content {
    max-width: 900px;
    margin: 0 auto;
}

.entry-content {
    line-height: 1.8;
}

.article-section {
    background: #f8f9fa;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border-left: 4px solid #FBBF24;
}

.article-section h2 {
    color: #0F1117;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.article-section h3 {
    color: #1E222E;
    margin: 1.5rem 0 1rem;
    font-size: 1.4rem;
}

.article-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #333;
}

.article-section ul,
.article-section ol {
    margin: 1rem 0 1rem 2rem;
    color: #333;
}

.article-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.article-section strong {
    color: #0F1117;
    font-weight: 600;
}

/* Related Links Box */
.related-links {
    background: #FFF9E6;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    border: 1px solid #FBBF24;
}

.related-links h3 {
    color: #0F1117;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

.related-links li {
    margin-bottom: 0.5rem;
}

.related-links a {
    color: #5B8CFF;
    text-decoration: none;
    transition: color 0.3s;
}

.related-links a:hover {
    color: #4F7AE0;
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background: #0F1117;
    color: #fff;
    padding: 3rem 0 1rem;
}

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

.footer-section h3 {
    color: #FBBF24;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #FBBF24;
}

.footer-section p {
    color: #e0e0e0;
    line-height: 1.6;
}

.footer-buttons {
    margin-top: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1E222E;
    color: #999;
}

/* WordPress Core Alignment */
.alignleft {
    float: left;
    margin: 0.5rem 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0.5rem 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 968px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .main-navigation {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-menu .sub-menu {
        position: static;
        display: none;
        box-shadow: none;
        margin-top: 0;
    }

    .nav-menu .menu-item-has-children:hover > .sub-menu {
        display: block;
    }

    .header-buttons {
        width: 100%;
        justify-content: center;
        margin-left: 0;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 2rem;
    }

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

    .category-grid,
    .articles-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .categories-section,
    .about-section,
    .articles-section {
        padding: 2rem 0;
    }

    .btn-large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Blog Page Styles */
.blog-layout {
    padding: 2rem 0;
}

.blog-category-section {
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 2px solid #e0e0e0;
}

.blog-category-section:last-child {
    border-bottom: none;
}

.category-title {
    font-size: 2rem;
    color: #0F1117;
    margin-bottom: 0.5rem;
    border-left: 5px solid #FBBF24;
    padding-left: 1rem;
}

.category-description {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding-left: 1rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.article-date {
    color: #999;
}

.article-category {
    background: #FBBF24;
    color: #0F1117;
    padding: 0.2rem 0.6rem;
    border-radius: 3px;
    font-weight: 600;
}

.article-excerpt {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: #5B8CFF;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.read-more:hover {
    color: #4F7AE0;
    text-decoration: underline;
}

.no-posts {
    text-align: center;
    padding: 3rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-posts p {
    font-size: 1.2rem;
    color: #666;
}