/*
Theme Name: Linkbot
Theme URI: https://github.com/chrismccoy/linkbot
Description: A link directory WordPress theme with Font Awesome icons, link manager integration, featured platform widgets, and custom nav menu icons.
Version: 1.0.0
Author: Chris McCoy
Text Domain: linkbot
*/

:root {
    --accent: #F5276C;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    background-color: #e5e7eb;
    background-image: radial-gradient(black 1px, transparent 0);
    background-size: 25px 25px;
    font-family: 'Space Mono', monospace;
    min-height: 100vh;
    padding: 2rem 1rem;
    margin: 0;
}

.linkbot-wrap {
    max-width: 72rem;
    margin: 0 auto;
}

.font-display {
    font-family: 'Archivo Black', sans-serif;
}

.shadow-hard    { box-shadow: 10px 10px 0 0 #000; }
.shadow-hard-sm { box-shadow:  5px  5px 0 0 #000; }

a.link-item {
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    text-decoration-color: #d1d5db;
    color: inherit;
}
a.link-item:hover {
    background-color: var(--accent);
    color: #000;
    text-decoration: none;
}

.site-header {
    background: #fff;
    border: 4px solid #000;
    box-shadow: 10px 10px 0 0 #000;
    padding: 1.5rem 2.5rem;
    margin-bottom: 2rem;
}

.site-header-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .site-header-top {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.site-formerly {
    display: inline-block;
    background: #000;
    color: #fff;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    margin-bottom: 0.5rem;
}

.site-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: clamp(2.5rem, 10vw, 5rem);
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0;
}

.site-title a {
    color: inherit;
    text-decoration: none;
}

.site-description {
    font-size: 0.875rem;
    color: #4b5563;
    margin: 0.5rem 0 0;
    font-family: 'Space Mono', monospace;
}

.header-meta {
    text-align: right;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #6b7280;
    flex-shrink: 0;
}
.header-meta p { margin: 0; line-height: 1.6; }
.header-meta .status-active { color: #16a34a; }

.linkbot-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.linkbot-nav ul li a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fff;
    color: #000;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    border: 2px solid #000;
    text-decoration: none;
    transition: background-color 0.15s;
    cursor: pointer;
}

.linkbot-nav ul li a:hover {
    background-color: var(--accent);
}

.linkbot-nav ul li.current-menu-item > a {
    background: #000;
    color: #fff;
}

.featured-section {
    background-color: var(--accent);
    border: 4px solid #000;
    box-shadow: 10px 10px 0 0 #000;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.featured-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.featured-section-header i { font-size: 1.25rem; }

.featured-section-header h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.5rem;
    text-transform: uppercase;
    margin: 0;
}

.featured-platforms-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .featured-platforms-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .featured-platforms-grid { grid-template-columns: repeat(3, 1fr); }
}

.widget-featured-platform-link {
    display: block;
    background: #fff;
    border: 4px solid #000;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.15s;
}
.widget-featured-platform-link:hover {
    box-shadow: 5px 5px 0 0 #000;
}
.widget-featured-platform-link .fp-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.widget-featured-platform-link .fp-icon { font-size: 1.5rem; }
.widget-featured-platform-link .fp-title {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.125rem;
}
.widget-featured-platform-link .fp-desc {
    font-size: 0.75rem;
    color: #4b5563;
    margin: 0;
    font-family: 'Space Mono', monospace;
}

.link-sections-wrap {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.link-section-row-multi {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .link-section-row-multi.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .link-section-row-multi.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

.link-section-card {
    background: #fff;
    border: 4px solid #000;
    box-shadow: 10px 10px 0 0 #000;
}

.link-section-card.small-shadow {
    box-shadow: 5px 5px 0 0 #000;
}

.link-section-card-header {
    background: #000;
    color: #fff;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.link-section-card-header.compact {
    padding: 0.75rem;
    gap: 0.5rem;
}

.link-section-card-header h2 {
    font-family: 'Archivo Black', sans-serif;
    font-size: 1.25rem;
    text-transform: uppercase;
    margin: 0;
}
.link-section-card-header.compact h2 { font-size: 0.875rem; }

.link-section-card-body { padding: 1.5rem; }
.link-section-card-body.compact { padding: 1rem; }

.links-ranked-4col {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 1.5rem;
    row-gap: 0.125rem;
    font-size: 0.875rem;
    font-family: 'Space Mono', monospace;
}
@media (min-width: 768px)  { .links-ranked-4col { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .links-ranked-4col { grid-template-columns: repeat(4, 1fr); } }

.links-ranked-2col {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 1.5rem;
    row-gap: 0.125rem;
    font-size: 0.875rem;
    font-family: 'Space Mono', monospace;
}
@media (min-width: 768px) { .links-ranked-2col { grid-template-columns: repeat(2, 1fr); } }

.links-list {
    font-size: 0.875rem;
    font-family: 'Space Mono', monospace;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}
.links-list.compact { font-size: 0.75rem; }

.links-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 1rem;
    row-gap: 0.5rem;
    font-size: 0.875rem;
    font-family: 'Space Mono', monospace;
}
.links-cloud .sep { color: #9ca3af; }

.link-item.block-item { display: block; padding: 0.25rem 0; }

.stats-bar {
    background: #000;
    color: #fff;
    border: 4px solid #000;
    padding: 1rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    font-family: 'Space Mono', monospace;
}
.stats-bar-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.stats-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-footer {
    background: #fff;
    border: 4px solid #000;
    box-shadow: 10px 10px 0 0 #000;
    padding: 1.5rem;
}
.site-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 768px) {
    .site-footer-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}
.footer-info { font-size: 0.75rem; color: #4b5563; font-family: 'Space Mono', monospace; }
.footer-info p { margin: 0; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: #000; font-size: 1.25rem; text-decoration: none; transition: color 0.15s; }
.footer-social a:hover { color: var(--accent); }
.footer-tags { margin-top: 1rem; padding-top: 1rem; border-top: 2px solid #d1d5db; font-size: 0.75rem; color: #6b7280; font-family: 'Space Mono', monospace; }
.footer-tags .tag { display: inline-block; background: #e5e7eb; padding: 0.15rem 0.5rem; margin-right: 0.5rem; margin-bottom: 0.25rem; }

.link-cat-icon-preview { font-size: 1.5rem; vertical-align: middle; margin-left: 0.5rem; }
