@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    line-height: 1.7;
    font-weight: 500;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Particles Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
    filter: blur(2px);
    -webkit-filter: blur(2px);
    opacity: 0.4;
}

/* Top Header */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: #0d1117;
    border-bottom: 1px solid #21262d;
    z-index: 103;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-left: 300px;
    padding-right: 0;
}

.header-left {
    display: flex;
    align-items: center;
    padding-left: 35px; /* 20px (nav-link padding ile hizalama) + 15px (ekstra kaydırma) */
    padding-right: 24px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-center {
    position: absolute;
    left: calc(50% + 150px); /* Content alanının ortası: sidebar genişliği (300px) / 2 = 150px */
    transform: translateX(-50%);
    display: flex;
    align-items: center;
}

.header-main-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f0f6fc;
    margin: 0;
    white-space: nowrap;
}

/* Mobile Menu Toggle Button - Hidden on desktop */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 104;
    width: 40px;
    height: 40px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 0;
    transition: background-color 0.2s;
}

.mobile-menu-toggle:hover {
    background-color: #30363d;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #c9d1d9;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Sidebar Overlay - Hidden on desktop */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 101;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Desktop: Sidebar always visible, no transitions */
@media (min-width: 1025px) {
    .sidebar {
        transform: translateX(0) !important;
        transition: none !important;
    }
    
    .sidebar-overlay {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo img {
    height: 30px;
    width: auto;
    display: block;
}

.header-logo svg {
    height: 30px;
    width: 30px;
}

.header-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f0f6fc;
    margin: 0;
    white-space: nowrap;
}

.documentation-container {
    display: flex;
    width: 100%;
    margin-top: 64px;
    margin-left: 300px;
    min-height: calc(100vh - 64px);
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background-color: #161b22;
    border-right: 1px solid #21262d;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 300px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 102;
    transform: translateX(0);
}

.sidebar-nav {
    flex: 1;
    padding: 8px 0;
    padding-top: 64px;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-section-title {
    font-size: 0.6875rem;
    font-weight: 700;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 20px 8px 20px;
    margin-bottom: 0;
    margin-top: 8px;
}

.nav-section:first-child .nav-section-title {
    margin-top: 0;
}

.nav-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav li {
    margin: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: #c9d1d9;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 400;
    transition: all 0.15s ease;
    gap: 12px;
    position: relative;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.nav-icon {
    font-size: 1rem;
    min-width: 20px;
    text-align: center;
    line-height: 1;
    flex-shrink: 0;
}

.nav-text {
    flex: 1;
}

.nav-chevron {
    font-size: 0.625rem;
    transition: transform 0.2s ease;
    color: #8b949e;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-link.has-submenu.active .nav-chevron,
.nav-link.has-submenu.expanded .nav-chevron {
    transform: rotate(180deg);
}

.nav-link:hover {
    color: #f0f6fc;
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #58a6ff;
    background-color: rgba(88, 166, 255, 0.1);
    font-weight: 500;
    border-left-color: #58a6ff;
}

.nav-link.active::before {
    display: none;
}

/* Sub-menu */
.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #161b22;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link.expanded + .nav-submenu {
    max-height: 500px;
}

.nav-sub-link {
    display: block;
    padding: 8px 20px 8px 52px;
    color: #8b949e;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.15s ease;
    position: relative;
    border-left: 3px solid transparent;
}

.nav-sub-link:hover {
    color: #f0f6fc;
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-sub-link.active {
    color: #58a6ff;
    background-color: rgba(88, 166, 255, 0.08);
    border-left-color: #58a6ff;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid #21262d;
    margin-top: auto;
    background-color: #161b22;
    border-radius: 12px 12px 0 0;
}

.user-info {
    margin-bottom: 12px;
    font-size: 0.875rem;
    color: #8b949e;
}

.user-info strong {
    color: #8b949e;
    font-weight: 500;
}

.logout-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: transparent;
    color: #8b949e;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid #21262d;
}

.logout-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #c9d1d9;
    border-color: #30363d;
}

/* Content */
.content {
    flex: 1;
    padding: 48px 32px 48px 0px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
    min-height: calc(100vh - 64px);
}

.content-wrapper {
    max-width: 100%;
}

.doc-section {
    margin-bottom: 64px;
    scroll-margin-top: 20px;
    display: none;
}

.doc-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #21262d;
    font-size: 0.875rem;
    color: #8b949e;
}

.breadcrumb-separator {
    color: #30363d;
    margin: 0 4px;
}

.breadcrumb-link {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.breadcrumb-link:hover {
    color: #79c0ff;
    text-decoration: underline;
}

.breadcrumb-current {
    color: #c9d1d9;
    font-weight: 500;
}

.section-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #21262d;
}

.doc-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-intro {
    font-size: 1.1rem;
    color: #8b949e;
    line-height: 1.7;
    margin-bottom: 0;
}

.section-content {
    max-width: 100%;
}

.doc-section h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-top: 32px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.doc-section p {
    margin-bottom: 16px;
    color: #c9d1d9;
    font-size: 1rem;
    line-height: 1.7;
}

.doc-section ul,
.doc-section ol {
    margin: 16px 0;
    padding-left: 24px;
    color: #c9d1d9;
}

.doc-section li {
    margin: 8px 0;
    line-height: 1.7;
}

.doc-section code {
    background-color: #161b22;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #79c0ff;
    border: 1px solid #30363d;
}

/* Content Cards */
.content-card {
    background-color: #161b22;
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 10px;
    transition: border-color 0.2s ease;
}

.content-card:hover {
    border-color: #30363d;
}

.content-card h2 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #58a6ff;
    font-size: 1.25rem;
    font-weight: 600;
}

.styled-list {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.styled-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    border-bottom: 1px solid #21262d;
}

.styled-list li:last-child {
    border-bottom: none;
}

.styled-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #58a6ff;
    font-weight: bold;
}

.styled-list li strong {
    color: #f0f6fc;
    display: block;
    margin-bottom: 4px;
}

/* Info Grid / Alert Box */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
    margin-bottom: 10px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background-color: #1c2128;
    border-radius: 8px;
    border: 1px solid #21262d;
}

.info-item.info {
    background-color: rgba(56, 139, 253, 0.1);
    border-color: rgba(56, 139, 253, 0.3);
}

.info-item.success {
    background-color: rgba(35, 134, 54, 0.1);
    border-color: rgba(35, 134, 54, 0.3);
}

.info-item.warning {
    background-color: rgba(187, 128, 9, 0.1);
    border-color: rgba(187, 128, 9, 0.3);
}

.info-item.error,
.info-item.danger {
    background-color: rgba(248, 81, 73, 0.1);
    border-color: rgba(248, 81, 73, 0.3);
}

.info-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #58a6ff;
    border: 1px solid #58a6ff;
}

.info-item.info .info-icon {
    background-color: #388bfd;
    border-color: #388bfd;
    color: #ffffff;
}

.info-item.success .info-icon {
    background-color: #238636;
    border-color: #238636;
    color: #ffffff;
}

.info-item.warning .info-icon {
    background-color: #bb8009;
    border-color: #bb8009;
    color: #ffffff;
}

.info-item.error .info-icon,
.info-item.danger .info-icon {
    background-color: #f85149;
    border-color: #f85149;
    color: #ffffff;
}

.info-content {
    flex: 1;
}

.info-content p {
    color: #58a6ff;
    font-size: 0.9375rem;
    margin-bottom: 0;
    line-height: 1.6;
}

.info-item.info .info-content p {
    color: #58a6ff;
}

.info-item.success .info-content p {
    color: #3fb950;
}

.info-item.warning .info-content p {
    color: #d29922;
}

.info-item.error .info-content p,
.info-item.danger .info-content p {
    color: #f85149;
}

/* Images */
.doc-section img,
.content-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    border: 1px solid #21262d;
    display: block;
}

.doc-section img.full-width {
    width: 100%;
}

.doc-section img.center {
    margin-left: auto;
    margin-right: auto;
}

.doc-section img.left {
    margin-left: 0;
    margin-right: auto;
}

.doc-section img.right {
    margin-left: auto;
    margin-right: 0;
}

.doc-section img.float-left {
    float: left;
    margin-right: 20px;
    margin-bottom: 10px;
    max-width: 50%;
}

.doc-section img.float-right {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
    max-width: 50%;
}

.doc-section::after,
.content-card::after {
    content: "";
    display: table;
    clear: both;
}

/* Content Headings */
.content-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-top: 0;
    margin-bottom: 10px;
    padding-bottom: 16px;
    border-bottom: 2px solid #21262d;
}

.content-subheading {
    font-size: 1.15rem;
    font-weight: 600;
    color: #f0f6fc;
    margin-top: 0;
    margin-bottom: 10px;
}

.content-heading[data-font-family],
.content-subheading[data-font-family],
.content-card[data-font-family],
.content-card[data-font-family] h2,
.content-card[data-font-family] p,
.text-content[data-font-family],
.faq-item[data-font-family],
.faq-content[data-font-family] h2,
.faq-content[data-font-family] p {
    font-family: var(--item-font-family);
}

.content-heading[data-title-color] {
    color: var(--item-title-color);
}

.content-subheading[data-title-color] {
    color: var(--item-title-color);
}

.content-card[data-title-color] h2 {
    color: var(--item-title-color);
}

.content-card[data-text-color] p,
.text-content[data-text-color] {
    color: var(--item-text-color);
}

.content-card[data-font-size],
.text-content[data-font-size] {
    font-size: var(--item-font-size);
}

.content-card[data-title-size] h2,
.content-heading[data-title-size] {
    font-size: var(--item-title-size);
}

/* Step List */
.step-list {
    list-style: none;
    padding-left: 0;
    margin: 24px 0;
}

.step-list li {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #21262d;
}

.step-list li:last-child {
    border-bottom: none;
}

.step-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #58a6ff 0%, #79c0ff 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-content strong {
    display: block;
    color: #f0f6fc;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: #8b949e;
    margin-bottom: 0;
}

/* Tip Box */
.tip-box {
    background-color: #1c2128;
    border-left: 4px solid #58a6ff;
    padding: 16px 20px;
    border-radius: 6px;
    margin-top: 0;
    margin-bottom: 10px;
    color: #c9d1d9;
}

.tip-box strong {
    color: #58a6ff;
}

/* FAQ Items */
.faq-item {
    margin-bottom: 10px;
    padding: 24px;
    background-color: #161b22;
    border: 1px solid #21262d;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    transition: border-color 0.2s ease;
}

.faq-item:hover {
    border-color: #30363d;
}

.faq-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.faq-content h2 {
    margin-top: 0;
    font-size: 1.3rem;
    color: #58a6ff;
    margin-bottom: 12px;
}

.faq-content p {
    margin-bottom: 0;
    color: #c9d1d9;
    line-height: 1.7;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 0;
    margin-bottom: 10px;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    background-color: #0d1117;
    border-radius: 12px;
    border: 1px solid #21262d;
}

.contact-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.contact-info h3 {
    color: #f0f6fc;
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-info p {
    color: #58a6ff;
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-note {
    display: block;
    color: #8b949e;
    font-size: 0.85rem;
}

/* Text Content */
.text-content {
    color: #c9d1d9;
    font-size: 1rem;
    line-height: 1.7;
    margin: 10px 0;
}

/* Help Links */
.help-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 0;
    margin-bottom: 10px;
}

.help-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background-color: #21262d;
    color: #c9d1d9;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #30363d;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.help-link:hover {
    background-color: #30363d;
    border-color: #58a6ff;
    color: #58a6ff;
    transform: translateY(-2px);
}

/* Section Navigation */
.section-navigation {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid #21262d;
    text-align: center;
}

.btn-next-section {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background-color: #238636;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-next-section:hover {
    background-color: #2ea043;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 134, 54, 0.3);
}

.btn-next-section:active {
    transform: translateY(0);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Scrollbar styling */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(139, 148, 158, 0.4);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 148, 158, 0.6);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .top-header {
        padding-left: 0;
    }
    
    .header-left {
        padding-left: 20px;
    }
    
    .header-center {
        display: none; /* Hide header title on mobile */
    }
    
    .documentation-container {
        margin-left: 0;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .content {
        padding: 48px 32px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 32px 24px;
    }
}

