/* GPTAssistant Documentation Styles */
/* Google Material Design Theme */

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #bdc1c6;
}

/* Navigation Links */
.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    color: #5f6368;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.nav-link:hover {
    background-color: #f1f3f4;
    color: #202124;
}

.nav-link.active {
    background-color: #e8f0fe;
    color: #1a73e8;
    font-weight: 500;
}

.nav-link.active .material-icons,
.nav-link.active .material-icons-outlined {
    color: #1a73e8;
}

/* Sub Navigation */
.nav-link-sub {
    display: block;
    padding: 0.5rem 0.75rem 0.5rem 2.5rem;
    border-radius: 0.5rem;
    color: #5f6368;
    text-decoration: none;
    font-size: 0.8125rem;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link-sub:hover {
    background-color: #f1f3f4;
    color: #202124;
}

.nav-link-sub.active {
    background-color: #e8f0fe;
    color: #1a73e8;
    font-weight: 500;
}

/* Section Title */
.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: "Google Sans", Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: #202124;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dadce0;
}

/* Feature Cards */
.feature-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 1rem;
    padding: 1.25rem;
    transition: all 0.2s ease;
}

.feature-card:hover {
    border-color: #1a73e8;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

/* Step Number */
.step-number {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    background: #1a73e8;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Code Block */
.code-block {
    background: #202124;
    border-radius: 0.75rem;
    overflow: hidden;
}

.code-header {
    background: #303134;
    color: #9aa0a6;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.code-block .p-4 {
    color: #e8eaed;
}

/* Info Callout */
.info-callout {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.info-callout-blue {
    background: #e8f0fe;
    color: #1967d2;
}

.info-callout-green {
    background: #e6f4ea;
    color: #137333;
}

.info-callout-yellow {
    background: #fef7e0;
    color: #ea8600;
}

.info-callout-red {
    background: #fce8e6;
    color: #c5221f;
}

/* Block Card */
.block-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.2s ease;
}

.block-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.block-card-header {
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dadce0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.block-card-title {
    font-family: "Google Sans", Roboto, sans-serif;
    font-weight: 500;
    font-size: 1rem;
    color: #202124;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.block-card-badge {
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-method {
    background: #e8f0fe;
    color: #1a73e8;
}

.badge-event {
    background: #fef7e0;
    color: #ea8600;
}

.block-card-body {
    padding: 1.25rem;
}

.block-card-description {
    color: #5f6368;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.block-card-image {
    margin-top: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #dadce0;
    background: #f8f9fa;
}

.block-card-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Parameters Table */
.params-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.params-table th {
    text-align: left;
    padding: 0.625rem 0.75rem;
    background: #f8f9fa;
    color: #5f6368;
    font-weight: 500;
    border-bottom: 1px solid #dadce0;
}

.params-table td {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid #f1f3f4;
    color: #202124;
}

.params-table tr:last-child td {
    border-bottom: none;
}

.param-name {
    font-family: "Roboto Mono", monospace;
    font-size: 0.8125rem;
    color: #1a73e8;
    background: #e8f0fe;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

.param-type {
    font-size: 0.75rem;
    color: #5f6368;
    background: #f1f3f4;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

/* Code Inline */
code {
    font-family: "Roboto Mono", monospace;
    font-size: 0.8125rem;
    background: #f1f3f4;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    color: #d93025;
}

/* Collapsible */
.collapsible-trigger {
    cursor: pointer;
    user-select: none;
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.collapsible-content.open {
    max-height: 2000px;
}

/* Search Highlight */
.search-highlight {
    background: #fbbc04;
    color: #202124;
    padding: 0 0.125rem;
    border-radius: 0.125rem;
}

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

.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    #sidebar.open {
        transform: translateX(0);
    }
}

/* Print Styles */
@media print {
    header, #sidebar, #back-to-top {
        display: none !important;
    }
    
    main {
        margin-left: 0 !important;
    }
    
    .block-card {
        break-inside: avoid;
    }
}
