/* Component Detail Page Styles */

.detail-hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-bottom: 1px solid var(--border-color);
}

.detail-header {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    transition: all 0.3s;
    padding: 0.75rem 1.5rem;
    background: white;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.back-link:hover {
    color: var(--primary-color);
    transform: translateX(-5px);
}

.detail-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-description {
    font-size: 1.25rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.detail-tags {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.tag {
    padding: 0.75rem 1.5rem;
    background: white;
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: var(--shadow);
}

.detail-content {
    padding: 4rem 0;
}

.preview-section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: center;
}

.preview-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    box-shadow: var(--shadow-lg);
}

.preview-container.dark {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.code-section {
    margin-bottom: 3rem;
}

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

.code-label {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.copy-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--orange));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #4ecdc4, #44a3a0);
}

.code-block {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    overflow-x: auto;
    box-shadow: var(--shadow);
}

.code-block pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.code-block code {
    font-family: inherit;
}

/* Responsive */
@media (max-width: 768px) {
    .detail-hero {
        padding: 4rem 0 3rem;
    }
    
    .detail-title {
        font-size: 2.5rem;
    }
    
    .detail-description {
        font-size: 1.125rem;
    }
    
    .preview-container {
        padding: 3rem 1.5rem;
        min-height: 280px;
    }
    
    .code-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .code-block {
        padding: 1.5rem;
    }
}
