﻿/* ========================================
   Albatta API Docs - Authentication Page
   ======================================== */

/* Hero Section */
.authenticate-hero {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

    .authenticate-hero .hero-icon {
        font-size: 8rem;
        opacity: 0.3;
        animation: pulseShield 4s ease-in-out infinite;
    }

@keyframes pulseShield {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.05);
    }
}

/* Access Timeline */
.access-timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #e4e6ef;
    margin: 1.5rem 0;
}

html[dir="rtl"] .access-timeline {
    padding-left: 0;
    padding-right: 2rem;
    border-left: none;
    border-right: 2px solid #e4e6ef;
}

.access-timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

    .access-timeline-item::before {
        content: '';
        position: absolute;
        left: -2.45rem;
        top: 0.25rem;
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--api-primary);
        border: 3px solid white;
        box-shadow: 0 0 0 2px var(--api-primary);
    }

html[dir="rtl"] .access-timeline-item::before {
    left: auto;
    right: -2.45rem;
}

.access-timeline-item:last-child {
    padding-bottom: 0;
}

/* Auth Flow Steps */
.auth-flow-step {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--api-light);
    border-radius: 12px;
    border: 1px solid #e4e6ef;
}

    .auth-flow-step .step-header {
        display: flex;
        align-items: center;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e4e6ef;
    }

        .auth-flow-step .step-header .step-number {
            margin-right: 1rem;
        }

html[dir="rtl"] .auth-flow-step .step-header .step-number {
    margin-right: 0;
    margin-left: 1rem;
}

/* Postman Setup Grid */
.postman-setup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.postman-setup-item {
    background: white;
    border: 1px solid #e4e6ef;
    border-radius: 12px;
    padding: 1.5rem;
}

    .postman-setup-item .step-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        background: var(--api-primary);
        color: white;
        border-radius: 50%;
        font-size: 0.85rem;
        font-weight: 600;
        margin-right: 0.5rem;
    }

html[dir="rtl"] .postman-setup-item .step-badge {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Code Examples Tabs */
.code-examples .nav-tabs {
    border-bottom: 2px solid #e4e6ef;
    margin-bottom: 1.5rem;
}

.code-examples .nav-link {
    font-weight: 500;
    color: #7e8299;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px 8px 0 0;
}

    .code-examples .nav-link.active {
        color: var(--api-primary);
        background: white;
        border-bottom: 2px solid var(--api-primary);
        margin-bottom: -2px;
    }

.code-examples .tab-content {
    background: white;
    border-radius: 0 0 12px 12px;
    border: 1px solid #e4e6ef;
    border-top: none;
    padding: 1.5rem;
}

/* Security Notes */
.security-notes {
    background: linear-gradient(135deg, rgba(255, 168, 0, 0.1) 0%, rgba(246, 78, 96, 0.1) 100%);
    border: 1px solid rgba(255, 168, 0, 0.3);
}

    .security-notes ul {
        padding-left: 1.25rem;
        margin: 0;
    }

html[dir="rtl"] .security-notes ul {
    padding-left: 0;
    padding-right: 1.25rem;
}

.security-notes li {
    margin-bottom: 0.5rem;
}

/* Support Box */
.support-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 60px;
}

    .support-box a {
        color: var(--api-primary);
        text-decoration: none;
        font-weight: 500;
    }

        .support-box a:hover {
            text-decoration: underline;
        }

/* Responsive */
@media (max-width: 767px) {
    .auth-flow-step .step-header {
        flex-direction: column;
        align-items: flex-start;
    }

        .auth-flow-step .step-header .step-number {
            margin-right: 0;
            margin-bottom: 0.75rem;
        }

    .postman-setup-grid {
        grid-template-columns: 1fr;
    }

    .code-examples .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* API Access Box in Contact Page */
.api-access-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 2px solid rgba(102, 126, 234, 0.3);
}

    .api-access-box:hover {
        border-color: var(--api-primary);
        box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
    }

    .api-access-box .btn {
        transition: all 0.3s ease;
    }

    .api-access-box:hover .btn {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    }

/* Postman Tutorial Styles - Grid Layout */
.postman-tutorial {
    margin-top: 2rem;
}

.tutorial-step-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e4e6ef;
    height: 100%;
    transition: all 0.3s ease;
}

    .tutorial-step-card:hover {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-3px);
    }

.step-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.step-badge-large {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--api-primary) 0%, var(--api-secondary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* Compact Screenshot Card */
.screenshot-card-compact {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e4e6ef;
    transition: all 0.3s ease;
}

    .screenshot-card-compact:hover {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    }

.screenshot-image-compact {
    width: 100%;
    height: auto;
    display: block;
    max-height: 250px;
    object-fit: cover;
}

.screenshot-caption-compact {
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-top: 1px solid #e4e6ef;
    color: #555;
    font-size: 0.85rem;
}

/* Compact Code Block */
.code-block-compact {
    background: var(--api-dark);
    color: #d4d4d4;
    border-radius: 6px;
    padding: 1rem;
    font-size: 0.8rem;
    overflow-x: auto;
}

    .code-block-compact pre {
        margin: 0;
        white-space: pre-wrap;
    }

/* Responsive adjustments */
@media (max-width: 991px) {
    .tutorial-step-card {
        margin-bottom: 1.5rem;
    }

    .screenshot-image-compact {
        max-height: 200px;
    }
}

@media (max-width: 575px) {
    .step-header {
        flex-direction: column;
        text-align: center;
    }

    .step-badge-large {
        margin: 0 auto 0.5rem;
    }

    .screenshot-image-compact {
        max-height: 180px;
    }
}