/*
 * Documentation Components
 * Styles for manual, guide, and API setup pages
 */

/* ========================================
   Documentation Headers
   ======================================== */

.documentation-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 0;
    margin-bottom: 1rem;
}

.documentation-header--manual {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.documentation-header--api {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    padding: 3rem 0;
    margin-bottom: 2rem;
}

/* ========================================
   Documentation Cards
   ======================================== */

.documentation-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
    margin-bottom: 2rem;
}

.documentation-card:hover {
    transform: translateY(-2px);
}

/* ========================================
   Step Components
   ======================================== */

.step-header {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    padding: 1rem;
    border-radius: 8px 8px 0 0;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
}

.step-number {
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.step-number--small {
    width: 24px;
    height: 24px;
    font-size: 12px;
    margin-right: 0.5rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
}

.step-item--compact {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
}

/* ========================================
   Feature Icons
   ======================================== */

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.feature-icon--videos {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

.feature-icon--collection {
    background: linear-gradient(45deg, #4834d4, #686de0);
}

.feature-icon--filter {
    background: linear-gradient(45deg, #0abde3, #006ba6);
}

.feature-icon--analytics {
    background: linear-gradient(45deg, #feca57, #ff9ff3);
}

.feature-icon--settings {
    background: linear-gradient(45deg, #5f27cd, #341f97);
}

.feature-icon--channels {
    background: linear-gradient(45deg, #00d2d3, #54a0ff);
}

.feature-icon--api {
    background: linear-gradient(45deg, #ff6348, #ff9ff3);
}

/* ========================================
   Alert/Info Boxes
   ======================================== */

.tip-box {
    background: linear-gradient(45deg, #e7f3ff, #cce7ff);
    border-left: 4px solid var(--color-primary);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.warning-box {
    background: linear-gradient(45deg, #fff3cd, #ffeaa7);
    border-left: 4px solid var(--color-warning);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.danger-box {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    border-left: 4px solid var(--color-danger);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
}

.alert-api-status {
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: none;
}

/* ========================================
   Code Display
   ======================================== */

.code-block {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    margin: 1rem 0;
    border-left: 4px solid #4299e1;
    position: relative;
}

.code-inline {
    background: #e2e8f0;
    color: #2d3748;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.code-container {
    position: relative;
}

.copy-button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #4299e1;
    color: white;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.copy-button:hover {
    background: #3182ce;
}

/* ========================================
   Navigation Components
   ======================================== */

.nav-pills .nav-link {
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    margin: 0 0.25rem;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background: linear-gradient(45deg, var(--color-primary), #0056b3);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.nav-pills .nav-link:hover:not(.active) {
    background: var(--color-gray-100);
    color: var(--color-primary);
}

.nav-steps {
    position: sticky;
    top: 80px;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-steps .nav-link {
    color: var(--color-text-muted);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.nav-steps .nav-link:hover,
.nav-steps .nav-link.active {
    background: var(--color-primary);
    color: white;
    text-decoration: none;
}

/* ========================================
   Progress Indicators
   ======================================== */

.progress-indicator {
    width: 100%;
    height: 8px;
    background: var(--color-gray-200);
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(45deg, var(--color-success), #20c997);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* ========================================
   Screenshots & Placeholders
   ======================================== */

.screenshot-container {
    width: 100%;
    max-width: 600px;
    margin: 1rem 0;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-gray-100);
}

.screenshot-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, var(--color-gray-200), var(--color-gray-100));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-style: italic;
    border: 2px dashed var(--color-border);
    margin: 1rem 0;
}

.screenshot-placeholder--small {
    height: 200px;
}

/* ========================================
   Notion Guide Banner
   ======================================== */

.notion-guide-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.notion-guide-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='m0 40l40-40v40z'/%3E%3Cpath d='m0 40l40-40v40z' transform='scale(-1,1) translate(-40,0)'/%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.notion-guide-banner .btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.notion-guide-banner .btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* ========================================
   Tables
   ======================================== */

.quota-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.table-header {
    background: linear-gradient(45deg, var(--color-primary), #0056b3);
    color: white;
    padding: 1rem;
    font-weight: bold;
}

/* ========================================
   Troubleshooting
   ======================================== */

.troubleshooting-item {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--color-warning);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ========================================
   API Features
   ======================================== */

.api-feature {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--color-primary);
}
