/* Work Detail Page Styles */

.work-detail-page {
    background: #0a0a0a;
    min-height: 100vh;
}

/* Header */
.detail-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, transparent 100%);
    padding: 1rem 2rem;
}

.detail-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.detail-header .logo a {
    text-decoration: none;
    color: inherit;
}

.detail-header .logo h1 {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
}

.detail-header .logo span {
    display: block;
    font-size: 0.7rem;
    color: #888;
    font-weight: 400;
    letter-spacing: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link:hover {
    color: #fff;
}

.cta-btn-header {
    background: linear-gradient(135deg, #c4a35a 0%, #8b7355 100%);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(196, 163, 90, 0.4);
}

/* Video Hero */
.video-hero {
    padding-top: 60px;
    background: #000;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
}

.video-container iframe,
#video-player {
    width: 100%;
    height: 100%;
}

/* Work Info Section */
.work-info {
    padding: 3rem 2rem;
    background: linear-gradient(to bottom, #0a0a0a 0%, #111 100%);
}

.work-info .container {
    max-width: 1000px;
    margin: 0 auto;
}

.work-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-badge {
    background: rgba(196, 163, 90, 0.2);
    color: #c4a35a;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.view-count {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #666;
    font-size: 0.85rem;
}

.work-info h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Details Grid */
.work-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (max-width: 900px) {
    .work-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .work-details-grid {
        grid-template-columns: 1fr;
    }
}

.detail-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: background 0.3s, border-color 0.3s;
}

.detail-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(196, 163, 90, 0.3);
}

.detail-icon {
    color: #c4a35a;
    flex-shrink: 0;
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.detail-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-value {
    font-size: 1rem;
    color: #fff;
    font-weight: 500;
}

/* Description */
.work-description {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.work-description h3 {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.work-description p {
    color: #ccc;
    line-height: 1.8;
    font-size: 1rem;
}

/* Social Actions */
.social-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.action-btn:hover:not(:disabled) {
    border-color: #c4a35a;
    color: #c4a35a;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.like-btn.liked {
    border-color: #e74c3c;
    color: #e74c3c;
}

.like-btn.liked .heart-icon {
    fill: #e74c3c;
}

/* CTA Section */
.cta-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(196, 163, 90, 0.1) 0%, rgba(139, 115, 85, 0.1) 100%);
}

.cta-card {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-content h2 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: #888;
    font-size: 1rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #c4a35a 0%, #8b7355 100%);
    color: #fff;
}

.cta-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 163, 90, 0.4);
}

.cta-btn.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.cta-btn.secondary:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Related Works */
.related-works {
    padding: 4rem 2rem;
    background: #0a0a0a;
}

.related-works .container {
    max-width: 1200px;
    margin: 0 auto;
}

.related-works h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 800px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.related-item {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.related-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.related-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

.related-item .title {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
}

.view-all-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.view-all-btn:hover {
    border-color: #c4a35a;
    color: #c4a35a;
}

/* Comments Section */
.comments-section {
    padding: 4rem 2rem;
    background: #111;
}

.comments-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.comments-section h2 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.login-prompt {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.login-prompt p {
    color: #888;
    margin-bottom: 1rem;
}

.google-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #fff;
    border: none;
    border-radius: 8px;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.google-login-btn:hover {
    transform: translateY(-2px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.user-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-name {
    color: #fff;
    flex: 1;
}

.logout-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #888;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.logout-btn:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.comment-input-area {
    margin-bottom: 2rem;
}

.comment-input-area textarea {
    width: 100%;
    min-height: 100px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 1rem;
}

.comment-input-area textarea:focus {
    outline: none;
    border-color: #c4a35a;
}

.submit-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #c4a35a 0%, #8b7355 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

.comment-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-author {
    color: #fff;
    font-weight: 500;
}

.comment-date {
    color: #666;
    font-size: 0.8rem;
}

.comment-text {
    color: #ccc;
    line-height: 1.6;
}

.loading {
    color: #666;
    text-align: center;
    padding: 2rem;
}

/* Footer */
footer {
    padding: 3rem 2rem;
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.footer-brand p {
    color: #666;
    font-size: 0.9rem;
}

.footer-contact {
    display: flex;
    gap: 2rem;
}

.footer-contact a {
    color: #888;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: #c4a35a;
}

.copyright {
    text-align: center;
    color: #444;
    font-size: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .detail-header {
        padding: 0.8rem 1rem;
    }

    .cta-btn-header {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .work-info {
        padding: 2rem 1rem;
    }

    .work-info h1 {
        font-size: 1.8rem;
    }

    .cta-section {
        padding: 2rem 1rem;
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
    }

    .cta-actions {
        justify-content: center;
    }
}
