/* ==============================================
   BLESSED ATHEIST - Main Stylesheet
   High-end monochromatic aesthetic
   ============================================== */

   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #ffffff;
    color: #111111;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Custom Cursor */
.custom-cursor {
    width: 40px;
    height: 40px;
    border: 1.5px solid #111;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.custom-cursor.hover {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.03);
}

/* Progress Bar */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    z-index: 1001;
}

.progress-bar {
    height: 2px;
    background: #111;
    width: 0%;
    transition: width 0.1s ease;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Header */
.site-header {
    padding: 48px 0 32px;
    border-bottom: 1px solid #eaeaea;
    text-align: center;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(10px);
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s;
}

.site-title span {
    font-weight: 300;
    color: #666;
}

.site-title:hover {
    opacity: 0.7;
}

.tagline {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    margin-top: 12px;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.nav a {
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #555;
    transition: color 0.2s;
}

.nav a:hover, .nav a.active {
    color: #000;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 550px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: grayscale(100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 0 24px;
}

.hero-subtitle {
    font-size: 0.65rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 600;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-excerpt {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    font-weight: 300;
}

/* Blog Layout */
.blog-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 60px;
    margin: 70px 0 80px;
}

/* Articles Grid */
.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 56px;
}

.article-card {
    border-bottom: 1px solid #ececec;
    padding-bottom: 48px;
    transition: transform 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
}

.article-image {
    width: 100%;
    height: 360px;
    object-fit: cover;
    filter: grayscale(100%);
    margin-bottom: 24px;
    transition: filter 0.4s;
}

.article-card:hover .article-image {
    filter: grayscale(60%);
}

.article-category {
    font-size: 0.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 12px;
}

.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    display: block;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-title:hover {
    opacity: 0.7;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.7rem;
    color: #aaa;
    margin-bottom: 16px;
}

.article-excerpt {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000;
    border-bottom: 1px solid #ddd;
    padding-bottom: 4px;
    transition: border-color 0.2s;
}

.read-more:hover {
    border-bottom-color: #000;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-widget {
    margin-bottom: 48px;
}

.widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eaeaea;
}

/* About Widget */
.about-widget {
    text-align: center;
}

.about-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    filter: grayscale(100%);
    object-fit: cover;
    margin-bottom: 16px;
}

.about-name {
    font-weight: 600;
    margin-bottom: 8px;
}

.about-bio {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.6;
}

/* Popular Posts */
.popular-list {
    list-style: none;
}

.popular-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    align-items: center;
}

.popular-img {
    width: 65px;
    height: 65px;
    object-fit: cover;
    filter: grayscale(100%);
}

.popular-title {
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    color: #111;
    line-height: 1.4;
}

.popular-title:hover {
    text-decoration: underline;
}

/* Category List */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 12px;
}

.category-list a {
    text-decoration: none;
    color: #555;
    font-size: 0.8rem;
    transition: color 0.2s;
    display: flex;
    justify-content: space-between;
}

.category-list a:hover {
    color: #000;
}

/* Keyword Cloud */
.keyword-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    background: #f5f5f5;
    padding: 6px 14px;
    font-size: 0.7rem;
    color: #444;
    text-decoration: none;
    transition: all 0.2s;
}

.keyword-tag:hover {
    background: #111;
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0 60px;
}

.pagination a, .pagination span {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #444;
    font-size: 0.8rem;
    border: 1px solid #eaeaea;
    transition: all 0.2s;
}

.pagination a:hover, .pagination .active {
    background: #111;
    color: white;
    border-color: #111;
}

/* Footer */
.footer {
    background: #fafafa;
    padding: 56px 0 32px;
    border-top: 1px solid #ececec;
    margin-top: 40px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #111;
}

.footer-col p, .footer-col a {
    font-size: 0.75rem;
    color: #777;
    text-decoration: none;
    line-height: 1.7;
    display: block;
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: #000;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-links a {
    margin-bottom: 0;
}

.footer-newsletter {
    display: flex;
    gap: 8px;
}

.footer-newsletter input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #ddd;
    background: white;
    font-size: 0.75rem;
    outline: none;
}

.footer-newsletter button {
    background: #111;
    border: none;
    padding: 0 16px;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.footer-newsletter button:hover {
    background: #333;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
    font-size: 0.7rem;
    color: #aaa;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #333;
    transform: translateY(-3px);
}

/* Loader */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s;
}

.loader {
    width: 40px;
    height: 40px;
    border: 2px solid #eee;
    border-top: 2px solid #111;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pagination Styles - tambahkan di akhir file style.css */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 50px 0 20px;
    flex-wrap: wrap;
}

.pagination a, .pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    font-size: 0.85rem;
    border: 1px solid #eaeaea;
    transition: all 0.2s ease;
    border-radius: 4px;
    padding: 0 12px;
}

.pagination a:hover {
    background: #111;
    color: white;
    border-color: #111;
}

.pagination .active {
    background: #111;
    color: white;
    border-color: #111;
}

.pagination .disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination .dots {
    border: none;
    cursor: default;
}

/* Responsive pagination */
@media (max-width: 600px) {
    .pagination a, .pagination span {
        min-width: 35px;
        height: 35px;
        font-size: 0.75rem;
        padding: 0 8px;
    }
}