/* Arctic color scheme */
:root {
    --primary: #f8f9fa;
    --secondary: #e9ecef;
    --tertiary: #dee2e6;
    --accent: #adb5bd;
    --text-dark: #333333;
    --text-medium: #666666;
    --shadow-soft: rgba(173, 181, 189, 0.15);
    --border-radius-organic: 8px 12px 6px 14px;
    --border-radius-organic-small: 4px 7px 3px 8px;
}

/* Japanese wabi-sabi principles */
* {
    box-sizing: border-box;
}

body {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Segoe UI", Roboto, sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Site Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 249, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--tertiary);
    padding: 1rem 0;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo .logo-link {
    font-family: "Segoe UI", Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-logo .logo-link:hover {
    color: var(--accent);
    transform: scale(1.05);
}

/* Navigation */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-organic-small);
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background: var(--secondary);
    transform: rotate(3deg);
}

.site-navigation .nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.site-navigation .nav-menu li a {
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-organic-small);
    transition: all 0.3s ease;
    position: relative;
}

.site-navigation .nav-menu li a:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .site-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(248, 249, 250, 0.98);
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid var(--tertiary);
    }
    
    .site-navigation.is-active {
        max-height: 300px;
    }
    
    .site-navigation .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 1rem 2rem;
    }
    
    .site-navigation .nav-menu li a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--tertiary);
    }
}

/* Main content */
.main-content {
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.content-shifted {
    margin-left: 280px;
}

/* Homepage Structure */
.homepage {
    min-height: 100vh;
}

/* Hero Section - Latest Post */
.hero-section {
    position: relative;
    padding: 4rem 2rem;
    background: linear-gradient(125deg, var(--primary) 0%, var(--secondary) 100%);
    margin-bottom: 4rem;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-organic);
    box-shadow: 0 12px 32px var(--shadow-soft);
}

.hero-text {
    padding: 2rem 0;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    line-height: 1.2;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Random Posts Section */
.random-posts {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-grid-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius-organic);
    overflow: hidden;
    box-shadow: 0 8px 24px var(--shadow-soft);
    transition: all 0.3s ease;
}

.post-grid-item:hover {
    transform: translateY(-4px) rotate(0.5deg);
    box-shadow: 0 16px 40px rgba(173, 181, 189, 0.2);
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-grid-item:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-title {
    padding: 1.5rem;
    margin: 0;
}

.post-title a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--accent);
}

/* Blog Link */
.blog-link-wrapper {
    text-align: center;
    margin-top: 3rem;
}

.blog-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--secondary);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--border-radius-organic);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--shadow-soft);
}

.blog-link:hover {
    background: var(--tertiary);
    transform: translateY(-2px) rotate(-1deg);
    box-shadow: 0 8px 24px var(--shadow-soft);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image img {
        height: 250px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .random-posts {
        padding: 1rem;
    }
}

/* Bento grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border-radius: var(--border-radius-organic);
    box-shadow: 0 8px 32px var(--shadow-soft);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-8px) rotate(0.5deg);
    box-shadow: 0 16px 48px rgba(173, 181, 189, 0.25);
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--tertiary));
    border-radius: var(--border-radius-organic-small);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.bento-card:hover::before {
    transform: scaleX(1);
}

/* Bento card sizes */
.bento-card:nth-child(1) { grid-column: span 2; }
.bento-card:nth-child(4) { grid-column: span 2; }
.bento-card:nth-child(7) { grid-column: span 2; }

.bento-large {
    grid-row: span 2;
    padding: 3rem;
}

/* Organic buttons */
.btn-organic {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--tertiary);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--border-radius-organic);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
    font-family: "Segoe UI", Roboto, sans-serif;
    font-weight: 500;
}

.btn-organic:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px var(--shadow-soft);
    background: var(--accent);
    color: white;
}

.btn-organic::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease;
}

.btn-organic:hover::after {
    width: 300px;
    height: 300px;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-shifted {
        margin-left: 0;
    }
    
    .bento-card:nth-child(1),
    .bento-card:nth-child(4),
    .bento-card:nth-child(7) { 
        grid-column: span 1; 
    }
    
    .hero-section {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        clip-path: none;
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
    }
    
    .sidebar {
        width: 100vw;
        left: -100vw;
        border-radius: 0;
    }
}

/* Refined hover effects */
.icon-hover {
    transition: all 0.3s ease;
}

.icon-hover:hover {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent);
}

/* Soft text shadows */
.text-shadow-soft {
    text-shadow: 0 2px 4px rgba(173, 181, 189, 0.3);
}

/* Asymmetric elements in wabi-sabi style */
.asymmetric-border {
    border-left: 3px solid var(--accent);
    border-radius: var(--border-radius-organic-small);
    transform: skewY(-1deg);
}

.organic-image {
    border-radius: var(--border-radius-organic);
    transition: all 0.4s ease;
}

.organic-image:hover {
    transform: scale(1.02) rotate(0.5deg);
    box-shadow: 0 12px 36px var(--shadow-soft);
}

/* Footer Styles */
.footer-section {
    background: linear-gradient(135deg, var(--tertiary) 0%, var(--accent) 100%);
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: translateY(-1px);
}

.footer-content {
    padding: 4rem 2rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem 2rem;
    margin-bottom: 3rem;
}

.footer-column {
    position: relative;
}

.footer-title {
    font-family: "Segoe UI", Roboto, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.footer-divider {
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: var(--border-radius-organic-small);
    margin-bottom: 1.5rem;
    transform: rotate(-1deg);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: var(--text-medium);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-link:hover {
    color: var(--text-dark);
    transform: translateX(8px);
    padding-left: 12px;
}

.footer-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
    transform: translateY(-50%);
}

.footer-link:hover::before {
    width: 8px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(173, 181, 189, 0.3);
    padding-top: 2rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright {
    color: var(--text-medium);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-bottom-link {
    color: var(--text-medium);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-bottom-link:hover {
    color: var(--text-dark);
    transform: translateY(-1px);
}

.footer-separator {
    color: var(--accent);
    font-weight: bold;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        padding: 3rem 1rem 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-section {
        padding: 2rem 1.5rem;
    }
}

/* WordPress specific styles */
.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 2.5rem auto;
    padding: 0 2rem;
}

.post-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius-organic);
    box-shadow: 0 8px 32px var(--shadow-soft);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}

.post-item:hover {
    transform: translateY(-8px) rotate(0.5deg);
    box-shadow: 0 16px 48px rgba(173, 181, 189, 0.25);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-organic-small);
    transition: all 0.4s ease;
}

.post-item h3 {
    font-size: 1.25rem;
    margin: 1.5rem 1.5rem 1rem;
    line-height: 1.4;
}

.post-item h3 a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-item h3 a:hover {
    color: var(--accent);
}

.post-item p {
    margin: 0 1.5rem 1.5rem;
    color: var(--text-medium);
    flex: 1 0 auto;
}

.post-item > a:last-of-type {
    align-self: flex-start;
    margin: 0 1.5rem 1.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--tertiary);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: var(--border-radius-organic-small);
    font-family: "Segoe UI", Roboto, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

.post-item > a:last-of-type:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px var(--shadow-soft);
    background: var(--accent);
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 3rem 0 4rem;
    font-family: "Segoe UI", Roboto, sans-serif;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius-organic-small);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 4px 16px var(--shadow-soft);
}

.page-numbers.current,
.page-numbers:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px) rotate(1deg);
    box-shadow: 0 8px 24px rgba(173, 181, 189, 0.25);
}

.prev.page-numbers,
.next.page-numbers {
    width: auto;
    padding: 0 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding: 0 2rem;
    font-family: "Segoe UI", Roboto, sans-serif;
    font-size: 0.875rem;
    color: var(--text-medium);
}

.breadcrumbs a {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--accent);
    transform: translateX(2px);
}

.breadcrumbs span {
    color: var(--text-medium);
}

/* Single post and page content */
.page-content {
    max-width: 800px;
    margin: 2rem auto 4rem;
    padding: 0 2rem 2rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    border-radius: var(--border-radius-organic);
    box-shadow: 0 8px 32px var(--shadow-soft);
}

.page-content h1 {
    font-size: 2rem;
    margin: 2rem 0 1.5rem;
    line-height: 1.3;
    color: var(--text-dark);
    position: relative;
}

.page-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: var(--border-radius-organic-small);
    transform: rotate(-1deg);
}

.page-content .content {
    margin-top: 2rem;
}

.page-content .content p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

/* 404 Page */
.error-page {
    text-align: center;
    padding: 4rem 2rem;
}

.error-page h1 {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.error-page p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* WordPress menu active state */
.current-menu-item a {
    background: var(--tertiary);
    color: var(--text-dark);
    font-weight: 600;
}

/* Additional responsive adjustments */
@media (max-width: 480px) {
    .post-list {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .breadcrumbs {
        padding: 0 1rem;
        font-size: 0.75rem;
    }
    
    .page-content {
        padding: 0 1rem 1.5rem;
        margin: 1.5rem auto 3rem;
    }
    
    .page-content h1 {
        font-size: 1.5rem;
    }
}

/* ===== NEW MINIMALIST HOMEPAGE STYLES ===== */

/* Site Footer Overrides for New Structure */
.site-footer {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--tertiary) 100%);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--tertiary) 100%);
    clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

.site-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding: 0;
}

.site-footer .footer-logo {
    margin-bottom: 2rem;
}

.site-footer .footer-logo-link {
    font-family: "Segoe UI", Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer .footer-logo-link:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.site-footer .footer-bottom {
    border-top: 1px solid var(--accent);
    padding-top: 2rem;
    margin-top: 2rem;
}

.site-footer .footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-footer .copyright {
    color: var(--text-medium);
    margin: 0;
    font-size: 0.9rem;
}

.site-footer .footer-navigation .footer-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.site-footer .footer-navigation .footer-menu li a {
    color: var(--text-medium);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: var(--border-radius-organic-small);
    font-size: 0.9rem;
}

.site-footer .footer-navigation .footer-menu li a:hover {
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Site Footer Mobile Styles */
@media (max-width: 768px) {
    .site-footer .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .site-footer .footer-navigation .footer-menu {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
}