/*
Theme Name: Axvel-BP
Theme URI: https://qq12portal.online
Description: Web Blogging Elegan
Version: 1.0
Author: QQ12Portal
Text Domain: axvel-bp
*/

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #ff6600;
    transition: all 0.3s ease;
}

a:hover {
    color: #e55a00;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.site-branding h1 {
    font-size: 28px;
    font-weight: 700;
}

.site-branding h1 a {
    color: #ff6600;
}

.site-branding p {
    color: #777;
    font-size: 14px;
}

.main-navigation ul {
    display: flex;
    list-style: none;
}

.main-navigation li {
    margin-left: 25px;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.main-navigation a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ff6600;
    transition: width 0.3s ease;
}

.main-navigation a:hover:after,
.main-navigation a.active:after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ff6600 0%, #ff8c42 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 50px;
}

.hero h2 {
    font-size: 36px;
    margin-bottom: 15px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

/* Content Area */
.content-area {
    padding: 50px 0;
}

/* Post Grid dengan Thumbnail - HIGH QUALITY VERSION */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.post-thumbnail {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

/* FIX: High quality thumbnail */
.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-thumbnail:empty {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-thumbnail:empty::before {
    content: "No Image";
    color: #999;
    font-size: 14px;
    font-style: italic;
}

.post-content {
    padding: 25px;
}

.post-meta {
    display: flex;
    font-size: 14px;
    color: #777;
    margin-bottom: 12px;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.post-date {
    display: flex;
    align-items: center;
}

.post-date::before {
    content: "📅";
    margin-right: 5px;
}

.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.post-categories a {
    background-color: #f8f9fa;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.post-categories a:hover {
    background-color: #ff6600;
    color: white;
    border-color: #ff6600;
}

.post-title {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.post-title a {
    color: #333;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: #ff6600;
}

.post-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    display: inline-flex;
    align-items: center;
    color: #ff6600;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #e55a00;
    transform: translateX(5px);
}

.read-more::after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(3px);
}

/* All Posts Page */
.all-posts {
    margin-top: 50px;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.post-list-item {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.post-list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.post-list-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 14px;
    color: #777;
    flex-wrap: wrap;
    gap: 15px;
}

.post-list-date {
    display: flex;
    align-items: center;
}

.post-list-date::before {
    content: "📅";
    margin-right: 5px;
}

.post-list-title {
    font-size: 24px;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-list-title a {
    color: #333;
    transition: color 0.3s ease;
}

.post-list-title a:hover {
    color: #ff6600;
}

.post-list-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Index Page - Fallback Template - FIXED SPACING */
.page-header {
    text-align: center;
    margin: 20px 0 60px 0;
    padding: 30px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
}

.page-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-description {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.posts-archive {
    margin-top: 0;
}

/* Post Grid for Index Page */
.posts-archive .post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 80px;
}

.posts-archive .post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.posts-archive .post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.posts-archive .post-thumbnail {
    height: 220px;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

.posts-archive .post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.posts-archive .post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.no-thumbnail {
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
}

.posts-archive .post-content {
    padding: 25px;
}

.posts-archive .post-meta {
    display: flex;
    font-size: 14px;
    color: #777;
    margin-bottom: 12px;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.posts-archive .post-date {
    display: flex;
    align-items: center;
}

.posts-archive .post-date::before {
    content: "📅";
    margin-right: 5px;
}

.posts-archive .post-categories a {
    background-color: #f8f9fa;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    color: #666;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.posts-archive .post-categories a:hover {
    background-color: #ff6600;
    color: white;
    border-color: #ff6600;
}

.posts-archive .post-title {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
}

.posts-archive .post-title a {
    color: #333;
    transition: color 0.3s ease;
}

.posts-archive .post-title a:hover {
    color: #ff6600;
}

.posts-archive .post-excerpt {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 60px;
}

.posts-archive .read-more {
    display: inline-flex;
    align-items: center;
    color: #ff6600;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.posts-archive .read-more:hover {
    color: #e55a00;
    transform: translateX(5px);
}

.posts-archive .read-more::after {
    content: "→";
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.posts-archive .read-more:hover::after {
    transform: translateX(3px);
}

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

.pagination .nav-links {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.pagination .page-numbers {
    padding: 10px 18px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover {
    border-color: #ff6600;
    color: #ff6600;
}

.pagination .page-numbers.current {
    background: #ff6600;
    color: white;
    border-color: #ff6600;
}

.pagination .page-numbers.dots {
    border: none;
    padding: 10px 5px;
}

/* No Posts State */
.no-posts {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 50px 0;
}

.no-posts h3 {
    font-size: 24px;
    color: #666;
    margin-bottom: 15px;
}

.no-posts p {
    color: #888;
    font-size: 16px;
}

/* SINGLE POST - FULL WIDTH & JUSTIFY */
.single-post {
    width: 100%;
    max-width: none;
}

/* Single Header */
.single-header {
    background: linear-gradient(135deg, #ff6600 0%, #ff8c42 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 50px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.3);
}

.single-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
    font-weight: 700;
    line-height: 1.2;
    padding: 0 20px;
}

.single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0 20px;
}

.single-date {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
}

.single-date::before {
    content: "📅";
    margin-right: 8px;
}

.single-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.single-categories a {
    color: white;
    background: rgba(255, 255, 255, 0.25);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.single-categories a:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.single-featured-image {
    margin-bottom: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.single-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.single-featured-image:hover img {
    transform: scale(1.03);
}

/* Single Content - FULL WIDTH & JUSTIFY */
.single-content {
    font-size: 18px;
    line-height: 1.8;
    color: #444;
    width: 100%;
    max-width: none;
}

.single-content p {
    margin-bottom: 25px;
    text-align: justify;
}

.single-content h2 {
    font-size: 32px;
    margin: 50px 0 25px 0;
    color: #333;
    text-align: left;
    border-bottom: 3px solid #ff6600;
    padding-bottom: 12px;
    font-weight: 600;
}

.single-content h3 {
    font-size: 26px;
    margin: 40px 0 20px 0;
    color: #333;
    text-align: left;
    font-weight: 600;
}

.single-content h4 {
    font-size: 22px;
    margin: 35px 0 18px 0;
    color: #333;
    text-align: left;
    font-weight: 600;
}

.single-content ul, 
.single-content ol {
    margin: 25px 0;
    padding-left: 30px;
    text-align: left;
}

.single-content li {
    margin-bottom: 10px;
    text-align: left;
}

/* Center Images in Single Post Content */
.single-content img {
    display: block;
    margin: 30px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.single-content .aligncenter {
    display: block;
    margin: 30px auto;
    text-align: center;
}

.single-content .alignleft {
    float: left;
    margin: 20px 30px 20px 0;
    max-width: 50%;
}

.single-content .alignright {
    float: right;
    margin: 20px 0 20px 30px;
    max-width: 50%;
}

.single-content .wp-caption {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin: 30px auto;
    max-width: 100%;
    text-align: center;
}

.single-content .wp-caption img {
    margin: 0 auto 10px auto;
}

.single-content .wp-caption-text {
    font-style: italic;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.single-content figure {
    margin: 30px auto;
    text-align: center;
    max-width: 100%;
}

.single-content figure img {
    margin: 0 auto;
}

.single-content figcaption {
    font-style: italic;
    color: #666;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

/* Responsive Images */
@media (max-width: 768px) {
    .single-content .alignleft,
    .single-content .alignright {
        float: none;
        display: block;
        margin: 25px auto;
        max-width: 100%;
    }
    
    .single-content img {
        margin: 25px auto;
    }
}

.single-content blockquote {
    border-left: 4px solid #ff6600;
    padding: 25px 30px;
    margin: 30px 0;
    font-style: italic;
    color: #555;
    background: linear-gradient(135deg, #fdf6f0 0%, #f9f9f9 100%);
    border-radius: 0 15px 15px 0;
    text-align: left;
    font-size: 20px;
    line-height: 1.6;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.single-content table {
    width: 100%;
    margin: 25px 0;
    border-collapse: collapse;
    text-align: left;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.single-content table th,
.single-content table td {
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.single-content table th {
    background-color: #ff6600;
    color: white;
    font-weight: 600;
}

.single-content table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Breadcrumb Navigation */
.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    margin-bottom: 30px;
    border-radius: 8px;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
}

.breadcrumb-nav a {
    color: #ff6600;
}

.breadcrumb-nav span {
    margin: 0 10px;
    color: #999;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 50px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.nav-previous, 
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-previous a, 
.nav-next a {
    color: #333;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.nav-previous a:hover, 
.nav-next a:hover {
    color: #ff6600;
}

.nav-previous a:before {
    content: '←';
    margin-right: 8px;
}

.nav-next a:after {
    content: '→';
    margin-left: 8px;
}

/* Footer */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0 20px;
}

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

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

.footer-widget p {
    color: #ccc;
    line-height: 1.6;
}

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

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

.footer-widget ul li a {
    color: #ccc;
}

.footer-widget ul li a:hover {
    color: #ff6600;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }
    
    .main-navigation ul {
        margin-top: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .main-navigation li {
        margin: 5px 10px;
    }
    
    .hero h2 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .post-thumbnail {
        height: 200px;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-description {
        font-size: 16px;
    }
    
    .posts-archive .post-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .posts-archive .post-thumbnail {
        height: 200px;
    }
    
    .single-title {
        font-size: 32px;
    }
    
    .single-header {
        padding: 60px 0;
        margin-bottom: 30px;
    }
    
    .single-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .single-content {
        font-size: 16px;
    }
    
    .single-content h2 {
        font-size: 26px;
    }
    
    .single-content h3 {
        font-size: 22px;
    }
    
    .single-content h4 {
        font-size: 20px;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    .pagination .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination .page-numbers {
        padding: 8px 14px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h2 {
        font-size: 24px;
    }
    
    .post-content {
        padding: 20px;
    }
    
    .page-header {
        padding: 30px 20px;
        margin-bottom: 30px;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .posts-archive .post-content {
        padding: 20px;
    }
    
    .single-title {
        font-size: 28px;
    }
    
    .single-content h2 {
        font-size: 22px;
    }
    
    .single-content h3 {
        font-size: 20px;
    }
}