/* Project Details Specific Styles */

/* Project Hero Section */
.project-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}

.project-nav {
    margin-bottom: 40px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 8px 0;
}

.back-btn:hover {
    color: white;
    transform: translateX(-5px);
}

.project-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.project-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
    line-height: 1.4;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: center;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.project-actions {
    display: flex;
    gap: 15px;
}

.project-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.project-actions .btn-primary {
    background: white;
    color: #3498db;
}

.project-actions .btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.project-actions .btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.project-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Project Content */
.project-content {
    padding: 80px 0;
    background: #f8f9fa;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.content-section {
    margin-bottom: 50px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    color: #2c3e50;
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

.content-section p {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Project Gallery */
.project-gallery {
    margin: 30px 0;
}

.gallery-main {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-main img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-main img:hover {
    transform: scale(1.02);
}

.gallery-thumbnails {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature-item {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.feature-item:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.feature-item i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 20px;
    display: block;
}

.feature-item h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-item p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Technical Details */
.tech-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
}

.tech-section {
    margin-bottom: 30px;
}

.tech-section:last-child {
    margin-bottom: 0;
}

.tech-section h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.tech-section ul {
    list-style: none;
    padding: 0;
}

.tech-section li {
    color: #555;
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.tech-section li::before {
    content: '▶';
    color: #3498db;
    position: absolute;
    left: 0;
    top: 8px;
    font-size: 12px;
}

/* Code Examples */
.code-examples {
    margin-top: 30px;
}

.code-example {
    background: #2d3748;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
}

.code-example h4 {
    background: #4a5568;
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.code-example pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.code-example code {
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    line-height: 1.5;
}

/* Process Timeline */
.process-timeline {
    margin-top: 30px;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.timeline-marker {
    width: 40px;
    height: 40px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.timeline-content h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-content p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Architecture Diagram */
.architecture-diagram {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.arch-layer {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.arch-layer h4 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.arch-components {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.arch-components span {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.arch-arrow {
    color: #3498db;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 10px 0;
}

/* Challenges */
.challenges {
    margin-top: 30px;
}

.challenge-item {
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 0 8px 8px 0;
}

.challenge-item h4 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.challenge-item p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.challenge-item p:last-child {
    margin-bottom: 0;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-info-card,
.tech-stack-card,
.related-projects,
.deployment-info {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.project-info-card h3,
.tech-stack-card h3,
.related-projects h3,
.deployment-info h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 25px;
    font-weight: 600;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.info-item span {
    color: #555;
}

.status-active {
    background: #d4edda;
    color: #155724;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Tech Stack Card */
.tech-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tech-category h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-list span {
    background: #e3f2fd;
    color: #1976d2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* Deployment Info */
.deployment-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.deployment-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.deployment-item h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.deployment-item p {
    color: #555;
    margin: 4px 0;
    font-size: 14px;
}

.deployment-item a {
    color: #3498db;
    text-decoration: none;
    word-break: break-all;
}

.deployment-item a:hover {
    text-decoration: underline;
}

/* Related Projects */
.related-project {
    margin-bottom: 20px;
}

.related-project a {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.related-project a:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.related-project img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-project h5 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.related-project p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-header h1 {
        font-size: 3rem;
    }
    
    .main-content,
    .sidebar > * {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .project-hero {
        padding: 80px 0 40px;
    }
    
    .project-header h1 {
        font-size: 2.5rem;
    }
    
    .project-subtitle {
        font-size: 1.3rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .project-actions {
        width: 100%;
    }
    
    .project-actions .btn {
        flex: 1;
        justify-content: center;
        padding: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .main-content,
    .sidebar > * {
        padding: 25px;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .gallery-thumbnails {
        gap: 10px;
    }
    
    .thumbnail {
        width: 80px;
        height: 60px;
    }
    
    .timeline-item {
        gap: 15px;
    }
    
    .timeline-marker {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .project-header h1 {
        font-size: 2.2rem;
    }
    
    .project-subtitle {
        font-size: 1.2rem;
    }
    
    .project-tech-tags {
        gap: 8px;
    }
    
    .tech-tag {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .project-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .main-content,
    .sidebar > * {
        padding: 20px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .tech-details {
        padding: 20px;
    }
    
    .gallery-thumbnails {
        justify-content: center;
    }
    
    .arch-components {
        gap: 6px;
    }
    
    .arch-components span {
        padding: 4px 8px;
        font-size: 12px;
    }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .project-content {
        background: #1a1a1a;
    }
    
    .main-content,
    .project-info-card,
    .tech-stack-card,
    .related-projects,
    .deployment-info {
        background: #2d2d2d;
        color: #e0e0e0;
    }
    
    .content-section h2,
    .project-info-card h3,
    .tech-stack-card h3,
    .related-projects h3,
    .deployment-info h3 {
        color: #ffffff;
    }
    
    .content-section p,
    .info-item span,
    .deployment-item p {
        color: #b0b0b0;
    }
    
    .feature-item {
        background: #3d3d3d;
        border-color: #4d4d4d;
    }
    
    .feature-item:hover {
        background: #2d2d2d;
    }
}
