/*
Theme Name: Voxelmates
Description: Custom WordPress theme for Voxelmates - Advanced 3D Urban Modeling & Analytics with Voxel Technology. Preserves Phase 1 modifications including background video, hero text positioning, and use case card layouts.
Author: Claude Code
Version: 1.0
Text Domain: voxelmates
*/

/* Import Phase 1 styles - preserve all modifications */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Video Background */
.hero-video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-video-fallback {
    background-color: #1cd5ed;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1001;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    gap: 40px;
    order: 1;
}

.nav-header-image {
    height: 30px; /* 60% reduction from original 50px */
    transition: all 0.3s ease;
    order: -1; /* Move to leftmost position */
}

.nav-link {
    text-decoration: none;
    color: #1cd5ed;
    font-weight: bold;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-family: Arial, Helvetica, sans-serif;
}

.nav-link:hover {
    background: #1cd5ed;
    color: white;
    transform: translateY(-2px);
}

.nav-link.active {
    background: #1cd5ed;
    color: white;
}

/* Hero Text Container */
.hero-text-container {
    position: fixed;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: white;
    z-index: 1;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px 40px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    transition: all 0.5s ease;
}

.hero-text-container h1 {
    color: #1cd5ed;
    margin: 0 0 10px 0;
    font-size: 2.5em;
}

.hero-text-container p {
    color: #333;
    margin: 0;
    font-size: 1.2em;
    line-height: 1.4;
}

/* Content overlay for scroll effect */
.content-overlay {
    position: relative;
    background: white;
    z-index: 2;
    margin-top: 100vh; /* Start below viewport */
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

/* Logo Section - top-most layer */
.logo-container {
    position: fixed;
    top: 120px;
    left: 30%;
    transform: translateX(-50%);
    transition: all 0.5s ease-in-out;
    z-index: 9999;
    opacity: 1;
    pointer-events: auto;
}

.logo {
    width: 512px;
    transition: all 0.5s ease-in-out;
}

.scrolled .logo-container {
    bottom: auto;
    top: 80px;
    left: 20px;
    right: auto;
    transform: none;
}

.scrolled .logo {
    width: 150px;
}

.textbox01 {
    max-width: 850px;
    margin: 80px auto 60px auto;
    padding: 20px;
    transform: translateY(50px) scale(0.9);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.textbox01.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.textbox01:first-of-type {
    margin-top: 150px;
}

/* Image Gallery Styling */
.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.image-box {
    width: 250px;
    height: 250px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.image-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.image-placeholder {
    color: #999;
    font-size: 14px;
    text-align: center;
    padding: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

/* Text overlay for image boxes */
.image-box-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    padding: 10px;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         0 0 5px rgba(0,0,0,0.5);
    z-index: 2;
    width: 90%;
    line-height: 1.4;
}

/* Tech highlights box */
.tech-highlights {
    background: linear-gradient(135deg, #1cd5ed 0%, #0ea5cc 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
}

.tech-highlights h3 {
    margin-bottom: 15px;
    color: white;
}

.tech-highlights p {
    margin: 10px 0;
    line-height: 1.8;
}

/* Use case styling with image integration */
.use-case {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #1cd5ed;
    display: flex;
    align-items: center;
    gap: 20px;
}

.use-case-image {
    width: 20%;
    min-width: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.use-case-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

.use-case-content {
    width: 80%;
    flex-grow: 1;
}

.use-case-content h3 {
    color: #1cd5ed;
    margin: 0 0 10px 0;
}

.use-case-content p {
    margin: 0;
    line-height: 1.6;
}

/* Contact info styling */
.contact-info {
    background: linear-gradient(135deg, #1cd5ed 0%, #0ea5cc 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    margin: 30px 0;
}

.contact-info h3 {
    color: white;
    margin-bottom: 15px;
}

.contact-info a {
    color: white;
    text-decoration: underline;
}

/* WordPress-specific additions */
.wp-block-image {
    margin: 0;
}

/* Admin bar compatibility */
@media (min-width: 783px) {
    .nav-menu {
        top: 32px;
    }
    .logo-container {
        top: 152px;
    }
    .scrolled .logo-container {
        top: 112px;
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-text-container {
        bottom: 5vh;
        padding: 20px 25px;
        margin: 0 20px;
    }
    
    .hero-text-container h1 {
        font-size: 2em;
    }
    
    .hero-text-container p {
        font-size: 1em;
    }
    
    .logo-container {
        left: 50%;
        transform: translateX(-50%);
    }
    .textbox01 {
        width: 90%;
        margin-left: 5%;
        margin-right: 5%;
    }
    .nav-container {
        flex-wrap: wrap;
        gap: 20px;
    }
    .nav-links {
        gap: 20px;
    }
    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }
    .nav-header-image {
        height: 24px; /* Further reduction for mobile */
    }
    .image-box {
        width: 200px;
        height: 200px;
    }
    
    /* Use case cards stack on mobile */
    .use-case {
        flex-direction: column;
        text-align: center;
    }
    
    .use-case-image,
    .use-case-content {
        width: 100%;
    }
    
    .use-case-image {
        min-width: 120px;
        max-width: 200px;
        margin: 0 auto 15px auto;
    }
}

/* WordPress Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: Arial, Helvetica, sans-serif;
    color: #1cd5ed;
}

h1 {
    font-size: x-large;
}

h2 {
    font-size: large;
}

h3 {
    font-size: medium;
    line-height: 0pt;
}

p, ul, li {
    font-family: Arial, Helvetica, sans-serif;
    font-size: medium;
    color: #000000;
    line-height: 2;
}

a:link {
    text-decoration: none;
    color: #999999;
}

a:visited {
    text-decoration: none;
    color: #999999;
}

a:active {
    text-decoration: none;
    color: #999999;
}

a:hover {
    color: #666666;
    text-decoration: none;
}

/* ==========================================================================
   Blog Styles
   ========================================================================== */

/* Blog Container */
.blog-container,
.single-post-container,
.archive-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Blog Post Item (Listing) */
.blog-post-item,
.archive-post-item {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-item:hover,
.archive-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Blog Post Thumbnail */
.blog-post-thumbnail,
.archive-post-thumbnail {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.blog-post-thumbnail img,
.archive-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.blog-post-thumbnail:hover img,
.archive-post-thumbnail:hover img {
    transform: scale(1.05);
}

/* Blog Post Header */
.blog-post-header,
.archive-post-header {
    margin-bottom: 20px;
}

.blog-post-title,
.archive-post-title {
    margin: 0 0 15px 0;
    font-size: 28px;
    line-height: 1.3;
}

.blog-post-title a,
.archive-post-title a {
    color: #1cd5ed;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-post-title a:hover,
.archive-post-title a:hover {
    color: #0ea5cc;
}

/* Blog Post Meta */
.blog-post-meta,
.archive-post-meta,
.entry-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.blog-post-meta span,
.archive-post-meta span,
.entry-meta span {
    margin-right: 15px;
    display: inline-block;
}

.blog-post-meta a,
.archive-post-meta a,
.entry-meta a {
    color: #1cd5ed;
    text-decoration: none;
}

.blog-post-meta a:hover,
.archive-post-meta a:hover,
.entry-meta a:hover {
    text-decoration: underline;
}

/* Post Tags */
.post-tags {
    margin-top: 10px;
}

.post-tags .tags-label {
    font-weight: bold;
    color: #333;
}

/* Blog Post Excerpt */
.blog-post-excerpt,
.archive-post-excerpt {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

/* Read More Link */
.read-more-link {
    display: inline-block;
    color: #1cd5ed;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 20px;
    border: 2px solid #1cd5ed;
    transition: all 0.3s ease;
}

.read-more-link:hover {
    background: #1cd5ed;
    color: white;
    transform: translateX(5px);
}

/* Single Post Styles */
.entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1cd5ed;
}

.entry-title {
    font-size: 36px;
    color: #1cd5ed;
    margin-bottom: 15px;
    line-height: 1.2;
}

.entry-thumbnail {
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #1cd5ed;
    margin-top: 30px;
    margin-bottom: 15px;
}

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

.entry-content blockquote {
    border-left: 4px solid #1cd5ed;
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #666;
}

/* Author Bio */
.author-bio {
    background: linear-gradient(135deg, #1cd5ed 0%, #0ea5cc 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin: 40px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    border-radius: 50%;
    border: 3px solid white;
}

.author-info {
    flex-grow: 1;
}

.author-name {
    color: white;
    margin: 0 0 10px 0;
    font-size: 24px;
}

.author-name a {
    color: white;
    text-decoration: none;
}

.author-name a:hover {
    text-decoration: underline;
}

.author-description {
    color: white;
    margin-bottom: 15px;
    line-height: 1.6;
}

.author-posts-link {
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.author-posts-link:hover {
    background: white;
    color: #1cd5ed;
}

/* Related Posts */
.related-posts {
    margin: 60px 0 40px 0;
}

.related-posts h3 {
    color: #1cd5ed;
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1cd5ed;
}

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

.related-post-item {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-post-thumbnail {
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.related-post-item:hover .related-post-thumbnail img {
    transform: scale(1.1);
}

.related-post-title {
    padding: 20px 20px 10px 20px;
    margin: 0;
    font-size: 18px;
}

.related-post-title a {
    color: #1cd5ed;
    text-decoration: none;
}

.related-post-title a:hover {
    text-decoration: underline;
}

.related-post-meta {
    padding: 0 20px 20px 20px;
    font-size: 14px;
    color: #666;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 40px 0;
    padding: 30px 0;
    border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
}

.nav-previous,
.nav-next {
    flex: 1;
}

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

.post-navigation a {
    color: #1cd5ed;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 8px;
    background: #f8f9fa;
    display: inline-block;
    transition: all 0.3s ease;
}

.post-navigation a:hover {
    background: #1cd5ed;
    color: white;
    transform: translateY(-2px);
}

/* Comments Section */
.comments-area {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 3px solid #1cd5ed;
}

.comments-title {
    color: #1cd5ed;
    font-size: 28px;
    margin-bottom: 30px;
}

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

.comment {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.comment-author {
    font-weight: bold;
    color: #1cd5ed;
    margin-bottom: 10px;
}

.comment-content {
    line-height: 1.6;
}

.comment-respond {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
}

.comment-reply-title {
    color: #1cd5ed;
    font-size: 24px;
    margin-bottom: 20px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #1cd5ed;
}

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

.comment-form input[type="submit"] {
    background: #1cd5ed;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background: #0ea5cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(28,213,237,0.3);
}

/* Pagination */
.blog-pagination,
.pagination {
    text-align: center;
    margin: 60px 0 40px 0;
}

.blog-pagination .page-numbers,
.pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    margin: 0 5px;
    background: #f8f9fa;
    color: #1cd5ed;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.blog-pagination .page-numbers:hover,
.pagination .page-numbers:hover {
    background: #1cd5ed;
    color: white;
    transform: translateY(-2px);
}

.blog-pagination .page-numbers.current,
.pagination .page-numbers.current {
    background: #1cd5ed;
    color: white;
}

/* Archive Header */
.archive-header {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #1cd5ed 0%, #0ea5cc 100%);
    color: white;
    border-radius: 15px;
}

.archive-title {
    color: white;
    font-size: 36px;
    margin: 0 0 15px 0;
}

.archive-description {
    color: white;
    font-size: 18px;
    line-height: 1.6;
}

/* Blog Sidebar */
.blog-sidebar {
    margin-top: 60px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
}

.blog-sidebar .widget {
    margin-bottom: 40px;
}

.blog-sidebar .widget:last-child {
    margin-bottom: 0;
}

.blog-sidebar .widget-title {
    color: #1cd5ed;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1cd5ed;
}

.blog-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.blog-sidebar ul li {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.blog-sidebar ul li:last-child {
    border-bottom: none;
}

.blog-sidebar ul li a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-sidebar ul li a:hover {
    color: #1cd5ed;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    margin: 40px 0;
}

.no-posts-found h3 {
    color: #1cd5ed;
    font-size: 28px;
    margin-bottom: 15px;
}

.no-posts-found p {
    color: #666;
    font-size: 18px;
    line-height: 1.6;
}

/* Responsive Blog Styles */
@media (max-width: 768px) {
    .blog-post-title,
    .archive-post-title,
    .entry-title {
        font-size: 24px;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .post-navigation {
        flex-direction: column;
    }

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

    .archive-title {
        font-size: 28px;
    }
}