/* Blog Specific Styles */

/* Section Styling */
.section-light {
    background-color: #f5f5f5;
    padding: 40px 0;
}

.section-dark {
    background-color: #000;
    color: #fff;
    padding: 40px 0;
}

.text-center {
    text-align: center;
}

/* Blog Cards on Homepage */
.blog-item {
    margin-bottom: 30px;
}

.blog-card {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Image placeholder fallback */
.blog-image img[src*="cloud-migration"]:before,
.blog-image img[src*="kubernetes"]:before,
.blog-image img[src*="microservices"]:before,
.blog-image img[src*="cross-cultural"]:before {
    content: "";
    display: block;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.project-image .image-placeholder {
    height: 300px;
    font-size: 18px;
}

/* GitHub Repositories Styling */
#github-repos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.repo-item {
    margin: 0;
}

.repo-card {
    background: #fff;
    border: 2px solid #e1e4e8;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.repo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #0366d6;
}

.repo-card h4 {
    margin: 0 0 15px 0;
    font-size: 20px;
    flex-shrink: 0;
}

.repo-card h4 a {
    color: #0366d6;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.repo-card h4 a:hover {
    color: #0256cc;
    text-decoration: underline;
}

.repo-description {
    color: #586069;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 15px;
    flex-grow: 1;
}

.repo-meta {
    font-size: 14px;
    color: #586069;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e1e4e8;
}

.repo-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.language {
    font-weight: 600;
    color: #0366d6;
    background: #f1f8ff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.stars {
    color: #586069;
    font-weight: 500;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content .date {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}

.blog-content h3 {
    margin-bottom: 15px;
    font-size: 18px;
    line-height: 1.4;
}

.blog-content p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more {
    align-self: flex-start;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.read-more:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #000;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #666;
}

.read-more:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Project Cards */
.project-card {
    background: #fff;
    border-radius: 5px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    margin-bottom: 15px;
}

.project-card p {
    margin-bottom: 20px;
}

/* Blog Page Styles */
.blog-post {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e8e8e8;
}

.post-header h2 {
    margin-bottom: 10px;
}

.post-header h2 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-header h2 a:hover {
    color: #666;
}

.post-meta {
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.post-meta span {
    margin-right: 20px;
}

.post-image {
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.post-image:hover img {
    transform: scale(1.02);
}

.post-excerpt p {
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.pagination .page {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 15px;
    border-radius: 3px;
    background: #f5f5f5;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page:hover {
    background: #e0e0e0;
}

.pagination .current {
    background: #000;
    color: #fff;
}

.pagination .dots {
    background: transparent;
}

.pagination .next {
    margin-left: 10px;
}

/* Sidebar */
.sidebar {
    padding-left: 20px;
}

.widget {
    margin-bottom: 40px;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 5px;
}

.widget h5 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.sidebar-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.categories-widget ul,
.recent-posts-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.categories-widget li,
.recent-posts-widget li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.categories-widget li:last-child,
.recent-posts-widget li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.categories-widget a,
.recent-posts-widget a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.categories-widget a:hover,
.recent-posts-widget a:hover {
    color: #000;
}

/* LinkedIn Posts Grid Layout */
.linkedin-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

/* Compact LinkedIn Posts for Homepage - Vercel Style High Contrast */
.linkedin-post-compact {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.linkedin-post-compact:hover {
    background: #f5f5f5;
    border-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.linkedin-post-compact .post-content {
    color: #000000;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 400;
}

.linkedin-post-compact .post-tags {
    margin-bottom: 20px;
}

.linkedin-post-compact .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.linkedin-post-compact .post-date {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Full LinkedIn Posts for Blog Page */
.linkedin-post-full {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.linkedin-post-full:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.linkedin-post-full .post-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e8e8e8;
}

.linkedin-post-full .post-date {
    color: #666;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.linkedin-post-full .post-content {
    color: #333;
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 16px;
}

.linkedin-post-full .post-tags {
    margin-bottom: 20px;
}

.linkedin-post-full .post-footer {
    padding-top: 15px;
    border-top: 1px solid #e8e8e8;
}

/* Tags Styling - High Contrast Vercel Style */
.tag {
    display: inline-block;
    background: #0070f3;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #0070f3;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #0051a2;
    border-color: #0051a2;
}

.linkedin-post-compact .tag {
    background: #0070f3;
    color: #ffffff;
    border: 1px solid #0070f3;
    font-weight: 700;
    text-shadow: none;
}

.linkedin-post-compact .tag:hover {
    background: #0051a2;
    border-color: #0051a2;
}

/* Source Link */
.source-link {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.source-link:hover {
    color: #374151;
    text-decoration: underline;
}

.source-link i {
    margin-right: 5px;
}

/* Legacy styles for backward compatibility */
.linkedin-post {
    background: #f8f8f8;
    border-left: 5px solid #666;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 5px 5px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.linkedin-post p {
    font-style: italic;
    margin-bottom: 10px;
}

.linkedin-link {
    color: #000;
    font-weight: 600;
    text-decoration: none;
}

.linkedin-link:hover {
    text-decoration: underline;
}

.post-date {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #e0e0e0;
}

.post-date small {
    color: #999;
    font-size: 12px;
}

/* App Section Styling */
.app-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 4px solid #000;
}

.app-section h4 {
    color: #000;
    margin-bottom: 15px;
}

.app-section h5 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.app-section .project-cta {
    margin-top: 20px;
    margin-bottom: 0;
}

/* Contact Form */
#contactForm {
    margin-bottom: 30px;
}

#contactForm label {
    font-size: 15px;
    margin-bottom: 10px;
    display: block;
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm input[type="tel"],
#contactForm input[type="url"],
#contactForm textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}

#contactForm textarea {
    height: 200px;
}

#contactForm button.submit {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#contactForm button.submit:hover {
    background: #333;
}

#image-loader {
    display: none;
    margin-left: 10px;
    vertical-align: middle;
}

#message-warning,
#message-success {
    display: none;
    margin: 15px 0;
    padding: 15px;
    border-radius: 4px;
}

#message-warning {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
}

#message-success {
    background: #f8f8f8;
    color: #000;
    border: 1px solid #ddd;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-details h4,
.social-connect h4,
.response-time h4 {
    margin-bottom: 15px;
}

.social-connect ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-connect li {
    margin-bottom: 10px;
}

.social-connect a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-connect a:hover {
    color: #000;
}

/* Compact Blog Cards for Homepage */
.blog-card-compact {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 24px;
    height: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.blog-card-compact:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-meta .date {
    color: #ccc;
    font-weight: 500;
}

.blog-meta .category {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 10px;
}

.blog-card-compact h3 {
    margin-bottom: 16px;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 600;
}

.blog-card-compact h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-compact h3 a:hover {
    color: #ddd;
}

.blog-card-compact p {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 14px;
}

.read-more-compact {
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more-compact:hover {
    color: #ddd;
    transform: translateX(4px);
}

.button-tech {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 12px 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.button-tech:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.blog-grid {
    margin-top: 40px;
}

/* Activity Cards for Real Content */
.activity-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.activity-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
}

.activity-card h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.activity-card h3 i {
    margin-right: 10px;
}

.activity-card .button-tech {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

/* Content Notice */
.content-notice {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid #000;
}

.content-notice h3 {
    margin-bottom: 15px;
    color: #333;
}

.content-notice p {
    color: #666;
    line-height: 1.6;
}

/* LinkedIn and GitHub Sections */
.linkedin-section,
.github-section {
    margin-bottom: 50px;
}

.linkedin-section h2,
.github-section h2 {
    border-bottom: 2px solid #e8e8e8;
    padding-bottom: 10px;
    margin-bottom: 30px;
    color: #333;
}

.linkedin-section h2 i,
.github-section h2 i {
    margin-right: 10px;
    color: #666;
}

#linkedin-posts-full,
#github-repos-full {
    margin-bottom: 30px;
}

/* Responsive adjustments for blog */
@media only screen and (max-width: 767px) {
    .blog-content h3 {
        font-size: 16px;
    }
    
    .sidebar {
        padding-left: 0;
        margin-top: 40px;
    }
    
    .post-meta span {
        display: block;
        margin-bottom: 5px;
    }

    .blog-card-compact {
        margin-bottom: 20px;
    }

    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .blog-card-compact h3 {
        font-size: 16px;
    }

    .linkedin-posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .linkedin-post-compact {
        padding: 20px;
    }

    .linkedin-post-compact .post-content {
        font-size: 15px;
    }

    #github-repos {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .repo-card {
        padding: 20px;
    }

    .repo-card h4 {
        font-size: 18px;
    }
}

/* GitHub Repositories Styling */
.github-repos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Enhanced Project Card Styling for Projects Page */
.project-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-image:hover img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 112, 243, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: white;
    font-size: 24px;
    text-decoration: none;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 20px;
}

.project-tech {
    color: #0070f3;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.project-info p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    gap: 10px;
}

.project-links .button {
    padding: 8px 16px;
    font-size: 12px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.project-links .button-alt {
    background: #f8f9fa;
    color: #0070f3;
    border: 1px solid #e1e4e8;
}

.project-links .button-alt:hover {
    background: #0070f3;
    color: white;
}

/* Tech Stack Styling */
.tech-category h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 16px;
}

.tech-list {
    list-style: none;
    padding: 0;
}

.tech-list li {
    color: #666;
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.tech-list li:last-child {
    border-bottom: none;
}

/* Project Stats Styling */
.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #0070f3;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Enhanced Section Backgrounds for Projects Page */
.section-light {
    background: #f8f9fa;
    padding: 40px 0;
}

.section-dark {
    background: #333;
    color: white;
    padding: 40px 0;
}

.section-dark h2,
.section-dark h3 {
    color: white;
}

.section-dark p {
    color: #ccc;
}

/* Responsive Design for Projects */
@media screen and (max-width: 768px) {
    .project-links {
        flex-direction: column;
    }
    
    .tech-category {
        margin-bottom: 30px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .project-image {
        height: 150px;
    }
    
    .project-info {
        padding: 20px;
    }
}