/* 123B Theme - Main Stylesheet */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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;
    overflow-x: hidden;
}

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

a {
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6b35;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    padding: 15px 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;
}

.nav-desktop {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-desktop a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-desktop a:hover {
    background-color: rgba(255,255,255,0.1);
}

.header-actions {
    display: flex;
    gap: 15px;
}

.login-btn,
.register-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.login-btn {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.login-btn:hover {
    background-color: #fff;
    color: #1a237e;
}

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

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

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #1a237e;
    padding: 20px;
    list-style: none;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.nav-mobile.active {
    display: block;
}

.nav-mobile li {
    margin-bottom: 15px;
}

.nav-mobile a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    display: block;
    padding: 10px;
    border-radius: 5px;
}

.nav-mobile a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Content Section */
.content-section {
    padding: 60px 0;
    background-color: #fff;
}

.content-section h2 {
    font-size: 36px;
    color: #1a237e;
    margin-bottom: 30px;
    text-align: center;
}

.content-section h3 {
    font-size: 28px;
    color: #0d47a1;
    margin: 30px 0 20px;
}

.content-section p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.content-section ul {
    margin: 20px 0;
    padding-left: 30px;
}

.content-section li {
    margin-bottom: 15px;
    line-height: 1.8;
}

/* Features Section */
.features {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #1a237e;
    margin-bottom: 15px;
    font-size: 22px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: #fff;
    color: #ff6b35;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Footer */
footer {
    background-color: #1a237e;
    color: #fff;
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #ff6b35;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    line-height: 1.8;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

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

.footer-nav {
    list-style: none;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
    color: #ccc;
}

/* Sidebar */
.sidebar {
    padding: 40px 0;
    background-color: #f9f9f9;
}

.widget {
    background: #fff;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.widget h3 {
    color: #1a237e;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 2px solid #ff6b35;
    padding-bottom: 10px;
}

.widget ul {
    list-style: none;
}

.widget li {
    margin-bottom: 12px;
}

.widget a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #ff6b35;
}

/* Single Post */
.single-post {
    padding: 60px 0;
    background-color: #fff;
}

.post-header {
    margin-bottom: 40px;
}

.post-title {
    font-size: 42px;
    color: #1a237e;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-meta {
    color: #666;
    font-size: 14px;
}

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

.post-content h2 {
    font-size: 32px;
    color: #0d47a1;
    margin: 40px 0 20px;
}

.post-content h3 {
    font-size: 26px;
    color: #1a237e;
    margin: 30px 0 15px;
}

.post-content p {
    margin-bottom: 20px;
}

/* Archive */
.archive-header {
    background-color: #1a237e;
    color: #fff;
    padding: 40px 0;
    text-align: center;
}

.archive-title {
    font-size: 36px;
    margin-bottom: 10px;
}

.archive-list {
    padding: 60px 0;
}

.archive-item {
    background: #fff;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.archive-thumbnail {
    margin-bottom: 20px;
    overflow: hidden;
    border-radius: 10px;
}

.archive-thumbnail img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.archive-item:hover .archive-thumbnail img {
    transform: scale(1.05);
}

.archive-item h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.archive-item h2 a {
    color: #1a237e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.archive-item h2 a:hover {
    color: #ff6b35;
}

.archive-item p {
    color: #666;
    line-height: 1.6;
}

/* Template Pages */
.template-page {
    padding: 60px 0;
    background-color: #fff;
}

.template-header {
    text-align: center;
    margin-bottom: 50px;
}

.template-header h1 {
    font-size: 42px;
    color: #1a237e;
    margin-bottom: 20px;
}

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

.template-content h2 {
    font-size: 32px;
    color: #0d47a1;
    margin: 40px 0 20px;
}

.template-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    margin: 40px 0;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background-color: #fff;
    color: #1a237e;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: #1a237e;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .content-section h2 {
        font-size: 28px;
    }

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

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

    .post-title {
        font-size: 32px;
    }

    .archive-title {
        font-size: 28px;
    }

    .template-header h1 {
        font-size: 32px;
    }

    .container {
        padding: 0 15px;
    }
}

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

    .hero h1 {
        font-size: 26px;
    }

    .content-section {
        padding: 40px 0;
    }

    .cta-section h2 {
        font-size: 28px;
    }

    .feature-card {
        padding: 20px;
    }
}
