/*
Theme Name: Solwev
Theme URI: https://solwev.com
Author: Solwev.com
Author URI: https://solwev.com
Description: Tema blog profesional untuk SEO, bisnis online, dan digital marketing.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: solwev
Tags: blog, business, seo, digital-marketing
*/

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f8fafc;
    font-family: Arial, sans-serif;
    color: #0f172a;
    line-height: 1.6;
}

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

a {
    text-decoration: none;
}

/* ===========================
   HEADER
=========================== */
.site-header {
    background: #0f172a;
    color: white;
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.site-logo {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #ffffff, #94b8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

/* ===========================
   NAVIGATION
=========================== */
.main-navigation ul {
    display: flex;
    gap: 18px;
    list-style: none;
}

.main-navigation ul li a {
    color: white;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: background 0.3s;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* ===========================
   HERO SECTION
=========================== */
.hero-section {
    text-align: center;
    padding: 90px 20px;
    background: linear-gradient(135deg, #0f172a, #2563eb);
    color: white;
}

.hero-section h1 {
    font-size: 42px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background: white;
    color: #2563eb;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===========================
   SECTIONS
=========================== */
.site-section {
    padding: 70px 8%;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 30px;
    color: #0f172a;
}

/* ===========================
   BLOG GRID (Homepage)
=========================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.blog-card:hover {
    transform: translateY(-6px);
}

.blog-card-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.blog-card-thumb-placeholder {
    width: 100%;
    height: 160px;
    background: #cbd5e1;
}

.blog-card-body {
    padding: 18px;
}

.blog-card-body h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #0f172a;
}

.blog-card-body p {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.read-more {
    display: inline-block;
    margin-top: 12px;
    color: #2563eb;
    font-weight: bold;
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* ===========================
   ABOUT BOX
=========================== */
.about-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #475569;
    font-size: 16px;
    line-height: 1.7;
}

/* ===========================
   CTA SECTION
=========================== */
.cta-section {
    background: #0f172a;
    color: white;
    text-align: center;
    padding: 70px 20px;
}

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

.cta-section p {
    margin-bottom: 25px;
    opacity: 0.85;
}

/* ===========================
   SINGLE POST / PAGE
=========================== */
.single-post-wrap,
.page-wrap {
    max-width: 780px;
    margin: 60px auto;
    padding: 0 20px;
}

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

.post-title {
    font-size: 34px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.post-meta {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

.post-thumbnail {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 30px;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #1e293b;
}

.post-content h2, .post-content h3 {
    margin: 30px 0 12px;
}

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

.post-content ul, .post-content ol {
    margin: 0 0 18px 24px;
}

.post-content img {
    border-radius: 8px;
    margin: 20px 0;
}

.post-content a {
    color: #2563eb;
    text-decoration: underline;
}

/* ===========================
   BLOG LIST PAGE (archive)
=========================== */
.archive-wrap {
    padding: 60px 8%;
}

.archive-title {
    font-size: 30px;
    margin-bottom: 40px;
    text-align: center;
}

/* ===========================
   PAGINATION
=========================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 50px 0 20px;
}

.pagination .page-numbers {
    padding: 8px 14px;
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f172a;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* ===========================
   COMMENTS
=========================== */
.comments-section {
    max-width: 780px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.comments-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
    margin-bottom: 40px;
}

.comment {
    background: white;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.comment-author {
    font-weight: bold;
    margin-bottom: 6px;
}

.comment-date {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
}

/* Comment form */
.comment-respond {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comment-respond h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    margin-bottom: 14px;
}

.comment-form textarea {
    height: 130px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background: #2563eb;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

.comment-form input[type="submit"]:hover {
    background: #1d4ed8;
}

/* ===========================
   SIDEBAR
=========================== */
.sidebar-widget {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #0f172a;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget ul li {
    border-bottom: 1px solid #f1f5f9;
    padding: 8px 0;
}

.sidebar-widget ul li a {
    color: #475569;
    font-size: 14px;
    transition: color 0.2s;
}

.sidebar-widget ul li a:hover {
    color: #2563eb;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
    background: #020617;
    color: white;
    text-align: center;
    padding: 24px 20px;
    font-size: 14px;
    opacity: 0.9;
}

/* ===========================
   SEARCH FORM
=========================== */
.search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.search-form input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}

.search-form button {
    padding: 10px 16px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

/* ===========================
   NOT FOUND (404)
=========================== */
.not-found-wrap {
    text-align: center;
    padding: 100px 20px;
}

.not-found-wrap h1 {
    font-size: 80px;
    color: #2563eb;
}

.not-found-wrap p {
    font-size: 18px;
    color: #64748b;
    margin: 10px 0 25px;
}

/* ===========================
   MOBILE RESPONSIVE
=========================== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #0f172a;
        display: none;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 12px 0;
    }

    .main-navigation ul li a {
        display: block;
        padding: 12px 20px;
    }

    .hero-section h1 {
        font-size: 28px;
    }

    .site-section {
        padding: 50px 5%;
    }

    .archive-wrap {
        padding: 50px 5%;
    }

    .single-post-wrap,
    .page-wrap,
    .comments-section {
        padding: 0 16px;
    }

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