/* Inversium Documentation Specific Styling */

.docs-main {
    flex-grow: 1;
    padding-bottom: 80px;
    background-color: var(--bg-alt);
}

.docs-hero {
    padding: 60px 0 40px 0;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--card-border);
    text-align: center;
}

#txt-hero-title {
    font-size: 40px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -1px;
    margin-bottom: 12px;
    color: var(--text-color);
}

#txt-hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

.docs-grid-section {
    padding: 40px 0;
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

@media (max-width: 992px) {
    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .docs-grid {
        grid-template-columns: 1fr;
    }
}

/* Docs Card Layout & Animations */
.docs-card {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.docs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
}

.docs-card.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color), 0 8px 24px rgba(26, 115, 232, 0.06);
}

.docs-card.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-color);
}

.docs-card-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.docs-card:hover .docs-card-icon-wrapper,
.docs-card.active .docs-card-icon-wrapper {
    background: var(--accent-glow);
    border-color: var(--accent-color);
}

.docs-card-icon-wrapper i {
    font-size: 16px;
    color: var(--text-muted);
    transition: var(--transition);
}

.docs-card:hover .docs-card-icon-wrapper i,
.docs-card.active .docs-card-icon-wrapper i {
    color: var(--accent-color);
}

.docs-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin-top: 4px;
}

.docs-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
}

.docs-card-action {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    transition: var(--transition);
}

.docs-card:hover .docs-card-action {
    color: var(--accent-hover);
}

.docs-card-action i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.docs-card:hover .docs-card-action i {
    transform: translateX(4px);
}

/* Details Pane Styling */
.docs-details-container {
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    padding: 40px;
    min-height: 300px;
    transition: var(--transition);
}

@media (max-width: 600px) {
    .docs-details-container {
        padding: 24px;
    }
}

.details-content {
    animation: fadeIn 0.3s ease;
}

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

.details-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 16px;
}

.details-header h2 {
    font-size: 26px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 6px;
}

.details-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.details-body {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-color);
}

.details-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 28px 0 12px 0;
    color: var(--text-color);
}

.details-body h3:first-of-type {
    margin-top: 0;
}

.details-body p {
    margin-bottom: 16px;
}

.details-body ul, .details-body ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.details-body li {
    margin-bottom: 6px;
}

/* Code Highlights */
pre {
    background: var(--bg-alt);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 16px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.5;
    margin: 16px 0;
}

code {
    font-family: var(--font-mono);
    background: var(--bg-alt);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    border: 1px solid rgba(0,0,0,0.05);
}

pre code {
    background: transparent;
    padding: 0;
    border: none;
    font-size: 12px;
}

/* Method Badges */
.method-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    margin-right: 8px;
}

.method-post {
    background: rgba(15, 157, 88, 0.15);
    color: var(--success-color);
}

.method-get {
    background: rgba(26, 115, 232, 0.15);
    color: var(--accent-color);
}

/* Table styling for parameters description */
.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 13px;
}

.docs-table th, .docs-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--card-border);
    text-align: left;
}

.docs-table th {
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-alt);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.docs-table td code {
    font-size: 11px;
}

/* Alert Boxes */
.docs-alert {
    background: var(--success-bg);
    border: 1px solid rgba(15, 157, 88, 0.15);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    color: var(--text-color);
    font-size: 13px;
    margin: 20px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.docs-alert-icon {
    font-size: 16px;
    color: var(--success-color);
    margin-top: 2px;
}

.docs-alert-warning {
    background: #fffbeb;
    border-color: #fef3c7;
}

.docs-alert-warning .docs-alert-icon {
    color: #d97706;
}
