/* Project Detail Page Styles */

.project-detail {
    background: hsl(210, 11%, 7%);
    color: hsl(0, 0%, 98%);
    min-height: 100vh;
}

/* Project Header */
.project-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, hsl(210, 11%, 8%) 0%, hsl(210, 11%, 10%) 100%);
}

.project-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: hsl(0, 0%, 70%);
}

.project-breadcrumb a {
    color: hsl(51, 87%, 62%);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-breadcrumb a:hover {
    color: hsl(51, 87%, 75%);
}

.project-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, hsl(0, 0%, 98%) 0%, hsl(0, 0%, 85%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.project-excerpt {
    font-size: 1.25rem;
    color: hsl(0, 0%, 80%);
    margin-bottom: 2rem;
    max-width: 60ch;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.project-categories {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-tag {
    background: hsl(51, 87%, 62%);
    color: hsl(210, 11%, 7%);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.project-technologies {
    color: hsl(0, 0%, 70%);
    font-size: 0.95rem;
}

.project-technologies strong {
    color: hsl(0, 0%, 90%);
}

/* Featured Image */
.project-featured-image {
    padding: 4rem 0;
}

.featured-image-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-featured-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Project Content Grid */
.project-content {
    padding: 4rem 0;
}

.project-content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    align-items: start;
}

.project-main-content {
    min-width: 0;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: hsl(0, 0%, 85%);
}

.project-description h2,
.project-description h3 {
    color: hsl(0, 0%, 98%);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.project-description p {
    margin-bottom: 1.5rem;
}

/* Project Gallery */
.project-gallery {
    margin-top: 4rem;
}

.project-gallery h3 {
    font-size: 1.75rem;
    color: hsl(0, 0%, 98%);
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: hsl(210, 11%, 12%);
}

.gallery-link {
    display: block;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Project Testimonial */
.project-testimonial {
    margin-top: 4rem;
    padding: 2.5rem;
    background: hsl(210, 11%, 10%);
    border-radius: 20px;
    border-left: 4px solid hsl(51, 87%, 62%);
}

.project-testimonial h3 {
    color: hsl(0, 0%, 98%);
    margin-bottom: 1.5rem;
}

.project-testimonial blockquote {
    margin: 0;
}

.project-testimonial p {
    font-size: 1.1rem;
    font-style: italic;
    color: hsl(0, 0%, 85%);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-testimonial cite {
    color: hsl(51, 87%, 62%);
    font-weight: 600;
    font-style: normal;
}

/* Project Sidebar */
.project-sidebar {
    position: sticky;
    top: 2rem;
}

.project-details-widget,
.project-action-card {
    background: hsl(210, 11%, 10%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid hsl(210, 11%, 15%);
    transition: all 0.3s ease;
}

.project-details-widget:hover,
.project-action-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.1);
}

.project-details-widget h3,
.project-action-card h3 {
    color: hsl(0, 0%, 98%);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.project-action-card p {
    color: hsl(0, 0%, 70%);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-info {
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.info-item strong {
    color: hsl(0, 0%, 70%);
    font-size: 0.9rem;
    min-width: 100px;
}

.info-item span {
    color: hsl(0, 0%, 90%);
    text-align: right;
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-links .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: hsl(51, 87%, 62%);
    color: hsl(210, 11%, 7%);
    border: none;
}

.btn-primary:hover {
    background: hsl(51, 87%, 70%);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: hsl(0, 0%, 85%);
    border: 2px solid hsl(210, 11%, 20%);
}

.btn-outline:hover {
    background: hsl(210, 11%, 15%);
    border-color: hsl(51, 87%, 62%);
    color: hsl(51, 87%, 62%);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid hsl(210, 11%, 20%);
}

.share-btn.twitter {
    color: #1DA1F2;
    border-color: rgba(29, 161, 242, 0.3);
}

.share-btn.twitter:hover {
    background: rgba(29, 161, 242, 0.1);
}

.share-btn.linkedin {
    color: #0077B5;
    border-color: rgba(0, 119, 181, 0.3);
}

.share-btn.linkedin:hover {
    background: rgba(0, 119, 181, 0.1);
}

.share-btn.facebook {
    color: #1877F2;
    border-color: rgba(24, 119, 242, 0.3);
}

.share-btn.facebook:hover {
    background: rgba(24, 119, 242, 0.1);
}

/* Related Projects */
.related-projects {
    padding: 4rem 0;
    background: hsl(210, 11%, 9%);
}

.related-projects h3 {
    font-size: 2rem;
    color: hsl(0, 0%, 98%);
    margin-bottom: 3rem;
    text-align: center;
}

.related-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-project-item {
    background: hsl(210, 11%, 10%);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid hsl(210, 11%, 15%);
}

.related-project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.related-project-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-project-image {
    height: 200px;
    overflow: hidden;
}

.related-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-project-item:hover .related-project-image img {
    transform: scale(1.05);
}

.related-project-content {
    padding: 1.5rem;
}

.related-project-content h4 {
    color: hsl(0, 0%, 98%);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.related-project-category {
    color: hsl(51, 87%, 62%);
    font-size: 0.875rem;
    font-weight: 600;
}

/* Project Navigation */
.project-navigation {
    padding: 4rem 0;
    background: hsl(210, 11%, 8%);
    border-top: 1px solid hsl(210, 11%, 15%);
}

.project-nav-links {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.project-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: hsl(210, 11%, 10%);
    border-radius: 12px;
    text-decoration: none;
    color: hsl(0, 0%, 85%);
    border: 1px solid hsl(210, 11%, 15%);
    transition: all 0.3s ease;
}

.project-nav-link:hover {
    background: hsl(210, 11%, 12%);
    border-color: hsl(51, 87%, 62%);
    transform: translateY(-2px);
}

.prev-project {
    justify-self: start;
}

.next-project {
    justify-self: end;
    flex-direction: row-reverse;
}

.back-to-portfolio {
    justify-self: center;
    background: hsl(51, 87%, 62%);
    color: hsl(210, 11%, 7%);
    font-weight: 600;
}

.back-to-portfolio:hover {
    background: hsl(51, 87%, 70%);
    color: hsl(210, 11%, 7%);
}

.nav-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-label {
    font-size: 0.8rem;
    color: hsl(0, 0%, 60%);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-weight: 600;
    color: hsl(0, 0%, 98%);
}

.nav-arrow,
.nav-icon {
    color: hsl(51, 87%, 62%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .project-header {
        padding: 6rem 0 3rem;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
    
    .project-excerpt {
        font-size: 1.1rem;
    }
    
    .project-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .project-sidebar {
        position: static;
        order: -1;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .related-projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-nav-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .prev-project,
    .next-project,
    .back-to-portfolio {
        justify-self: stretch;
    }
    
    .next-project {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .project-header {
        padding: 5rem 0 2rem;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .project-content,
    .related-projects,
    .project-navigation {
        padding: 2rem 0;
    }
    
    .project-details-widget,
    .project-action-card {
        padding: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Modern Share Buttons */
.modern-share-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.modern-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    background: hsl(210, 11%, 15%);
    color: hsl(0, 0%, 70%);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.modern-share-btn[data-share="twitter"]:hover {
    background: #1da1f2;
    color: white;
}

.modern-share-btn[data-share="linkedin"]:hover {
    background: #0077b5;
    color: white;
}

.modern-share-btn[data-share="copy"]:hover {
    background: var(--primary);
    color: var(--primary-foreground);
}

.modern-share-btn:active {
    transform: translateY(0);
}

.share-feedback {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 1rem;
}

.share-feedback.success {
    background: rgba(34, 197, 94, 0.1);
    color: rgb(34, 197, 94);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.share-feedback.error {
    background: rgba(239, 68, 68, 0.1);
    color: rgb(239, 68, 68);
    border: 1px solid rgba(239, 68, 68, 0.2);
}