/* Page-specific styles for inner pages */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #A855F7 100%);
    padding: 7rem 0 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 193, 7, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
}

.breadcrumb-separator {
    opacity: 0.5;
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.page-description {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 700px;
}

/* Content Layout */
.page-content {
    padding: 3rem 0;
    min-height: 60vh;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
}

.content-main {
    min-width: 0;
}

.content-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
}

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

/* Requirement Cards */
.requirement-card {
    background: var(--surface-alt);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

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

.requirement-header h3 {
    margin: 0;
    color: var(--text);
}

.requirement-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.requirement-badge.required {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.requirement-badge.optional {
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
}

.requirement-actions {
    margin: 1rem 0;
}

.link-external {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-weight: 500;
}

.link-icon {
    width: 1rem;
    height: 1rem;
}

.check-command,
.install-command {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.command-label {
    font-size: 0.875rem;
    color: var(--text-light);
    min-width: 120px;
}

/* Sidebar */
.content-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.checklist li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.numbered-list {
    counter-reset: item;
    list-style: none;
    padding: 0;
}

.numbered-list li {
    counter-increment: item;
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.numbered-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Code Blocks */
.code-block {
    background: #1E293B;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 1.5rem 0;
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
}

.code-header {
    background: #0F172A;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-title {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Navigation Footer */
.nav-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.nav-prev,
.nav-next {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.nav-prev:hover,
.nav-next:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Step Cards for Installation */
.step-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    position: relative;
}

.step-number {
    position: absolute;
    top: -1rem;
    left: 2rem;
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.step-title {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

/* Info Cards */
.info-card {
    background: rgba(124, 58, 237, 0.05);
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
}

.info-card.warning {
    background: rgba(245, 158, 11, 0.05);
    border-left-color: var(--warning);
}

.info-card.success {
    background: rgba(16, 185, 129, 0.05);
    border-left-color: var(--accent);
}

.info-card.danger {
    background: rgba(239, 68, 68, 0.05);
    border-left-color: var(--danger);
}

/* Tabs */
.tabs-container {
    margin: 2rem 0;
}

.tab-buttons {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.tab-button:hover {
    color: var(--primary);
}

.tab-button.active {
    color: var(--primary);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 6rem 0 2rem;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .nav-footer {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-prev,
    .nav-next {
        width: 100%;
        justify-content: center;
    }
}