/*
Theme Name: DigitalBlackNomad
Description: A beautiful travel blogging theme inspired by modern digital nomad and influencer designs, featuring a soft light blue color palette perfect for travel content creators and digital nomads.
Author: DigitalBlackNomad
Version: 1.0
License: GPL v2 or later
Text Domain: digitalblacknomad
Tags: travel, blog, nomad, digital-nomad, influencer, two-columns, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #fefefe;
}

/* ===== COLOR VARIABLES ===== */
:root {
    --primary-blue: #87CEEB;        /* Sky Blue */
    --light-blue: #B0E0E6;         /* Powder Blue */
    --pale-blue: #F0F8FF;          /* Alice Blue */
    --accent-blue: #4682B4;        /* Steel Blue */
    --dark-blue: #2F4F4F;          /* Dark Slate Gray */
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue);
}

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

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER STYLES ===== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(135, 206, 235, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.site-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.site-logo a {
    color: inherit;
}

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

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a:hover {
    color: var(--accent-blue);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-blue);
    transition: width 0.3s ease;
}

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

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--pale-blue) 0%, var(--light-blue) 100%);
    padding: 5rem 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: inline-block;
    background: var(--accent-blue);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(70, 130, 180, 0.3);
}

.hero-cta:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(70, 130, 180, 0.4);
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-blue);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-blue);
    margin: 1rem auto 0;
}

/* ===== BLOG GRID ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(135, 206, 235, 0.15);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(135, 206, 235, 0.25);
}

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.blog-card-title a {
    color: inherit;
}

.blog-card-title a:hover {
    color: var(--accent-blue);
}

.blog-card-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.read-more {
    color: var(--accent-blue);
    font-weight: 500;
}

.read-more:hover {
    color: var(--primary-blue);
}

/* ===== SIDEBAR ===== */
.sidebar {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 10px;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    color: var(--dark-blue);
    border-bottom: 2px solid var(--light-blue);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

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

.footer-widget h3 {
    color: var(--light-blue);
    margin-bottom: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(176, 224, 230, 0.3);
    padding-top: 1rem;
    text-align: center;
    color: var(--light-blue);
}

/* ===== SOCIAL MEDIA ICONS ===== */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-inner {
        flex-direction: column;
        gap: 1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .content-section {
        padding: 2rem 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .blog-card-content {
        padding: 1rem;
    }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ===== INSTAGRAM FEED SECTION ===== */
.instagram-section {
    background: var(--pale-blue);
    padding: 4rem 0;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.instagram-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.2);
    transition: all 0.3s ease;
}

.instagram-item:hover {
    transform: scale(1.05);
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== INSTAGRAM DEMO STYLING ===== */
.instagram-fallback-message {
    text-align: center;
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.1);
}

.instagram-fallback-message p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.demo-grid {
    position: relative;
}

.demo-item {
    position: relative;
    overflow: hidden;
}

.demo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(70, 130, 180, 0.9);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.demo-item:hover .demo-overlay {
    opacity: 1;
}

/* ===== SINGLE POST ENHANCEMENTS ===== */
.single-post-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.post-main {
    min-width: 0; /* Prevents overflow */
}

.single-sidebar,
.page-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.post-header {
    margin-bottom: 2rem;
}

.post-category-single {
    display: inline-block;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-category-single a {
    color: var(--white);
}

.post-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.post-meta-single {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--light-blue);
    border-bottom: 1px solid var(--light-blue);
    font-size: 0.9rem;
    color: var(--text-light);
}

.meta-left,
.meta-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.post-thumbnail {
    margin: 2rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(135, 206, 235, 0.2);
}

.featured-image {
    width: 100%;
    height: auto;
    display: block;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 2rem 0;
}

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1rem 0;
}

/* ===== SHARE BUTTONS STYLING ===== */
.post-share {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-blue);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.share-button.facebook {
    background: #1877f2;
    color: var(--white);
}

.share-button.twitter {
    background: #1da1f2;
    color: var(--white);
}

.share-button.pinterest {
    background: #bd081c;
    color: var(--white);
}

.share-button.linkedin {
    background: #0077b5;
    color: var(--white);
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ===== TAGS STYLING ===== */
.post-tags-single {
    margin: 2rem 0;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag-link {
    background: var(--pale-blue);
    color: var(--accent-blue);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag-link:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* ===== AUTHOR BIO STYLING ===== */
.author-bio {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 15px;
    margin: 3rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.author-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.author-info h3 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
}

.author-posts-link {
    color: var(--accent-blue);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ===== POST NAVIGATION ===== */
.post-navigation {
    margin: 3rem 0;
    border-top: 1px solid var(--light-blue);
    padding-top: 2rem;
}

.nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.1);
    transition: all 0.3s ease;
}

.nav-previous:hover,
.nav-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.2);
}

.nav-previous {
    text-align: left;
}

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

.nav-subtitle {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* ===== RELATED POSTS ===== */
.related-posts {
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 2px solid var(--light-blue);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-post {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.1);
    transition: all 0.3s ease;
}

.related-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.2);
}

.related-post-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post-content {
    padding: 1rem;
}

.related-post-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.related-post-title a {
    color: var(--text-dark);
}

.related-post-title a:hover {
    color: var(--accent-blue);
}

.related-post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ===== RESPONSIVE IMPROVEMENTS ===== */
@media (max-width: 1024px) {
    .single-post-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .single-sidebar,
    .page-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .post-title {
        font-size: 2rem;
    }
    
    .post-meta-single {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .meta-left,
    .meta-right {
        flex-wrap: wrap;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-links {
        grid-template-columns: 1fr;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== BLOG LAYOUT IMPROVEMENTS ===== */
.blog-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.blog-main {
    min-width: 0;
}

.blog-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.post-category a {
    color: var(--white);
}

@media (max-width: 1024px) {
    .blog-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-sidebar {
        position: static;
        order: -1;
    }
}


.hero-text {
    flex: 1;
    text-align: left;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-label {
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: none;
}

.passport-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}
