/* ============================================================================
   MUSE Service Detail Pages - Styles
   ============================================================================ */

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: var(--space-6);
    transition: all 0.2s ease;
}

.back-link:hover {
    color: #fff;
    transform: translateX(-4px);
}

.back-link svg {
    transition: transform 0.2s ease;
}

.back-link:hover svg {
    transform: translateX(-4px);
}

/* Service Badge New */
.service-badge-new {
    display: inline-block;
    background: #ef4444;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: var(--space-4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
}

/* Service Hero Banner Image - Full Background */
.service-hero-banner {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.service-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 15, 15, 0.4) 0%, rgba(15, 15, 15, 0.7) 50%, rgba(15, 15, 15, 0.95) 100%);
    pointer-events: none;
}

/* Ensure hero content sits above the banner */
.service-detail-hero .container {
    position: relative;
    z-index: 1;
}

/* Service Detail Hero - YouTube Channel Banner Style */
.service-detail-hero {
    padding: 140px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
    background: #0f0f0f;
}

.service-detail-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 1;
    pointer-events: none;
}

.service-detail-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, #0f0f0f 0%, transparent 100%);
    pointer-events: none;
}

/* Service-specific hero backgrounds - YouTube Dark with accent colors */
.viral-hero {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #0f0f0f 100%);
}

.viral-hero::before {
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(6, 95, 212, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.content-hero {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #0f0f0f 100%);
}

.content-hero::before {
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 0, 0, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 0, 0, 0.08) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.community-hero {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #0f0f0f 100%);
}

.community-hero::before {
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 0, 0, 0.08) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.ai-hero {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a2e 50%, #0f0f0f 100%);
}

.ai-hero::before {
    background:
        radial-gradient(circle at 80% 20%, rgba(0, 217, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 0, 0, 0.08) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Service Detail Header */
.service-detail-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-8);
    margin-bottom: var(--space-10);
}

.service-icon-large {
    width: 100px;
    height: 100px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-icon-large svg {
    width: 50px;
    height: 50px;
    color: white;
}

.service-detail-title-wrap {
    flex: 1;
}

.service-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-3);
}

.service-detail-title-wrap h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.service-tagline {
    font-size: 1.25rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 600px;
}

/* Service Hero Stats */
.service-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: var(--space-8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: var(--space-8);
}

.hero-stat {
    text-align: center;
    padding: var(--space-2);
}

.hero-stat .stat-value {
    display: block;
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: var(--space-2);
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-stat .stat-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-disclaimer {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    margin-top: var(--space-4);
    font-style: italic;
}

/* Service Detail Content */
.service-detail-content {
    padding: var(--space-20) 0;
    background: #fff;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-16);
}

.content-main {
    max-width: 100%;
}

.content-section {
    margin-bottom: 48px;
}

.content-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f0f0f;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.content-section p {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #606060;
    margin-bottom: 16px;
}

/* Feature Grid - YouTube Style */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.feature-card:hover {
    border-color: #ff0000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.feature-card:hover .feature-icon {
    background: #ff0000;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: #606060;
    transition: color 0.2s ease;
}

.feature-card:hover .feature-icon svg {
    color: #fff;
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f0f0f;
    margin-bottom: 8px;
    line-height: 1.3;
}

.feature-card p {
    font-size: 0.875rem;
    color: #606060;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Content Types Grid - YouTube Style */
.content-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.content-type {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 500;
    font-size: 14px;
    color: #0f0f0f;
    transition: all 0.2s ease;
}

.content-type:hover {
    background: #f2f2f2;
    border-color: #c4c4c4;
}

.type-icon {
    font-size: 1.25rem;
}

/* Tactics Grid - YouTube Style */
.tactics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.tactic-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-left: 3px solid #ff0000;
    transition: all 0.2s ease;
}

.tactic-card:hover {
    background: #fafafa;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tactic-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f0f0f;
    margin-bottom: 6px;
}

.tactic-card p {
    font-size: 0.8125rem;
    color: #606060;
    line-height: 1.5;
    margin: 0;
}

/* Use Cases Grid - YouTube Style */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.use-case {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
}

.use-case:hover {
    border-color: #065fd4;
    background: #f8faff;
}

.use-case h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f0f0f;
    margin-bottom: 6px;
}

.use-case p {
    font-size: 0.8125rem;
    color: #606060;
    margin: 0;
    line-height: 1.5;
}

/* Comparison Table */
.comparison-table {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.comparison-header-row {
    display: grid;
    grid-template-columns: 150px 1fr 1fr;
    background: var(--gray-100);
}

.comparison-row {
    display: grid;
    grid-template-columns: 150px 1fr 1fr;
    border-top: 1px solid var(--gray-200);
}

.comparison-label {
    padding: var(--space-4);
    font-weight: 600;
    color: var(--gray-700);
    background: var(--gray-50);
}

.comparison-col {
    padding: var(--space-4);
    font-size: 0.9375rem;
}

.comparison-col.bad {
    background: #fef2f2;
    color: #991b1b;
}

.comparison-col.good {
    background: #f0fdf4;
    color: #166534;
}

.comparison-header-row .comparison-col {
    font-weight: 700;
    text-align: center;
}

/* Process Timeline - YouTube Style */
.process-timeline {
    position: relative;
    padding-left: 60px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e5e5;
    border-radius: 1px;
}

.process-step {
    position: relative;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.process-step:hover {
    border-color: #ff0000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    position: absolute;
    left: -52px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ff0000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f0f0f;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.875rem;
    color: #606060;
    margin: 0;
    line-height: 1.5;
}

/* Sidebar - YouTube Style */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-cta-card {
    background: #0f0f0f;
    color: white;
    border-radius: 12px;
    padding: 24px;
}

.sidebar-cta-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.sidebar-cta-card p {
    font-size: 0.875rem;
    color: #aaa;
    margin-bottom: 20px;
    line-height: 1.5;
}

.sidebar-cta-card .btn {
    width: 100%;
    margin-bottom: 10px;
    border-radius: 20px;
    padding: 10px 20px;
    font-weight: 600;
}

.sidebar-cta-card .btn:last-child {
    margin-bottom: 0;
}

.sidebar-cta-card .btn-primary {
    background: #ff0000;
    color: white;
    border: none;
}

.sidebar-cta-card .btn-primary:hover {
    background: #cc0000;
}

.sidebar-cta-card .btn.btn-outline {
    border: 1px solid #3d3d3d;
    background: transparent;
    color: white;
    transition: all 0.2s ease;
}

.sidebar-cta-card .btn.btn-outline:hover {
    background: #272727;
    border-color: #3d3d3d;
    color: white;
}

.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e5e5;
}

.sidebar-card h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f0f0f;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    padding-bottom: 10px;
    font-size: 0.875rem;
    color: #606060;
    line-height: 1.4;
}

.check-list li:last-child {
    padding-bottom: 0;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
    text-align: center;
    line-height: 18px;
}

.platform-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.platform-tag {
    background: #f2f2f2;
    border: none;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #606060;
    transition: all 0.2s ease;
}

.platform-tag:hover {
    background: #e5e5e5;
}

.sidebar-testimonial {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    border-left: 3px solid #ff0000;
}

.sidebar-testimonial blockquote {
    font-size: 0.875rem;
    font-style: normal;
    color: #606060;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.testimonial-author strong {
    display: block;
    font-weight: 600;
    color: #0f0f0f;
    font-size: 0.875rem;
}

.testimonial-author span {
    font-size: 0.75rem;
    color: #909090;
}

/* Related Services - YouTube Style */
.related-services {
    padding: 60px 0;
    background: #f9f9f9;
}

.related-services h2 {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 32px;
    color: #0f0f0f;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.related-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
    display: block;
}

.related-card:hover {
    border-color: #ff0000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.related-card.viral-card:hover,
.related-card.content-card:hover,
.related-card.community-card:hover,
.related-card.ai-card:hover {
    border-color: #ff0000;
}

.related-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    background: #f2f2f2;
    transition: all 0.2s ease;
}

.related-card:hover .related-icon {
    background: #ff0000;
}

.viral-card .related-icon,
.content-card .related-icon,
.community-card .related-icon,
.ai-card .related-icon {
    background: #f2f2f2;
}

.related-icon svg {
    width: 22px;
    height: 22px;
    color: #606060;
    transition: color 0.2s ease;
}

.related-card:hover .related-icon svg {
    color: #fff;
}

.related-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f0f0f;
    margin-bottom: 6px;
}

.related-card p {
    font-size: 0.875rem;
    color: #606060;
    margin: 0;
    line-height: 1.5;
}

/* Service Final CTA - YouTube Style */
.service-final-cta {
    padding: 80px 0;
    background: #0f0f0f;
    text-align: center;
}

.service-final-cta .cta-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
}

.service-final-cta .cta-content p {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 32px;
}

.service-final-cta .cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.service-final-cta .btn-primary {
    background: #ff0000;
    color: white;
    border-radius: 20px;
    padding: 12px 24px;
    font-weight: 600;
}

.service-final-cta .btn-primary:hover {
    background: #cc0000;
}

.service-final-cta .btn-outline {
    border: 1px solid #3d3d3d;
    color: white;
    border-radius: 20px;
    padding: 12px 24px;
    background: transparent;
}

.service-final-cta .btn-outline:hover {
    background: #272727;
}

/* Responsive */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        order: -1;
    }

    .sidebar-cta-card {
        position: static;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .content-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tactics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service-detail-hero {
        padding: 120px 0 60px;
    }

    .service-detail-header {
        flex-direction: column;
        gap: var(--space-6);
    }

    .service-icon-large {
        width: 80px;
        height: 80px;
    }

    .service-detail-title-wrap h1 {
        font-size: 2.25rem;
    }

    .service-tagline {
        font-size: 1rem;
    }

    .service-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
        padding: var(--space-6);
    }

    .hero-stat .stat-value {
        font-size: 2rem;
        color: white;
    }

    .hero-stat .stat-label {
        color: rgba(255, 255, 255, 0.9);
    }

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

    .content-types-grid {
        grid-template-columns: 1fr;
    }

    .tactics-grid {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        overflow-x: auto;
    }

    .comparison-header-row,
    .comparison-row {
        min-width: 500px;
    }

    .service-final-cta .cta-content h2 {
        font-size: 1.75rem;
    }

    .service-final-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
