/*
Theme Name: Journey Of You
Theme URI: https://beny.my.id
Author: Beny Aditia
Author URI: https://beny.my.id
Description: A clean, minimalist blog theme designed to replace Elementor with a lightweight standalone WordPress theme. Features a beautiful profile section, grid-based blog layout, and social sharing.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: journey-of-you
Tags: blog, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ================================
   CSS VARIABLES
   ================================ */
:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --accent-pink: #f43f5e;
    --accent-purple: #8b5cf6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-script: 'Pacifico', cursive;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ================================
   HEADER & NAVIGATION
   ================================ */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-logo {
    font-family: var(--font-script);
    font-size: 1.75rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.site-logo:hover {
    color: var(--text-primary);
}

.header-search {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-form {
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 0.625rem 1rem 0.625rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    background: var(--bg-light);
    transition: all 0.2s ease;
}

.search-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
}

.search-form::before {
    content: "\f002";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: white;
}

.btn-outline {
    color: var(--primary-color);
    border: 1px solid transparent;
}

.btn-outline:hover {
    color: var(--primary-hover);
}

/* ================================
   HERO / PROFILE SECTION
   ================================ */
.hero-section {
    padding: 3rem 2rem;
    background: var(--bg-white);
}

.hero-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
}

.profile-image-wrapper {
    flex-shrink: 0;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 4px dashed var(--accent-purple);
    padding: 4px;
}

.profile-content {
    flex: 1;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.btn-follow {
    background: var(--primary-color);
    color: white;
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
}

.btn-follow:hover {
    background: var(--primary-hover);
    color: white;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
}

.stat-item {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.stat-value {
    font-weight: 600;
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
}

.profile-info {
    margin-bottom: 0.5rem;
}

.profile-name {
    font-weight: 600;
    color: var(--text-primary);
}

.profile-role {
    color: var(--text-secondary);
}

.profile-tagline {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.profile-disclaimer {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.profile-disclaimer strong {
    color: var(--text-secondary);
}

/* ================================
   BLOG GRID SECTION
   ================================ */
.blog-section {
    padding: 2rem;
    background: var(--bg-white);
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}

.blog-card-title {
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.blog-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.btn-continue {
    background: var(--accent-purple);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.blog-card:hover .btn-continue {
    opacity: 1;
    transform: translateY(0);
}

.btn-continue:hover {
    background: #7c3aed;
    color: white;
}

.comment-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-purple);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    z-index: 2;
}

.comment-badge i {
    font-size: 0.625rem;
}

/* ================================
   PAGINATION
   ================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.pagination a {
    color: var(--primary-color);
    font-weight: 500;
}

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

/* ================================
   SINGLE POST
   ================================ */
.single-post {
    background: var(--bg-white);
}

.post-header {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.post-featured-image {
    position: relative;
    width: 100%;
    aspect-ratio: 21/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-title-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
}

.post-title-overlay h1 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.post-comment-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--accent-purple);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem 0;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.author-name {
    font-weight: 500;
    color: var(--text-primary);
}

.post-read-time {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.post-read-time i {
    color: var(--accent-purple);
}

/* ================================
   POST CONTENT
   ================================ */
.post-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    gap: 2rem;
}

.social-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-sidebar a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-pink);
    color: white;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.social-sidebar a:hover {
    background: #e11d48;
    transform: scale(1.05);
}

.post-content {
    flex: 1;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
}

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

.post-content h2,
.post-content h3,
.post-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.post-content img {
    border-radius: var(--radius-lg);
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.post-content figcaption {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    color: var(--text-secondary);
    font-style: italic;
}

.post-content a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

/* ================================
   POST FOOTER
   ================================ */
.post-footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.post-share span {
    color: var(--text-secondary);
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-buttons a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-gray);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.share-buttons a:hover {
    background: var(--primary-color);
    color: white;
}

.show-comments-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-gray);
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all 0.2s ease;
}

.show-comments-btn:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

/* ================================
   COMMENTS SECTION
   ================================ */
.comments-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
}

.comment-meta {
    flex: 1;
}

.comment-author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.comment-date {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-reply {
    margin-top: 1rem;
}

.comment-reply a {
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Comment Form */
.comment-form {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color 0.2s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form textarea {
    min-height: 150px;
    resize: vertical;
}

.comment-form-submit {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: background 0.2s ease;
}

.comment-form-submit:hover {
    background: var(--primary-hover);
}

/* ================================
   FOOTER
   ================================ */
.site-footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-end;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: var(--text-secondary);
}

.footer-bottom a:hover {
    color: var(--primary-color);
}

/* ================================
   ARCHIVE & SEARCH PAGES
   ================================ */
.page-header {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-light);
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.page-description {
    color: var(--text-secondary);
}

.archive-grid,
.search-grid {
    padding: 2rem;
}

/* ================================
   404 PAGE
   ================================ */
.error-404 {
    text-align: center;
    padding: 6rem 2rem;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ================================
   SCROLL TO TOP
   ================================ */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--accent-pink);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #e11d48;
    transform: translateY(-2px);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .post-content-wrapper {
        flex-direction: column;
    }
    
    .social-sidebar {
        position: static;
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .header-search {
        order: 3;
        max-width: 100%;
        flex-basis: 100%;
    }
    
    .hero-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-image {
        width: 140px;
        height: 140px;
    }
    
    .profile-header {
        justify-content: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .post-title-overlay {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
    
    .post-title-overlay h1 {
        font-size: 1.25rem;
    }
    
    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .profile-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .error-code {
        font-size: 5rem;
    }
}

/* ================================
   ACCESSIBILITY
   ================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ================================
   WORDPRESS DEFAULTS
   ================================ */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto 1rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

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

.gallery-item {
    margin: 0;
}

.gallery-icon img {
    border-radius: var(--radius-md);
}

/* Sticky post */
.sticky .blog-card {
    box-shadow: 0 0 0 3px var(--primary-color);
}
