/* Project Post Type Styles */

/* Original Theme Variables */
:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --secondary: #7c3aed;
    --accent: #10b981;
    --text: #1e293b;
    --text-light: #64748b;
    --bg: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Original Single Project Styles */
.site-main.single-project {
    color: var(--text);
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.project-header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
}

.project-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.project-title span {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    color: transparent;
}

.project-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: var(--transition);
}

.project-meta-item:hover {
    background: var(--primary-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.project-meta-item i {
    color: var(--primary);
}

.project-meta-item:hover i {
    color: white;
}

.project-thumbnail {
    margin: 2rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.project-thumbnail:hover {
    transform: scale(1.01);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.project-featured-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
    object-fit: cover;
    border-radius: var(--border-radius);
}

/* Force full size for project images */
.project-thumbnail img,
.project-featured-image {
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
}

.project-thumbnail:hover .project-featured-image {
    transform: scale(1.03);
}

.project-content {
    max-width: 800px;
    margin: 3rem auto;
    font-size: 1.1rem;
    color: var(--text);
}

.project-content p {
    margin-bottom: 1.5rem;
}

.project-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.project-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.project-detail-card {
    background: var(--bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.project-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.project-detail-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
    position: relative;
}

.project-detail-card h3::after {
    content: "";
    position: absolute;
    bottom: -8px;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: var(--bg-light);
    color: var(--text);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.tech-badge:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.project-details-list {
    padding: 0;
    list-style: none;
}

/* Prevent long URLs/text from overflowing in details items */
.project-details-list li {
    margin: 0.4rem 0;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}

.project-details-list li strong {
    flex: 0 0 auto;
    white-space: nowrap;
}

.project-categories-wrapper {
    text-align: center;
    margin: 4rem 0;
}

.categories-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.project-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.project-category-badge {
    color: var(--text);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.project-category-badge:hover {
    border-color: var(--secondary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

/* Original Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.project-header {
    animation: fadeIn 0.6s ease;
}

.project-thumbnail {
    animation: fadeIn 0.6s ease 0.2s both;
}

.project-content {
    animation: fadeIn 0.6s ease 0.4s both;
}

.project-details-grid > * {
    animation: fadeIn 0.6s ease 0.6s both;
}

.project-categories-wrapper {
    animation: fadeIn 0.6s ease 0.8s both;
}

/* Enhanced Project Info Section */
.project-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.project-info h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.project-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.project-info-grid .info-item {
    flex: 1 1 250px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 12px 15px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Prevent long text/URLs from overflowing and let only that item grow */
.info-item .label,
.info-item .value {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
    max-width: 100%;
}

.info-item .label {
    flex: 0 0 auto;
    margin-left: 8px;
}

.info-item .value {
    flex: 1 1 auto;
}

.info-item .label {
    font-weight: 600;
    color: #34495e;
    min-width: 120px;
}

.info-item .value {
    color: #2c3e50;
    font-weight: 500;
    text-align: end;
}

/* Status Colors */
.status-completed {
    color: #27ae60 !important;
    font-weight: 600;
}

.status-in_progress {
    color: #f39c12 !important;
    font-weight: 600;
}

.status-on_hold {
    color: #e74c3c !important;
    font-weight: 600;
}

.status-cancelled {
    color: #95a5a6 !important;
    font-weight: 600;
}

/* Technologies Section */
.technologies-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.technologies-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.technologies-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: #3498db;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Project Gallery */
.project-gallery {
    margin: 30px 0;
}

.project-gallery h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.gallery-link {
    display: block;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Project Timeline */
.project-timeline {
    margin: 30px 0;
}

.project-timeline h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.5rem;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 10px;
}

.timeline-description {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 25px;
    font-style: italic;
}

.timeline-container {
    position: relative;
    padding-left: 30px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #f39c12;
}

.timeline-event {
    position: relative;
    margin-bottom: 30px;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #f39c12;
}

.timeline-event::before {
    content: '';
    position: absolute;
    left: -23px;
    top: 25px;
    width: 12px;
    height: 12px;
    background: #f39c12;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #f39c12;
}

.timeline-date {
    font-weight: 600;
    color: #e67e22;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.timeline-content h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.timeline-content p {
    color: #7f8c8d;
    line-height: 1.6;
    margin: 0;
}

/* Project Team */
.project-team {
    margin: 30px 0;
}

.project-team h3 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 1.5rem;
    border-bottom: 2px solid #9b59b6;
    padding-bottom: 10px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.team-member {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-top: 4px solid #9b59b6;
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.member-info h4 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.member-role {
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.member-email,
.member-linkedin {
    margin: 5px 0;
}

.member-email a,
.member-linkedin a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.member-email a:hover,
.member-linkedin a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Project Links */
.project-links {
    margin: 30px 0;
}

.project-links h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid #27ae60;
    padding-bottom: 10px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    text-decoration: none;
}

.live-link:hover {
    border-color: #27ae60;
    color: #27ae60;
}

.github-link:hover {
    border-color: #333;
    color: #333;
}

.demo-link:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.docs-link:hover {
    border-color: #f39c12;
    color: #f39c12;
}

.project-link i {
    font-size: 1.1rem;
}

/* Full Project Display */
.project-full-display {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* PROJECT ARCHIVE STYLES */
.page-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.archive-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.project-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.project-thumbnail {
    position: relative;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-content {
    padding: 25px;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.project-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: #3498db;
}

.project-excerpt {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #7f8c8d;
    background: #f8f9fa;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.meta-item i {
    font-size: 0.8rem;
}

.project-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.tech-tag.more {
    background: #95a5a6;
    font-size: 0.8rem;
    padding: 4px 8px;
}

.project-links-preview {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.project-link-preview {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link-preview.live {
    background: #27ae60;
    color: white;
}

.project-link-preview.github {
    background: #333;
    color: white;
}

.project-link-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.project-readmore {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.readmore-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.readmore-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.3);
    color: white;
    text-decoration: none;
}

/* Pagination */
.navigation.pagination {
    margin-top: 40px;
    text-align: center;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

/* No Projects */
.no-projects {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 40px 0;
}

.no-projects h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.no-projects p {
    color: #7f8c8d;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-title {
        font-size: 2rem;
    }

    .project-details-grid {
        grid-template-columns: 1fr;
    }

    .project-content {
        font-size: 1rem;
    }
    
    .project-info-grid {
        display: flex;
    }
    .project-info-grid .info-item {
        flex: 1 1 100%;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-container {
        padding-left: 20px;
    }
    
    .timeline-event::before {
        left: -18px;
    }
    
    /* Archive Responsive */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .project-links-preview {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 1.8rem;
    }

    .project-meta {
        flex-direction: column;
        align-items: center;
    }
    
    .project-info,
    .project-gallery,
    .project-timeline,
    .project-team,
    .project-links {
        padding: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .technologies-list {
        justify-content: center;
    }
    
    /* Archive Mobile */
    .project-content {
        padding: 20px;
    }
    
    .project-title {
        font-size: 1.2rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
}

/* Loading States */
.project-info.loading,
.project-gallery.loading,
.project-timeline.loading,
.project-team.loading,
.project-links.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Print Styles */
@media print {
    .project-link {
        border: 1px solid #ccc;
        box-shadow: none;
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .team-member:hover {
        transform: none;
    }
    
    .project-card:hover {
        transform: none;
    }
}