/* =============================================
   DETAIL PAGES - LUXURY MINIMALIST STYLING
   ============================================= */

/* Detail Page Header */
.detail-header {
    padding: calc(var(--space-3xl) + 80px) 0 var(--space-2xl);
    background: linear-gradient(135deg, var(--pure-white) 0%, var(--off-white) 100%);
    border-bottom: 1px solid var(--light-gray);
}

.breadcrumb {
    font-size: var(--font-small);
    color: var(--medium-gray);
    margin-bottom: var(--space-l);
}

.breadcrumb a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.breadcrumb a:hover {
    color: var(--accent-gold-dark);
    text-decoration: underline;
}

.breadcrumb span {
    color: var(--rich-black);
}

.detail-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.detail-label {
    font-size: var(--font-small);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    margin-bottom: var(--space-m);
}

.detail-title {
    font-size: var(--font-h1);
    font-weight: 200;
    margin-bottom: var(--space-l);
    color: var(--rich-black);
}

.detail-subtitle {
    font-size: var(--font-body);
    color: var(--medium-gray);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Detail Sections */
.detail-section {
    padding: var(--space-3xl) 0;
}

.detail-section:nth-child(odd) {
    background: var(--pure-white);
}

.detail-section:nth-child(even) {
    background: var(--off-white);
}

/* Video Section */
.video-section {
    margin: 4rem 0;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-thumbnail-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.video-thumbnail-link:hover {
    transform: scale(1.02);
}

.video-thumbnail-link:hover .play-button-overlay {
    background: var(--accent-gold);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-thumbnail-link:hover img {
    opacity: 0.9;
}

.video-placeholder {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Timeline Card Styles */
.timeline-card {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-card .section {
    margin-bottom: 3rem;
}

.timeline-card .section h3,
.timeline-card .section h4 {
    color: var(--rich-black);
    margin-bottom: var(--space-m);
    font-weight: 300;
}

.timeline-card .section h3 {
    font-size: var(--font-h3);
}

.timeline-card .section h4 {
    font-size: var(--font-h4);
}

.timeline-card .checklist {
    list-style: none;
    padding: 0;
    line-height: 2;
}

.timeline-card .checklist li {
    padding: var(--space-xs) 0;
    color: var(--medium-gray);
    padding-left: var(--space-l);
    position: relative;
}

.highlight {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border-left: 4px solid var(--accent-gold);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.important {
    background: rgba(255, 200, 87, 0.1);
    border: 2px solid var(--accent-gold);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.company-details {
    background: rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.action-button {
    background: var(--accent-gold);
    color: var(--rich-black);
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.action-button:hover {
    background: var(--accent-gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.contact-info {
    background: rgba(212, 175, 55, 0.08);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.contact-info a,
a[href^="mailto:"] {
    color: var(--pure-white) !important;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-info a:hover {
    text-decoration: underline;
}

.progress-tracker {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--light-gray);
}

.progress-list {
    list-style: none;
    padding: 0;
}

.progress-list li {
    padding: 0.5rem 0;
    font-weight: 300;
    color: var(--accent-gold);
    font-size: var(--font-body);
    letter-spacing: 0.02em;
}

.progress-list li.complete {
    text-decoration: line-through;
    text-decoration-color: var(--rich-black);
    opacity: 0.7;
}

.progress-list li.active {
    font-weight: 400;
    opacity: 1;
}

.progress-list li.active::before {
    content: '→';
    color: var(--rich-black);
    margin-right: 0.5rem;
}

.progress-list li.pending {
    opacity: 1;
}

/* Documentation Cards */
.documentation-card {
    background: var(--pure-white);
    border: 1px solid var(--light-gray);
    border-radius: 4px;
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    transition: var(--transition-smooth);
}

.documentation-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-gold);
}

.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-l);
    padding-bottom: var(--space-m);
    border-bottom: 2px solid var(--accent-gold);
}

.doc-header h3 {
    margin: 0;
    font-size: var(--font-h3);
    font-weight: 300;
    color: var(--rich-black);
}

.doc-role {
    font-size: var(--font-small);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    background: rgba(212, 165, 116, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2px;
}

.doc-checklist {
    margin-top: var(--space-l);
}

.doc-item {
    margin-bottom: var(--space-l);
}

.doc-item strong {
    display: block;
    color: var(--rich-black);
    margin-bottom: var(--space-s);
    font-weight: 400;
    font-size: var(--font-h4);
}

.doc-item ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.doc-item li {
    padding: var(--space-xs) 0;
    color: var(--medium-gray);
    line-height: 1.8;
    padding-left: var(--space-m);
    position: relative;
}

.doc-item li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8em;
    width: 6px;
    height: 6px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.doc-note {
    margin-top: var(--space-xl);
    padding: var(--space-l);
    background: rgba(212, 165, 116, 0.05);
    border-left: 3px solid var(--accent-gold);
    border-radius: 2px;
}

.doc-note strong {
    color: var(--accent-gold);
    font-weight: 400;
}

.doc-note p {
    margin: 0;
    color: var(--medium-gray);
    line-height: 1.8;
}

/* Responsive Tables for Detail Pages */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
    border: 1px solid var(--light-gray);
    border-radius: 8px;
}

.table-responsive table {
    min-width: 600px;
    width: 100%;
    margin: 0;
}

@media (max-width: 768px) {
    .comparison-table {
        font-size: 0.9rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }

    .table-responsive::after {
        content: '← Scroll for more →';
        display: block;
        text-align: center;
        color: var(--medium-gray);
        font-size: 0.8rem;
        padding: 0.5rem;
        background: var(--off-white);
    }
}

/* Focus styles for square/rectangular elements */
.action-button:focus,
.btn:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}

/* Remove outline from regular text links */
a:focus {
    outline: none;
}

/* YouTube Facade Styles (for lazy loading) */
.youtube-facade {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    cursor: pointer;
    border-radius: 8px;
    background: #000;
}

.youtube-facade-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-facade-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.youtube-facade:hover .youtube-facade-thumbnail img {
    opacity: 0.8;
}

.youtube-facade-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.youtube-facade:hover .youtube-facade-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.youtube-facade iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.youtube-facade.active {
    cursor: default;
}

/* Responsive Design for Detail Pages */
@media (max-width: 768px) {
    .detail-header {
        padding: calc(var(--space-2xl) + 80px) 0 var(--space-xl);
    }

    .detail-title {
        font-size: var(--font-h2);
    }

    .doc-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-m);
    }

    .video-wrapper {
        padding-bottom: 56.25%;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Footer Section Styles for Detail Pages */
.footer-section a {
    color: var(--pure-white) !important;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-section a:hover {
    color: var(--accent-gold) !important;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

@media (max-width: 480px) {
    .detail-section {
        padding: var(--space-2xl) 0;
    }

    .documentation-card {
        padding: var(--space-l);
    }

    .doc-item li {
        font-size: 0.9rem;
    }
}