/* ========================================
   NAVIGATION & FOOTER
   Document navigation buttons and footer
   ======================================== */

/* Documentation Navigation Buttons */
.doc-navigation {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.nav-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: stretch;
}

.nav-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    flex: 1;
    max-width: 48%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-button:hover {
    background: linear-gradient(135deg, #007a7a 0%, #009e9e 100%);
    border-color: #007a7a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 122, 0.45), 0 0 20px rgba(0, 122, 122, 0.25);
}

.nav-button:hover svg {
    transform: translateX(0);
}

.nav-button-prev:hover svg {
    transform: translateX(-4px);
}

.nav-button-next:hover svg {
    transform: translateX(4px);
}

.nav-button svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nav-button-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.nav-button-prev .nav-button-content {
    align-items: flex-start;
}

.nav-button-next .nav-button-content {
    align-items: flex-end;
    text-align: right;
}

.nav-button-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    font-weight: 600;
}

.nav-button-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-button:hover .nav-button-title {
    color: white;
}

.nav-button:hover .nav-button-label {
    color: rgba(255, 255, 255, 0.8);
}

.nav-button-spacer {
    flex: 1;
}

/* Footer */
.site-footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem 1.5rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 4rem;
    text-align: left;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-link-group {
    min-width: 140px;
}

.footer-link-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link-list li {
    margin-bottom: 0.5rem;
}

.footer-link-list a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.footer-link-list a:hover {
    color: var(--link-color);
}

.footer-link-list a svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
}

.footer-branding {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-branding a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-branding a:hover {
    color: var(--link-hover);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 0;
}

.footer-meta {
    font-size: 0.85rem;
    opacity: 0.8;
}

[data-theme="light"] .nav-button {
    border-color: rgba(15, 118, 110, 0.24);
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.1);
}

[data-theme="light"] .nav-button:hover {
    background: linear-gradient(135deg, #ecf8f7 0%, #e3f4f3 100%);
    border-color: rgba(15, 118, 110, 0.45);
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.15);
}

[data-theme="light"] .nav-button:hover .nav-button-title {
    color: #0f766e;
}

[data-theme="light"] .nav-button:hover .nav-button-label {
    color: #42606a;
}
