/* ==================== DOCUMENTATION PAGE STYLES ==================== */

/* Note: Navigation and footer styles are handled by components/nav.css and components/footer.css */

/* Body background override for light theme */
body {
    background: linear-gradient(180deg, #ffffff 0%, #f8f7fc 50%, #f3f0ff 100%);
    color: var(--dark-text);
}

.serif-italic {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
}

.gradient-text {
    background: linear-gradient(135deg, #7c5cfc 0%, #a855f7 33%, #ec4899 66%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==================== HERO SECTION ==================== */
.hero-wrapper {
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.background-gradient-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.background-gradient {
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background:
        radial-gradient(ellipse 100% 100% at 50% 50%,
            rgba(200, 170, 255, 0.4) 0%,
            rgba(180, 140, 255, 0.25) 25%,
            rgba(255, 200, 220, 0.18) 45%,
            rgba(255, 200, 150, 0.12) 60%,
            transparent 75%);
    filter: blur(60px);
    animation: gradientFloat 8s ease-in-out infinite;
}

.background-gradient-secondary {
    position: absolute;
    top: 100px;
    right: 10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(ellipse 100% 100% at 50% 50%,
        rgba(139, 92, 246, 0.3) 0%,
        rgba(168, 85, 247, 0.15) 40%,
        transparent 65%);
    filter: blur(55px);
    animation: gradientFloatRight 10s ease-in-out infinite;
}

.background-gradient-tertiary {
    position: absolute;
    top: 150px;
    left: 5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(ellipse 100% 100% at 50% 50%,
        rgba(73, 204, 249, 0.25) 0%,
        rgba(73, 204, 249, 0.1) 40%,
        transparent 65%);
    filter: blur(55px);
    animation: gradientFloatRight 12s ease-in-out infinite reverse;
}

@keyframes gradientFloat {
    0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
    50% { transform: translateX(-50%) translateY(-20px) scale(1.02); }
}

@keyframes gradientFloatRight {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero {
    padding: 160px 48px 80px;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(129, 103, 234, 0.15);
    border-radius: 100px;
    margin-bottom: 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    box-shadow: 0 4px 20px rgba(129, 103, 234, 0.08);
    animation: fadeInUp 0.8s ease forwards;
}

.badge-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--violet) 0%, var(--violet-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-icon svg {
    width: 14px;
    height: 14px;
    stroke: white;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    color: var(--navy);
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero p {
    font-size: 20px;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

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

/* ==================== SEARCH SECTION ==================== */
.search-container {
    position: relative;
    max-width: 700px;
    margin: 0 auto 60px;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.search-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 22px 28px 22px 60px;
    font-size: 17px;
    font-family: inherit;
    border: 2px solid rgba(129, 103, 234, 0.15);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow:
        0 8px 32px rgba(129, 103, 234, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.4s ease;
    outline: none;
    color: var(--dark-text);
}

.search-input::placeholder {
    color: var(--light-muted);
}

.search-input:focus {
    border-color: var(--violet);
    box-shadow:
        0 8px 40px rgba(129, 103, 234, 0.2),
        0 0 0 4px rgba(129, 103, 234, 0.08);
}

.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    stroke: var(--violet);
    opacity: 0.7;
}

.search-shortcut {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(129, 103, 234, 0.08);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--violet);
}

.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.suggestion-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(129, 103, 234, 0.1);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    background: white;
    border-color: var(--violet);
    color: var(--violet);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(129, 103, 234, 0.15);
}

/* ==================== FLOATING ELEMENTS ==================== */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.06),
        0 8px 24px rgba(129, 103, 234, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 1);
    opacity: 0;
    animation: floatIn 0.8s ease forwards;
}

.floating-card-1 {
    top: 180px;
    left: 5%;
    animation: floatIn 0.8s ease 0.5s forwards, float1 6s ease-in-out 1.3s infinite;
}

.floating-card-2 {
    top: 220px;
    right: 8%;
    animation: floatIn 0.8s ease 0.7s forwards, float2 5s ease-in-out 1.5s infinite;
}

.floating-card-3 {
    bottom: 120px;
    left: 10%;
    animation: floatIn 0.8s ease 0.9s forwards, float3 7s ease-in-out 1.7s infinite;
}

.floating-card-4 {
    bottom: 100px;
    right: 5%;
    animation: floatIn 0.8s ease 1.1s forwards, float4 5.5s ease-in-out 1.9s infinite;
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(3deg); }
    50% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(2deg); }
    50% { transform: translateY(-12px) rotate(2deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-18px) rotate(-3deg); }
}

.float-card-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.float-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.float-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

.float-icon.green { background: linear-gradient(135deg, #10b981 0%, #34d399 100%); }
.float-icon.violet { background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%); }
.float-icon.cyan { background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%); }
.float-icon.pink { background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%); }

.float-text h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2px;
}

.float-text p {
    font-size: 11px;
    color: var(--muted);
}

/* ==================== CATEGORIES SECTION ==================== */
.categories-section {
    padding: 60px 48px 100px;
    max-width: 1300px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 18px;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto;
}

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

.category-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(129, 103, 234, 0.1);
    border-radius: 24px;
    padding: 36px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--violet) 0%, var(--accent-purple) 50%, var(--accent-pink) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 48px rgba(129, 103, 234, 0.12),
        0 12px 24px rgba(0, 0, 0, 0.04);
    border-color: rgba(129, 103, 234, 0.2);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.4s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1);
}

.category-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
    stroke-width: 1.5;
}

.category-icon.getting-started {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.category-icon.platform-guide {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.category-icon.expert-setup {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.category-icon.integrations {
    background: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3);
}

.category-icon.booking-system {
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}

.category-icon.api {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.category-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}

.category-card p {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.category-articles {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(129, 103, 234, 0.04);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-link:hover {
    background: rgba(129, 103, 234, 0.1);
    color: var(--violet);
    padding-left: 18px;
}

.article-link svg {
    width: 16px;
    height: 16px;
    stroke: var(--violet);
    opacity: 0.6;
}

.article-count {
    font-size: 13px;
    color: var(--light-muted);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(129, 103, 234, 0.08);
}

/* ==================== POPULAR ARTICLES ==================== */
.popular-section {
    padding: 80px 48px;
    background: linear-gradient(180deg, rgba(129, 103, 234, 0.03) 0%, rgba(255, 255, 255, 0) 100%);
}

.popular-container {
    max-width: 1200px;
    margin: 0 auto;
}

.popular-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.popular-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -1px;
}

.popular-header a {
    color: var(--violet);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.popular-header a:hover {
    gap: 10px;
}

.popular-header a svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.popular-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: white;
    border: 1px solid rgba(129, 103, 234, 0.08);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.popular-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(129, 103, 234, 0.1);
    border-color: rgba(129, 103, 234, 0.15);
}

.popular-number {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, rgba(129, 103, 234, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.popular-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.4;
}

.popular-content p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.popular-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--light-muted);
}

.popular-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.popular-meta svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

/* ==================== VIDEO TUTORIALS ==================== */
.tutorials-section {
    padding: 80px 48px 120px;
    max-width: 1200px;
    margin: 0 auto;
}

.tutorials-header {
    text-align: center;
    margin-bottom: 60px;
}

.tutorials-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.tutorials-header p {
    font-size: 18px;
    color: var(--muted);
}

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

.tutorial-card {
    background: white;
    border: 1px solid rgba(129, 103, 234, 0.08);
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}

.tutorial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(129, 103, 234, 0.12);
}

.tutorial-thumbnail {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, var(--navy) 0%, #1a1a4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tutorial-thumbnail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(129, 103, 234, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(236, 72, 153, 0.3) 0%, transparent 50%);
}

.play-button {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.tutorial-card:hover .play-button {
    transform: scale(1.1);
    background: white;
}

.play-button svg {
    width: 24px;
    height: 24px;
    fill: var(--violet);
    margin-left: 4px;
}

.tutorial-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.tutorial-content {
    padding: 24px;
}

.tutorial-tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(129, 103, 234, 0.08);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--violet);
    margin-bottom: 12px;
}

.tutorial-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.4;
}

.tutorial-content p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

/* ==================== SUPPORT CTA ==================== */
.support-cta {
    padding: 100px 48px;
    background: linear-gradient(135deg, var(--navy) 0%, #1a1a4a 100%);
    position: relative;
    overflow: hidden;
}

.support-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(129, 103, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(73, 204, 249, 0.2) 0%, transparent 50%);
}

.support-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.support-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -1px;
    line-height: 1.2;
}

.support-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    line-height: 1.7;
}

.support-buttons {
    display: flex;
    gap: 16px;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: white;
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.btn-white svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: transparent;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 100px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.support-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.support-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.3s ease;
}

.support-card:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
}

.support-card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.support-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.support-card h4 {
    font-size: 17px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.support-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero { padding: 140px 24px 60px; }
    .hero h1 { font-size: 42px; }
    .categories-section { padding: 60px 24px; }
    .tutorials-grid { grid-template-columns: repeat(2, 1fr); }
    .support-container { grid-template-columns: 1fr; }
    .support-cards { grid-template-columns: repeat(2, 1fr); }
    .floating-elements { display: none; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 32px; letter-spacing: -1px; }
    .hero p { font-size: 17px; }
    .search-input { padding: 18px 20px 18px 50px; font-size: 16px; }
    .search-shortcut { display: none; }
    .categories-grid { grid-template-columns: 1fr; }
    .popular-grid { grid-template-columns: 1fr; }
    .tutorials-grid { grid-template-columns: 1fr; }
    .support-cta { padding: 60px 24px; }
    .support-content h2 { font-size: 32px; }
    .support-buttons { flex-direction: column; }
    .support-cards { grid-template-columns: 1fr; }
}