/* ===================================
   PROJECT DETAIL PAGE STYLES
   =================================== */

/* Project Hero Section */
.project-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding-top: 100px;
    padding-bottom: 60px;
    overflow: hidden;
}

.project-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.project-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(var(--bg-rgb, 10, 10, 15), 0.3) 0%,
        rgba(var(--bg-rgb, 10, 10, 15), 0.7) 50%,
        rgba(var(--bg-rgb, 10, 10, 15), 1) 100%
    );
    z-index: 1;
}

.project-hero-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-hero-placeholder i {
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.1);
}

.project-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--primary-color);
}

.back-link i {
    transition: transform 0.3s ease;
}

.back-link:hover i {
    transform: translateX(-5px);
}

.project-category-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
}

.project-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
}

.project-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.meta-item i {
    color: var(--primary-color);
}

.project-links-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.project-links-hero .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Project Content */
.project-content {
    padding: 80px 0;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

/* Main Content */
.project-main {
    min-width: 0;
}

.project-section {
    margin-bottom: 50px;
}

.project-section h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-section h2 i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.project-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 15px;
}

/* Challenge Grid */
.challenge-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.challenge-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.challenge-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.challenge-icon i {
    color: white;
    font-size: 1.3rem;
}

.challenge-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.challenge-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* Solution List */
.solution-list {
    list-style: none;
    margin-top: 20px;
}

.solution-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.solution-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
}

.solution-list li strong {
    color: var(--text-color);
}

/* Gallery */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item.large {
    grid-column: span 2;
}

.gallery-placeholder {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--card-bg), var(--bg-color));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.gallery-item.large .gallery-placeholder {
    aspect-ratio: 16/9;
}

.gallery-placeholder i {
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.5;
}

.gallery-placeholder span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.result-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.result-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Project Testimonial */
.testimonial-section {
    margin-top: 60px;
}

.project-testimonial {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    position: relative;
}

.project-testimonial .quote-icon {
    position: absolute;
    top: -20px;
    left: 40px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-testimonial .quote-icon i {
    color: white;
    font-size: 1.3rem;
}

.project-testimonial blockquote {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 25px;
    padding-top: 10px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    color: white;
    font-size: 1.3rem;
}

.author-info strong {
    display: block;
    font-size: 1rem;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Sidebar */
.project-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
}

.sidebar-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-section h3 i {
    color: var(--primary-color);
}

/* Tech Stack */
.tech-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(var(--primary-rgb), 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(var(--primary-rgb), 0.2);
}

.tech-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Features List */
.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li i {
    color: #10b981;
    font-size: 0.85rem;
}

/* Project Timeline */
.project-timeline {
    position: relative;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 20px;
    position: relative;
}

.timeline-step:last-child {
    padding-bottom: 0;
}

.timeline-step::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 20px;
    width: 2px;
    height: calc(100% - 10px);
    background: var(--border-color);
}

.timeline-step:last-child::before {
    display: none;
}

.step-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--border-color);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.timeline-step.completed .step-dot {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.step-content strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 3px;
}

.step-content span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    text-align: center;
}

.cta-section h3 {
    color: white;
    justify-content: center;
}

.cta-section h3 i {
    display: none;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.cta-section .btn {
    background: white;
    color: var(--primary-color);
}

.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Other Projects Section */
.other-projects {
    padding: 80px 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.other-projects h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 40px;
}

.other-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.other-project-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.other-project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}

.other-project-image {
    height: 180px;
    overflow: hidden;
}

.other-project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.other-project-placeholder i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
}

.other-project-info {
    padding: 20px;
}

.other-project-category {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.other-project-info h3 {
    font-size: 1.2rem;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 1024px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .project-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sidebar-section.cta-section {
        grid-column: span 2;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .project-hero {
        min-height: 60vh;
        padding-top: 80px;
    }
    
    .project-hero-placeholder i {
        font-size: 8rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .challenge-grid {
        grid-template-columns: 1fr;
    }
    
    .project-gallery {
        grid-template-columns: 1fr 1fr;
    }
    
    .gallery-item.large {
        grid-column: span 2;
    }
    
    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-sidebar {
        grid-template-columns: 1fr;
    }
    
    .sidebar-section.cta-section {
        grid-column: span 1;
    }
    
    .other-projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .project-gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large {
        grid-column: span 1;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-stack {
        grid-template-columns: 1fr;
    }
    
    .project-links-hero {
        flex-direction: column;
    }
    
    .project-links-hero .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   THEME SUPPORT
   =================================== */

/* Light Theme */
[data-theme="light"] .project-hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 1) 100%
    );
}

/* Cartoon Style */
[data-style="cartoon"] .project-hero h1,
[data-style="cartoon"] .project-section h2,
[data-style="cartoon"] .sidebar-section h3,
[data-style="cartoon"] .other-projects h2 {
    font-family: 'Comic Sans MS', 'Chalkboard', cursive !important;
}

[data-style="cartoon"] .challenge-card,
[data-style="cartoon"] .sidebar-section,
[data-style="cartoon"] .other-project-card,
[data-style="cartoon"] .result-card,
[data-style="cartoon"] .project-testimonial {
    border: 3px solid #1a1a2e !important;
    box-shadow: 5px 5px 0 #1a1a2e !important;
    border-radius: 20px !important;
}

[data-style="cartoon"] .project-category-tag,
[data-style="cartoon"] .tech-item,
[data-style="cartoon"] .btn {
    border: 2px solid #1a1a2e !important;
    box-shadow: 3px 3px 0 #1a1a2e !important;
}

/* Neon Style */
[data-style="neon"] .project-hero h1 {
    text-shadow: 0 0 10px var(--primary-color),
                 0 0 20px var(--primary-color),
                 0 0 40px var(--primary-color);
}

[data-style="neon"] .challenge-card,
[data-style="neon"] .sidebar-section,
[data-style="neon"] .other-project-card,
[data-style="neon"] .result-card,
[data-style="neon"] .project-testimonial {
    border: 1px solid var(--primary-color) !important;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.3),
                inset 0 0 20px rgba(var(--primary-rgb), 0.1) !important;
}

[data-style="neon"] .result-number {
    text-shadow: 0 0 10px var(--primary-color);
}

/* Nature Style */
[data-style="nature"] .challenge-card,
[data-style="nature"] .sidebar-section,
[data-style="nature"] .other-project-card,
[data-style="nature"] .result-card,
[data-style="nature"] .project-testimonial {
    border-radius: 30px 10px 30px 10px !important;
    border: 2px solid var(--primary-color) !important;
}

[data-style="nature"] .project-category-tag,
[data-style="nature"] .tech-item {
    border-radius: 20px 5px 20px 5px !important;
}
