/* ========== Portfolio Detail Page Styles ========== */

.portfolio-detail-section {
    padding: 80px 0;
    background: #f8f9fa;
}

/* Improved Breadcrumb Navigation */
.portfolio-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-link {
    font-family: "Roboto Mono", monospace;
    font-size: 0.9rem;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb-link:hover {
    color: var(--accent-orange);
    background: rgba(206, 42, 29, 0.05);
}

.breadcrumb-current {
    font-family: "Roboto Mono", monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
}

.breadcrumb-separator {
    color: #adb5bd;
    font-size: 0.8rem;
}

/* Portfolio Detail Container */
.portfolio-detail-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Primary Image */
.portfolio-primary-image {
    position: relative;
    /* aspect-ratio: 1/1; */
    overflow: hidden;
    background: #f8f9fa;
}

.primary-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.primary-image:hover {
    transform: scale(1.02);
}

.featured-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent-orange);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: "Roboto Mono", monospace;
    z-index: 2;
}

/* Details Section */
.portfolio-details {
    padding: 2.5rem;
}

/* Project Type above title */
.project-type {
    font-size: 0.85rem;
    color: var(--accent-blue);
    font-family: "Roboto Mono", monospace;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.portfolio-title {
    font-family: var(--primary-font);
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.portfolio-client {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: "Roboto Mono", monospace;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.portfolio-date {
    /* display: inline-flex;
    align-items: center; */
    /* gap: 0.5rem; */
    font-family: "Roboto Mono", monospace;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* CKEditor Content Styling */
.portfolio-description-content {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-family: "Roboto Mono", monospace;
}

.portfolio-description-content h2,
.portfolio-description-content h3,
.portfolio-description-content h4 {
    font-family: var(--primary-font);
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.portfolio-description-content h2 {
    font-size: 1.5rem;
}

.portfolio-description-content h3 {
    font-size: 1.3rem;
}

.portfolio-description-content h4 {
    font-size: 1.1rem;
}

.portfolio-description-content p {
    margin-bottom: 1rem;
}

.portfolio-description-content ul,
.portfolio-description-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.portfolio-description-content li {
    margin-bottom: 0.5rem;
}

.portfolio-description-content a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.portfolio-description-content a:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

.portfolio-description-content strong {
    font-weight: 600;
    color: var(--primary-color);
}

.portfolio-description-content em {
    font-style: italic;
}

/* Credits Section - Table Style */
.portfolio-credits-section {
    margin-bottom: 2rem;
}

.credits-title {
    font-family: var(--primary-font);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f1f1;
}

.credits-table {
    width: 100%;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    border-collapse: collapse;
}

.credit-row {
    border-bottom: 1px solid #e9ecef;
    transition: background 0.3s ease;
}

.credit-row:last-child {
    border-bottom: none;
}

.credit-row:hover {
    background: #f1f3f5;
}

.credit-row td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
}

.credit-name {
    font-family: var(--primary-font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    width: 33%;
}

.credit-role {
    font-family: "Roboto Mono", monospace;
    font-size: 0.85rem;
    color: var(--accent-orange);
    width: 33%;
}

.credit-instagram {
    width: 34%;
}

.credit-instagram a {
    font-family: "Roboto Mono", monospace;
    font-size: 0.85rem;
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.credit-instagram a:hover {
    color: var(--accent-orange);
}

.credit-instagram.empty {
    font-family: "Roboto Mono", monospace;
    font-size: 0.85rem;
    color: #adb5bd;
}

/* Action Buttons */
.portfolio-action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.portfolio-primary-btn {
    flex: 1;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-family: var(--primary-font);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-decoration: none;
}

.portfolio-primary-btn:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    color: white;
    text-decoration: none;
}

.portfolio-secondary-btn {
    flex: 1;
    background: #f8f9fa;
    color: var(--primary-color);
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-family: var(--primary-font);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.portfolio-secondary-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Other Images Section */
.portfolio-other-images-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.section-title {
    font-family: var(--primary-font);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.accent-dot {
    color: var(--accent-orange);
}

.other-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.other-image-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.other-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.other-image-item a {
    display: block;
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.other-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.other-image-item:hover .other-image {
    transform: scale(1.05);
}

.other-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.other-image-item:hover .other-image-overlay {
    opacity: 1;
}

.other-image-overlay i {
    color: white;
    font-size: 2rem;
}

.other-image-caption {
    padding: 0.75rem 1rem;
    font-family: "Roboto Mono", monospace;
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
    background: white;
    margin: 0;
}

/* Video Section */
.portfolio-video-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.project-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Related Projects Section */
.related-projects-section {
    padding: 80px 0;
    background: white;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.related-title {
    font-family: var(--primary-font);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

.view-all-link {
    font-family: "Roboto Mono", monospace;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-all-link:hover {
    color: var(--accent-orange);
    transform: translateX(5px);
}

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

.related-project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.related-project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

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

.related-project-image-wrapper {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
}

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

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

.related-project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-project-card:hover .related-project-overlay {
    opacity: 1;
}

.related-project-type {
    background: var(--accent-orange);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: "Roboto Mono", monospace;
    text-transform: uppercase;
}

.related-project-info {
    padding: 1.5rem;
    text-align: center;
}

.related-project-title {
    font-family: var(--primary-font);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.related-project-client {
    font-family: "Roboto Mono", monospace;
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

/* Responsive Design for Detail Page */
@media (max-width: 992px) {
    .main-image-container {
        aspect-ratio: 16/9;
    }

    .portfolio-title {
        font-size: 1.8rem;
    }

    .other-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .related-projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .portfolio-action-buttons {
        flex-direction: column;
    }

    .credit-row td {
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    .portfolio-detail-section {
        padding: 40px 0;
    }

    .portfolio-details {
        padding: 1.5rem;
    }

    .portfolio-title {
        font-size: 1.5rem;
    }

    .project-type {
        font-size: 0.75rem;
    }

    .other-images-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .related-projects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .related-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .thumbnail-item {
        width: 60px;
        height: 60px;
    }

    /* Stack credits table on mobile */
    .credits-table,
    .credit-row,
    .credit-row td {
        display: block;
        width: 100%;
    }

    .credit-row {
        border-bottom: 1px solid #e9ecef;
        padding: 0.5rem 0;
    }

    .credit-row:last-child {
        border-bottom: none;
    }

    .credit-row td {
        padding: 0.5rem 1rem;
        text-align: center;
    }

    .credit-name {
        font-weight: 700;
        margin-top: 0.5rem;
    }

    .credit-role {
        color: var(--accent-orange);
    }

    .credit-instagram {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .portfolio-title {
        font-size: 1.3rem;
    }

    .portfolio-detail-section {
        padding: 30px 0;
    }

    .other-images-section,
    .portfolio-video-section,
    .related-projects-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .related-title {
        font-size: 1.5rem;
    }

    .related-project-title {
        font-size: 1.1rem;
    }

    .breadcrumb-link,
    .breadcrumb-current {
        font-size: 0.8rem;
        padding: 0.2rem 0.4rem;
    }

    .featured-badge {
        padding: 5px 12px;
        font-size: 0.7rem;
    }
}

/* Caption styles for gallery (not in landing.css, so add separately) */
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    font-family: "Roboto Mono", monospace;
    font-size: 0.8rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.studio-gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

@media (max-width: 576px) {
    .gallery-caption {
        font-size: 0.7rem;
        padding: 6px 10px;
    }
}
