/**
 * Footer Styles — Premium Redesign
 * Three layouts: L1 three-column, L2 four-column, L3 compact
 *
 * @package SQL_ForgeMaster
 */

/* =========================================
   BASE FOOTER
   ========================================= */
.site-footer {
    background: var(--color-charcoal-900);
    color: rgba(255, 255, 255, 0.75);
    position: relative;
}

/* Top orange accent bar */
.site-footer::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-forge-orange-300, #f47f40), transparent 70%);
}

/* =========================================
   FOOTER TOP AREA (columns)
   ========================================= */
.sqlfm-footer-top,
.sqlfm-footer-main {
    padding: var(--space-16) 0 var(--space-12);
}

/* =========================================
   FOOTER GRID SYSTEMS
   ========================================= */
/* Layout 1 — three columns, brand wider */
.sqlfm-footer-layout1 .sqlfm-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

/* Layout 2 — four columns, brand wider */
.sqlfm-footer-layout2 .sqlfm-footer-grid,
.sqlfm-footer-grid-4 {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-10);
    align-items: start;
}

/* =========================================
   BRAND COLUMN
   ========================================= */
.sqlfm-footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.sqlfm-footer-logo a {
    display: inline-block;
    text-decoration: none;
}

.sqlfm-footer-logo .sqlfm-logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sqlfm-footer-logo .sqlfm-logo-text span {
    color: var(--color-accent);
}

.sqlfm-footer-tagline {
    font-size: var(--text-sm);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
    max-width: 300px;
    margin: 0;
}

/* =========================================
   COLUMN HEADING
   ========================================= */
.sqlfm-footer-col-title {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    position: relative;
    display: block;
}

.sqlfm-footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
}

/* widget-title (sidebar widgets) — match brand */
.sqlfm-footer-col .widget-title {
    font-family: var(--font-heading);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-3);
    position: relative;
}

.sqlfm-footer-col .widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
}

.sqlfm-footer-col p {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    margin-bottom: var(--space-3);
}

/* =========================================
   SOCIAL LINKS
   ========================================= */
.sqlfm-footer-social {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.sqlfm-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sqlfm-social-link:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    transform: translateY(-3px);
}

.sqlfm-social-link:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* =========================================
   NAV LINK LISTS
   ========================================= */
.sqlfm-footer-menu,
.sqlfm-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.sqlfm-footer-menu li,
.sqlfm-footer-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sqlfm-footer-menu li:last-child,
.sqlfm-footer-links li:last-child {
    border-bottom: none;
}

.sqlfm-footer-menu a,
.sqlfm-footer-links a {
    display: flex;
    align-items: center;
    gap: 0;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    position: relative;
}

.sqlfm-footer-menu a::before,
.sqlfm-footer-links a::before {
    content: '›';
    font-size: 1.1em;
    color: var(--color-accent);
    margin-right: var(--space-2);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateX(-4px);
    line-height: 1;
}

.sqlfm-footer-menu a:hover,
.sqlfm-footer-links a:hover {
    color: #fff;
    padding-left: var(--space-3);
}

.sqlfm-footer-menu a:hover::before,
.sqlfm-footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.sqlfm-footer-menu a:focus-visible,
.sqlfm-footer-links a:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
    color: #fff;
}

/* =========================================
   CONTACT ITEMS (premium)
   ========================================= */
.sqlfm-footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.sqlfm-footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.sqlfm-footer-contact-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: var(--radius-md);
    background: rgba(232, 96, 28, 0.1);
    border: 1px solid rgba(232, 96, 28, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    flex-shrink: 0;
}

.sqlfm-footer-contact-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.sqlfm-footer-contact-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.35);
    display: block;
}

.sqlfm-footer-contact-value,
.sqlfm-footer-contact-value a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
    line-height: 1.5;
    word-break: break-word;
}

a.sqlfm-footer-contact-value:hover,
.sqlfm-footer-contact-value a:hover {
    color: var(--color-accent);
}

/* Backward compat — old contact paragraph style */
.sqlfm-footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-3);
    line-height: 1.6;
}

.sqlfm-footer-contact svg {
    color: var(--color-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.sqlfm-footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sqlfm-footer-contact a:hover {
    color: var(--color-accent);
}

.sqlfm-footer-contact a:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}

/* =========================================
   DIVIDER
   ========================================= */
.sqlfm-footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin: 0;
}

/* =========================================
   FOOTER BOTTOM BAR
   ========================================= */
.sqlfm-footer-bottom {
    padding: var(--space-5) 0;
}

.sqlfm-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.sqlfm-copyright {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.38);
    margin: 0;
    line-height: 1.5;
}

.sqlfm-copyright a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sqlfm-copyright a:hover {
    color: var(--color-accent);
}

.sqlfm-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: var(--space-5);
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.sqlfm-footer-bottom-links a {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.38);
    text-decoration: none;
    transition: color 0.2s ease;
}

.sqlfm-footer-bottom-links a:hover {
    color: rgba(255, 255, 255, 0.75);
}

/* =========================================
   LAYOUT 3 — Compact single-row
   ========================================= */
.sqlfm-footer-layout3 .sqlfm-footer-compact {
    padding: var(--space-6) 0;
}

.sqlfm-footer-compact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.sqlfm-footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
}

.sqlfm-footer-brand a {
    text-decoration: none;
}

.sqlfm-footer-brand .sqlfm-logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sqlfm-footer-brand .sqlfm-logo-text span {
    color: var(--color-accent);
}

.sqlfm-footer-brand .sqlfm-logo-img {
    max-height: 36px;
    width: auto;
    display: block;
}

.sqlfm-footer-brand .sqlfm-copyright {
    text-align: left;
}

/* Compact vertical divider between logo + copyright */
.sqlfm-footer-brand .sqlfm-footer-brand-sep {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.sqlfm-footer-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

/* Inline nav menu */
.sqlfm-footer-menu-inline {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--space-1);
    flex-wrap: wrap;
    justify-content: center;
}

.sqlfm-footer-menu-inline li + li {
    position: relative;
}

.sqlfm-footer-menu-inline li + li::before {
    content: '·';
    color: rgba(255, 255, 255, 0.2);
    padding-right: var(--space-1);
}

.sqlfm-footer-menu-inline a {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.sqlfm-footer-menu-inline a:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.06);
}

.sqlfm-footer-menu-inline a:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* =========================================
   FOCUS STATES
   ========================================= */
.sqlfm-social-link:focus-visible,
.sqlfm-footer-menu a:focus-visible,
.sqlfm-footer-links a:focus-visible,
.sqlfm-footer-menu-inline a:focus-visible,
.sqlfm-footer-contact a:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
    border-radius: 2px;
}
