/*
Theme Name: Theme 8 - Clean Wide Blog
Description: A minimalist WordPress theme designed for creative professionals and designers who want a clean, elegant portfolio presence. The theme emphasizes simplicity, readability, and customization flexibility while maintaining a professional aesthetic.
Author: Pau Inocencio
Version: 1.0.0
Text Domain: tripeak-test-eight
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: #1f2937;
    line-height: 1.6;
    background-color: #ffffff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: #1f2937;
    margin-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 16px;
    color: #6b7280;
}

a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #1d4ed8;
}

/* Header */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    transition: box-shadow 0.2s;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.main-navigation {
    display: flex;
    align-items: center;
    position: relative;
}

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

.main-navigation a {
    color: #1f2937;
    font-weight: 500;
}

.main-navigation a:hover {
    color: #2563eb;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: 1px solid #e5e7eb;
    padding: 10px;
    cursor: pointer;
    color: #1f2937;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-toggle:hover {
    background-color: #f8fafc;
    border-color: #2563eb;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Hero Section */
.hero-section {
    padding: 20px 0;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
    border: none;
}

.hero-content p {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 32px;
}

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

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* About Me Block */
.about-me-block {
    width: 100%;
    padding: 10px 0 30px 0;
}

.about-me-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    margin-bottom: 48px;
}

.about-me-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.about-me-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    box-sizing: border-box;
}

.about-me-section h3 {
    color: #1f2937;
    margin-bottom: 24px;
    border: none;
    padding-bottom: 0;
}

.timeline-item {
    margin-bottom: 24px;
    padding-left: 24px;
    border-left: 2px solid #e5e7eb;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 8px;
    width: 10px;
    height: 10px;
    background: #2563eb;
    border-radius: 50%;
}

.timeline-year {
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 8px;
}

.timeline-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.timeline-description {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Main Content */
.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 16px;
}

.content-area {
    max-width: 1200px;
    margin: 0 auto;
}

/* Front page content should use full width */
.front-page .content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

/* Footer */
.site-footer {
    background: #1f2937;
    color: #ffffff;
    padding: 48px 0;
    margin-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
}

/* Search Form */
.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}

.search-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 1rem;
}

.search-field:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.search-submit {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    background: #1d4ed8;
}

/* Mobile Navigation */
.main-navigation.is-active ul {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 80px;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    z-index: 999;
    gap: 0;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    max-width: 400px;
}

.main-navigation.is-active li {
    border-bottom: 1px solid #f3f4f6;
    width: 100%;
}

.main-navigation.is-active li:last-child {
    border-bottom: none;
}

.main-navigation.is-active a {
    display: block;
    padding: 16px 20px;
    color: #1f2937;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0 8px;
}

.main-navigation.is-active a:hover {
    color: #2563eb;
    background-color: #f8fafc;
}

/* Recent Articles Section */
.recent-articles-section {
    width: 100%;
    background: #fff;
    padding: 48px 0 32px 0;
}

.recent-articles-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.recent-articles-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-articles-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.recent-article-item {
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(37,99,235,0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s;
}

.recent-article-item:hover {
    box-shadow: 0 6px 24px rgba(37,99,235,0.12);
}

.recent-article-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.recent-article-content {
    padding: 20px 18px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recent-article-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1f2937;
}

.recent-article-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.recent-article-title a:hover {
    color: #2563eb;
}

.recent-article-meta {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 10px;
}

.recent-article-excerpt {
    font-size: 1rem;
    color: #374151;
    margin-top: auto;
}

.recent-article-readmore {
    display: inline-block;
    margin-top: 18px;
    padding: 8px 18px 8px 0;
    color: #2563eb;
    font-weight: 600;
    font-size: 1rem;
    background: none;
    border: none;
    border-radius: 0;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    letter-spacing: 0.5px;
}

.recent-article-readmore .arrow {
    font-weight: 700;
    margin-left: 8px;
    font-size: 1.3em;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(.4,2,.6,1);
    vertical-align: middle;
}

.recent-article-readmore:hover .arrow {
    transform: translateX(6px);
}

.recent-article-readmore:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0 0 0;
}

.pagination .page-numbers {
    display: inline-block;
    min-width: 40px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #1f2937;
    font-weight: 500;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    outline: none;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.pagination .page-numbers:focus {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,235,0.10);
}

.pagination .page-numbers.dots {
    background: none;
    color: #6b7280;
    box-shadow: none;
    cursor: default;
    padding: 8px 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-navigation ul {
        display: none;
    }
    
    .hero-section {
        padding: 10px 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .about-me-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.text-center {
    text-align: center;
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-24 {
    margin-bottom: 24px;
}

.mb-32 {
    margin-bottom: 32px;
}

.mb-48 {
    margin-bottom: 48px;
} 

.entry-date-capsule {
    display: inline-block;
    background: #f3f4f6;
    color: #2563eb;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px;
    padding: 6px 18px;
    margin-bottom: 18px;
    margin-top: 0;
    letter-spacing: 0.02em;
    box-shadow: 0 1px 4px rgba(37,99,235,0.06);
} 

/* Inline code */
.entry-content code, .wp-block-code code {
    background: #f3f4f6;
    color: #2563eb;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
    font-size: 0.97em;
    padding: 2px 7px;
    border-radius: 5px;
    margin: 0 2px;
    word-break: break-word;
}

/* Code block */
.entry-content pre, .wp-block-code pre {
    background: #181f2a;
    color: #f3f4f6;
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', monospace;
    font-size: 1em;
    border-radius: 10px;
    padding: 20px 24px;
    overflow-x: auto;
    margin: 24px 0;
    box-shadow: 0 2px 12px rgba(37,99,235,0.08);
}

.entry-content pre code, .wp-block-code pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
} 

/* List formatting */
.entry-content ul,
.entry-content ol {
    padding-left: 2em;
    margin-bottom: 1.2em;
    margin-top: 0.6em;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin-top: 0.3em;
    margin-bottom: 0.3em;
    padding-left: 1.5em;
}

.entry-content li {
    margin-bottom: 0.4em;
    line-height: 1.7;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ul ul {
    list-style-type: circle;
}

.entry-content ul ul ul {
    list-style-type: square;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content ol ol {
    list-style-type: lower-alpha;
} 

/* Captions for images, galleries, embeds */
.wp-caption-text,
figcaption,
.wp-block-embed figcaption,
.wp-block-image figcaption,
.wp-block-gallery figcaption {
    text-align: left;
    font-style: italic;
    color: #6b7280;
    font-size: 0.98em;
    margin-top: 6px;
    line-height: 1.5;
} 

/* Single Post Navigation */
.post-navigation {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 48px auto 0 auto;
    min-height: 80px;
}

.post-navigation .nav-links {
    width: 100%;
    position: relative;
    display: block;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    position: absolute;
    top: 0;
}

.post-navigation .nav-previous {
    left: 0;
    text-align: left;
}

.post-navigation .nav-next {
    right: 0;
    text-align: right;
}

.post-navigation .nav-previous a,
.post-navigation .nav-next a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #2563eb;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 999px;
    padding: 10px 26px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(37,99,235,0.06);
    transition: all 0.2s;
    border: none;
    outline: none;
    letter-spacing: 0.01em;
    min-width: 120px;
    gap: 8px;
}

.post-navigation .nav-previous a {
    flex-direction: row;
}

.post-navigation .nav-next a {
    flex-direction: row;
}

.post-navigation .nav-arrow {
    font-size: 1.2em;
    font-weight: 700;
    color: #2563eb;
    vertical-align: middle;
    margin: 0;
    display: inline-block;
    transition: color 0.2s;
}

.post-navigation a:hover .nav-arrow,
.post-navigation a:focus .nav-arrow {
    color: #fff;
} 