/* =============================================================================
   Kernel Version Table Styles
   Modern, responsive table design with accessibility features
   ============================================================================= */

/* Root Variables for Easy Theming */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-hover: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --bg-primary: #1f2937;
        --bg-secondary: #111827;
        --bg-hover: #374151;
        --border-color: #374151;
    }
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

/* NAV */
nav{
  position : relative;
  text-align: center;
}

nav ul{
  list-style : none;
  position : relative;
  font-size: 16px;
  padding: 3%;
}

nav ul li{
  display : inline;
  padding : 10px;
}

nav ul li a {
  color : #2563eb;
  text-decoration: none;
  text-transform : uppercase;
  padding : 20px;
  text-align: center;
  letter-spacing : 2px;
  transition : all 0.1s ease-in-out;
}

nav ul li a:hover {
  border-radius: 4px;
  border-bottom: 4px solid #1d4ed8;
  -o-transition:.1s;
  -ms-transition:.1s;
  -moz-transition:.1s;
  -webkit-transition:.1s;
  transition:.1s;
}

li.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 500;
}
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1
}

.dropdown:hover .dropdown-content {
    display: block;
}

input[type=checkbox]{
    display: none;
}

input[type=checkbox]:checked ~ #menu{
    display: block;
}

/*---- HAMBURGER ----*/
.hamburger {
  overflow:auto;
  text-decoration: none;
  color: #fff;
  box-shadow: 0px 6px #2563eb;
  background: #2563eb;
  border-radius: 2px;
  text-align: center;
  padding: 10px 0;
  display: none;
  cursor: pointer;
  opacity:1;
  -o-transition:.5s;
  -ms-transition:.5s;
  -moz-transition:.5s;
  -webkit-transition:.5s;
  transition:.5s;
}

.hamburger:hover {
  opacity:0.8;
}

  @media screen and (max-width : 1000px){
  	nav {
  		position: static;
        display: none;
      background-color: #1f2937;
      border-radius: 2px;
      box-shadow: 0 4px 14px 1px rgba(50, 50, 50, 0.14);
  	}

  	li {
  		margin-bottom: 1px;
  	}

    ul, menu, dir {
      display: block;
      list-style-type: disc;
      -webkit-margin-before: 1em;
      -webkit-margin-after: 1em;
      -webkit-margin-start: 0px;
      -webkit-margin-end: 0px;
      -webkit-padding-start: 0px;
  }

  	ul li, li a{
      display: grid;
      /*padding: 2px;*/
  	}

  	.hamburger {
  		display:block;
  	}

    .dropdown {
      width: 90%;
    }

    .dropdown-content {
      position: static;
    }
    .dropdown-content a {
      display: grid !important;
    }

    .dropdown-content a:hover {
        background-color: #f1f1f1
    }

    .dropdown-content a:hover < .dropdown-content {

      position: static;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .logo {
        min-width: 100%;
        min-height: 100%;
        padding: 10px;
      }

  }

/* Container Styles */
ul {
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
}

li {
    margin-bottom: 20px;
}

/* Table Container */
.table-wrapper {
    background: var(--bg-primary);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin: 20px 0;
}

/* Table Header */
.table-header {
    padding: 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
}

.table-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.table-description {
    font-size: 14px;
    opacity: 0.9;
}

/* Table Styles */
.container {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--bg-primary);
}

/* Table Head */
thead {
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 10;
}

thead tr th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
}

/* Table Body */
tbody tr {
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background-color: var(--bg-hover);
    transform: scale(1.01);
    box-shadow: var(--shadow-sm);
}

tbody tr:last-child {
    border-bottom: none;
}

tbody td {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-primary);
    vertical-align: middle;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.status-stable {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

.status-stable::before {
    background-color: var(--success-color);
    animation: pulse 2s ease-in-out infinite;
}

.status-mainline {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.status-mainline::before {
    background-color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

.status-longterm {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.status-longterm::before {
    background-color: #8b5cf6;
}

.status-beta {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.status-beta::before {
    background-color: var(--warning-color);
}

.status-deprecated {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.status-deprecated::before {
    background-color: var(--danger-color);
}

/* Version Column */
.version-cell {
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-weight: 600;
    font-size: 15px;
    color: var(--primary-color);
}

/*---- LOGO ----*/
.logo {
  max-width: 15%;
  max-height: 15%;
  transition: 1.5s;
  transition: transform 1.5s;
  transform: rotateY(180deg);
  -o-transition:  1.5s;
  -ms-transition: 1.5s;
  -webkit-transition: 1.5s;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    margin: 4px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-success {
    background-color: transparent;
    color: var(--success-color);
    border: 2px solid var(--success-color);
}

.btn-success:hover {
    background-color: var(--success-color);
    color: white;
    transform: translateY(-2px);
}

.btn-icon {
    margin-right: 6px;
}

/* PGP Signature Link */
.pgp-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
}

.pgp-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.pgp-icon {
    margin-right: 4px;
    font-size: 16px;
}

/* Download Column */
.download-cell {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Changelog Modal Trigger */
.changelog-trigger {
    color: var(--primary-color);
    cursor: pointer;
    font-weight: 500;
    text-decoration: underline;
    transition: var(--transition);
}

.changelog-trigger:hover {
    color: var(--primary-hover);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 18px;
    font-weight: 500;
}

/* Loading State */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

tbody tr {
    animation: fadeIn 0.3s ease-out;
}

tbody tr:nth-child(1) { animation-delay: 0.05s; }
tbody tr:nth-child(2) { animation-delay: 0.1s; }
tbody tr:nth-child(3) { animation-delay: 0.15s; }
tbody tr:nth-child(4) { animation-delay: 0.2s; }
tbody tr:nth-child(5) { animation-delay: 0.25s; }

/* Responsive Design */
@media screen and (max-width: 768px) {
    .table-wrapper {
        border-radius: 0;
    }
    
    .table-header {
        padding: 20px;
    }
    
    .table-title {
        font-size: 20px;
    }
    
    /* Stack table on mobile */
    .container,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tbody tr {
        margin-bottom: 16px;
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        padding: 12px;
    }
    
    tbody td {
        border: none;
        position: relative;
        padding-left: 50%;
    }
    
    tbody td:before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 12px;
        color: var(--text-secondary);
    }
    
    .download-cell {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }
    
    .table-wrapper {
        box-shadow: none;
    }
    
    .btn,
    .changelog-trigger {
        display: none;
    }
    
    tbody tr:hover {
        background-color: transparent;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus Styles for Keyboard Navigation */
a:focus,
button:focus,
.changelog-trigger:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Modal Styles */
#changelogModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background-color: var(--bg-primary);
    max-width: 800px;
    max-height: 80vh;
    margin: 5% auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 24px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.modal-body pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    padding: 16px;
    border-radius: 6px;
    border-left: 4px solid var(--primary-color);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 768px) {
    .modal-content {
        margin: 10% 20px;
        max-height: 85vh;
    }
}


/* ============================================================================
   FOOTER STYLES
   ============================================================================ */

.site-footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #e2e8f0;
    padding: 48px 20px 24px;
    margin-top: 80px;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    border-top: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.5;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.2);
    margin-bottom: 24px;
    align-items: center;
}

/* Footer Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand-name {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
    width: fit-content;
}

.footer-brand-name::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    border-radius: 2px;
}

.footer-tagline {
    font-size: 16px;
    font-weight: 400;
    font-style: italic;
    margin: 0;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 400px;
}

/* Footer Info Section */
.footer-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    text-align: right;
}

.footer-copyright {
    margin: 0;
}

.footer-copyright p {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.footer-copyright p::before {
    content: '©';
    font-size: 16px;
    color: var(--primary-color);
}

/* Footer Links */
.footer-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    transition: var(--transition);
    border-radius: 4px;
    position: relative;
    display: inline-block;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 12px;
    right: 12px;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.footer-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.05);
}

.footer-link:hover::after {
    transform: scaleX(1);
}

.footer-link:active {
    transform: translateY(1px);
}

.footer-separator {
    color: rgba(148, 163, 184, 0.4);
    font-size: 14px;
    margin: 0 4px;
    user-select: none;
}

/* Footer Bottom Section */
.footer-bottom {
    text-align: center;
    padding-top: 20px;
}

.footer-notice {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.6;
}

.footer-notice::before {
    content: '🔒';
    font-size: 16px;
    animation: pulse 2s ease-in-out infinite;
}

/* Additional Footer Elements */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #94a3b8;
    text-decoration: none;
    font-size: 18px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Footer Stats (Optional) */
.footer-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 24px 0;
    border-top: 1px solid rgba(226, 232, 240, 0.1);
    margin-top: 24px;
}

.footer-stat {
    text-align: center;
}

.footer-stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 4px;
}

.footer-stat-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================================================
   FOOTER RESPONSIVE STYLES - TABLET
   ============================================================================ */
@media screen and (max-width: 1024px) {
    .site-footer {
        padding: 40px 20px 20px;
        margin-top: 60px;
    }
    
    .footer-main {
        gap: 32px;
    }
    
    .footer-brand-name {
        font-size: 26px;
    }
    
    .footer-tagline {
        font-size: 15px;
    }
}

/* ============================================================================
   FOOTER RESPONSIVE STYLES - MOBILE
   ============================================================================ */
@media screen and (max-width: 768px) {
    .site-footer {
        padding: 40px 16px 20px;
        margin-top: 60px;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-bottom: 24px;
        margin-bottom: 20px;
    }
    
    .footer-brand {
        text-align: center;
        align-items: center;
    }
    
    .footer-brand-name {
        font-size: 24px;
    }
    
    .footer-brand-name::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-tagline {
        font-size: 15px;
        text-align: center;
        max-width: 100%;
    }
    
    .footer-info {
        text-align: center;
        align-items: center;
    }
    
    .footer-copyright p {
        justify-content: center;
        font-size: 13px;
    }
    
    .footer-links {
        justify-content: center;
        gap: 8px;
    }
    
    .footer-link {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .footer-notice {
        font-size: 12px;
        flex-direction: column;
        gap: 4px;
    }
    
    .footer-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* ============================================================================
   FOOTER RESPONSIVE STYLES - SMALL MOBILE
   ============================================================================ */
@media screen and (max-width: 480px) {
    .site-footer {
        padding: 32px 12px 16px;
        margin-top: 40px;
    }
    
    .footer-main {
        gap: 24px;
        padding-bottom: 20px;
        margin-bottom: 16px;
    }
    
    .footer-brand-name {
        font-size: 22px;
    }
    
    .footer-tagline {
        font-size: 14px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }
    
    .footer-separator {
        display: none;
    }
    
    .footer-link {
        padding: 10px 16px;
        width: 100%;
        text-align: center;
        display: block;
    }
    
    .footer-link::after {
        left: 16px;
        right: 16px;
    }
    
    .footer-copyright p {
        font-size: 12px;
        flex-direction: column;
        gap: 4px;
    }
    
    .footer-copyright p::before {
        font-size: 14px;
    }
    
    .footer-notice {
        font-size: 11px;
    }
    
    .footer-social-link {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ============================================================================
   FOOTER DARK MODE ADJUSTMENTS
   ============================================================================ */
@media (prefers-color-scheme: dark) {
    .site-footer {
        background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
        border-top-color: #3b82f6;
    }
    
    .footer-brand-name {
        color: #f1f5f9;
    }
    
    .footer-tagline {
        color: #64748b;
    }
    
    .footer-link {
        color: #94a3b8;
    }
    
    .footer-link:hover {
        color: #f1f5f9;
    }
}

/* ============================================================================
   FOOTER PRINT STYLES
   ============================================================================ */
@media print {
    .site-footer {
        background: white !important;
        color: #000 !important;
        box-shadow: none;
        border-top: 2px solid #000;
        page-break-before: avoid;
        padding: 20px;
        margin-top: 40px;
    }
    
    .site-footer::before {
        display: none;
    }
    
    .footer-main {
        border-bottom-color: #000;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-brand-name,
    .footer-copyright p,
    .footer-link,
    .footer-tagline,
    .footer-notice {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
    }
    
    .footer-brand-name::after {
        background: #000;
    }
    
    .footer-link::after {
        display: none;
    }
    
    .footer-notice::before {
        display: none;
    }
    
    .footer-social,
    .footer-stats {
        display: none;
    }
    
    .footer-separator {
        color: #000;
    }
}

/* ============================================================================
   FOOTER ACCESSIBILITY
   ============================================================================ */
.footer-link:focus,
.footer-social-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.footer-link:focus:not(:focus-visible),
.footer-social-link:focus:not(:focus-visible) {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .site-footer {
        border-top-width: 4px;
    }
    
    .footer-link {
        text-decoration: underline;
    }
    
    .footer-brand-name {
        -webkit-text-fill-color: white;
        color: white;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .footer-link,
    .footer-social-link,
    .footer-notice::before {
        transition: none;
        animation: none;
    }
    
    .footer-link:hover,
    .footer-social-link:hover {
        transform: none;
    }
}