/**
 * GPCC Custom Footer Styles
 * 
 * @package GeneratePress_Child
 * @version 1.0.0
 */

/* ==========================================================================
   Footer Base
   ========================================================================== */

.gpcc-footer {
    background: var(--footer-bg, var(--surface-1, #111A33));
    color: var(--text, #E5EAF3);
    font-size: var(--text-sm, 0.875rem);
    margin-top: auto;
}

.gpcc-footer a {
    color: var(--text-muted, #94A3B8);
    text-decoration: none;
    transition: color var(--transition-fast, 150ms ease-in-out);
}

.gpcc-footer a:hover {
    color: var(--primary, #3B82F6);
}

/* Container */
.gpcc-footer__container {
    max-width: var(--container, 1280px);
    margin: 0 auto;
    padding: 0 var(--gap, 24px);
}

/* ==========================================================================
   Main Footer Section
   ========================================================================== */

.gpcc-footer__main {
    padding: var(--gap-xl, 48px) 0;
}

.gpcc-footer__main > .gpcc-footer__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-lg, 32px);
}

@media (min-width: 768px) {
    .gpcc-footer__main > .gpcc-footer__container {
        grid-template-columns: 1.5fr 2fr;
    }
}

@media (min-width: 1024px) {
    .gpcc-footer__main > .gpcc-footer__container {
        grid-template-columns: 1fr 2fr 1fr;
    }
}

/* ==========================================================================
   Brand Section
   ========================================================================== */

.gpcc-footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--gap, 24px);
}

.gpcc-footer__logo-link {
    display: inline-flex;
    align-items: center;
}

.gpcc-footer__logo {
    max-height: 40px;
    width: auto;
}

.gpcc-footer__logo-text {
    font-size: var(--text-xl, 1.25rem);
    font-weight: var(--font-bold, 700);
    color: var(--text, #E5EAF3);
}

.gpcc-footer__about {
    color: var(--text-muted, #94A3B8);
    line-height: var(--leading-relaxed, 1.625);
    margin: 0;
}

/* ==========================================================================
   Social Icons
   ========================================================================== */

.gpcc-footer__social {
    display: flex;
    gap: var(--gap-sm, 12px);
    flex-wrap: wrap;
}

.gpcc-footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md, 12px);
    background: var(--surface-2, #1A2642);
    color: var(--text, #E5EAF3);
    transition: all var(--transition-fast, 150ms ease-in-out);
}

.gpcc-footer__social-link:hover {
    background: var(--primary, #3B82F6);
    color: #fff;
    transform: translateY(-2px);
}

.gpcc-footer__social-link svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Widget Areas
   ========================================================================== */

.gpcc-footer__widgets {
    display: grid;
    gap: var(--gap, 24px);
}

.gpcc-footer__widgets--cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gpcc-footer__widgets--cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gpcc-footer__widgets--cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 767px) {
    .gpcc-footer__widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 479px) {
    .gpcc-footer__widgets {
        grid-template-columns: 1fr;
    }
}

.gpcc-footer__widget-area {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm, 12px);
}

.gpcc-footer__widget-title {
    font-size: var(--text-base, 1rem);
    font-weight: var(--font-semibold, 600);
    color: var(--text, #E5EAF3);
    margin: 0 0 var(--gap-sm, 12px);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gpcc-footer__widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gpcc-footer__widget li {
    margin-bottom: var(--gap-xs, 6px);
}

.gpcc-footer__widget a {
    color: var(--text-muted, #94A3B8);
    display: inline-block;
    padding: 2px 0;
}

.gpcc-footer__widget a:hover {
    color: var(--text, #E5EAF3);
}

/* ==========================================================================
   Newsletter
   ========================================================================== */

.gpcc-footer__newsletter {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm, 12px);
}

.gpcc-footer__newsletter-title {
    font-size: var(--text-base, 1rem);
    font-weight: var(--font-semibold, 600);
    color: var(--text, #E5EAF3);
    margin: 0;
}

.gpcc-footer__newsletter-text {
    color: var(--text-muted, #94A3B8);
    margin: 0;
    line-height: var(--leading-relaxed, 1.625);
}

.gpcc-footer__newsletter-form {
    display: flex;
    gap: var(--gap-xs, 6px);
    margin-top: var(--gap-sm, 12px);
}

.gpcc-footer__newsletter-input {
    flex: 1;
    padding: var(--gap-sm, 12px) var(--gap, 24px);
    border: 1px solid var(--border, #334155);
    border-radius: var(--radius-md, 12px);
    background: var(--surface-2, #1A2642);
    color: var(--text, #E5EAF3);
    font-size: var(--text-sm, 0.875rem);
}

.gpcc-footer__newsletter-input::placeholder {
    color: var(--text-soft, #64748B);
}

.gpcc-footer__newsletter-input:focus {
    outline: none;
    border-color: var(--primary, #3B82F6);
}

.gpcc-footer__newsletter-btn {
    padding: var(--gap-sm, 12px) var(--gap, 24px);
    background: var(--primary, #3B82F6);
    color: #fff;
    border: none;
    border-radius: var(--radius-md, 12px);
    font-weight: var(--font-semibold, 600);
    cursor: pointer;
    transition: background var(--transition-fast, 150ms ease-in-out);
}

.gpcc-footer__newsletter-btn:hover {
    background: var(--primary-hover, #2563EB);
}

/* ==========================================================================
   Disclaimer
   ========================================================================== */

.gpcc-footer__disclaimer {
    background: var(--surface-2, #1A2642);
    padding: var(--gap, 24px) 0;
    border-top: 1px solid var(--border, #334155);
}

.gpcc-footer__disclaimer p {
    margin: 0;
    color: var(--text-muted, #94A3B8);
    font-size: var(--text-xs, 0.75rem);
    line-height: var(--leading-relaxed, 1.625);
    text-align: center;
}

/* ==========================================================================
   Bottom Bar
   ========================================================================== */

.gpcc-footer__bottom {
    background: var(--bg, #0B1220);
    padding: var(--gap, 24px) 0;
    border-top: 1px solid var(--border, #334155);
}

.gpcc-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--gap-sm, 12px);
}

.gpcc-footer__copyright {
    margin: 0;
    color: var(--text-muted, #94A3B8);
    font-size: var(--text-sm, 0.875rem);
}

.gpcc-footer__nav .gpcc-footer__menu {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap, 24px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.gpcc-footer__nav .gpcc-footer__menu a {
    color: var(--text-muted, #94A3B8);
    font-size: var(--text-sm, 0.875rem);
}

.gpcc-footer__nav .gpcc-footer__menu a:hover {
    color: var(--text, #E5EAF3);
}

@media (max-width: 639px) {
    .gpcc-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Back to Top Button
   ========================================================================== */

.gpcc-back-to-top {
    position: fixed;
    bottom: var(--gap, 24px);
    right: var(--gap, 24px);
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full, 9999px);
    background: var(--primary, #3B82F6);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg, 0 10px 15px -3px rgba(0, 0, 0, 0.2));
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal, 250ms ease-in-out);
    z-index: 99;
}

.gpcc-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gpcc-back-to-top:hover {
    background: var(--primary-hover, #2563EB);
    transform: translateY(-3px);
}

.gpcc-back-to-top:active {
    transform: translateY(0);
}

.gpcc-back-to-top svg {
    width: 24px;
    height: 24px;
}
