/**
 * Goooch Custom Footer Styles
 * 
 * @package Betheme-Child
 * @since 1.0.0
 */

/* ========================================
   Footer Wrapper - Full Width Background
   ======================================== */
.goooch-footer-wrapper {
    width: 100%;
    background: #0B0C13;
    /*margin-top: 60px;*/
}

/* ========================================
   Footer Content - Fixed Width Container
   ======================================== */
.goooch-footer {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 83px 160px 60px;
    min-height: 498px;
}

@media (max-width: 1440px) {
    .goooch-footer {
        padding-left: 80px;
        padding-right: 80px;
    }
}

@media (max-width: 1024px) {
    .goooch-footer {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ========================================
   Footer Content Grid Layout
   ======================================== */
.goooch-footer-content {
    display: grid;
    grid-template-columns: 242px repeat(4, 1fr);
    grid-template-rows: auto auto auto;
    gap: 30px;
    position: relative;
}

@media (max-width: 1200px) {
    .goooch-footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .goooch-footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ========================================
   Footer Logo
   ======================================== */
.goooch-footer-logo {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
}

.goooch-footer-logo a {
    display: block;
    width: 80%;
    margin-top: 32%;
    /*width: 242px;*/
    /*height: 58px;*/
}

.goooch-footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 1200px) {
    .goooch-footer-logo {
        grid-column: 1 / -1;
        grid-row: 1;
        justify-self: center;
    }
}

/* ========================================
   Footer Columns
   ======================================== */
.goooch-footer-column {
    min-width: 0;
}

.goooch-footer-company {
    grid-column: 2;
    grid-row: 1 / 3;
}

.goooch-footer-products {
    grid-column: 3;
    grid-row: 1 / 3;
}

.goooch-footer-support {
    grid-column: 4;
    grid-row: 1 / 3;
}

.goooch-footer-follow {
    grid-column: 5;
    grid-row: 1 / 3;
}

@media (max-width: 1200px) {
    .goooch-footer-company,
    .goooch-footer-products,
    .goooch-footer-support,
    .goooch-footer-follow {
        grid-column: auto;
        grid-row: auto;
    }
}

/* ========================================
   Menu Title Styles
   ======================================== */
.footer-menu-title {
    color: #F0F0F0;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   Menu Links Styles
   ======================================== */
.footer-menu-container {
    margin: 0;
    padding: 0;
}

.footer-menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-menu-items li {
    margin: 0;
    padding: 0;
}

/* Ensure all menu items have consistent styling */
.footer-menu-items li a,
.footer-menu-items .menu-item a {
    display: inline-block;
    opacity: 0.40;
    color: #F0F0F0;
    font-size: 14px;
    font-weight: 510;
    text-decoration: none;
    transition: opacity 0.3s ease;
    text-transform: none;
    letter-spacing: normal;
}

.footer-menu-items li a:hover,
.footer-menu-items .menu-item a:hover {
    opacity: 1;
}

/* Override any WordPress default menu styles */
.footer-menu-items .menu-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Specifically target first item to ensure no title styling */
.footer-menu-items li:first-child a {
    font-size: 14px;
    font-weight: 510;
    text-transform: none;
    opacity: 0.40;
}

/* ========================================
   Social Media Icons
   ======================================== */
.goooch-social-icons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.goooch-social-icon {
    width: 21px;
    height: 21px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
}

.goooch-social-icon:hover {
    transform: scale(1.1);
    opacity: 1;
}

.goooch-social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========================================
   Newsletter Section
   ======================================== */
.goooch-newsletter-section {
    margin-top: 57px;
}

.goooch-newsletter-title {
    color: #F0F0F0;
    font-size: 14.25px;
    font-weight: 700;
    margin-bottom: 18px;
}

.goooch-newsletter-form {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 9px;
    align-items: center !important;
    width: fit-content;
}

.goooch-newsletter-form > * {
    display: inline-block !important;
}

.goooch-newsletter-input {
    width: 130px !important;
    height: 30px !important;
    background: #1A1C29!important;
    border: 0!important;
    outline: none!important;
    border-radius: 3px;
    padding: 0 10px;
    color: #F0F0F0;
    font-size: 12px;
    transition: background 0.3s ease;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

.goooch-newsletter-input:focus {
    background: #22242f;
}

.goooch-newsletter-input::placeholder {
    opacity: 0.60;
    color: #F0F0F0;
}

.goooch-newsletter-button {
    width: 75px !important;
    height: 30px !important;
    background: #1A1C29;
    border: 0;
    outline: none;
    /*border: 1px solid rgba(255, 255, 255, 0.3);*/
    border-radius: 3px;
    color: #F0F0F0;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0 !important;
    padding: 0 10px;
    vertical-align: middle;
}

.goooch-newsletter-button:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    /*border-color: rgba(255, 255, 255, 0.5);*/
}

.goooch-newsletter-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.goooch-newsletter-message {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.4;
    min-height: 20px;
}

.goooch-newsletter-message.success {
    color: #4caf50;
}

.goooch-newsletter-message.error {
    color: #f44336;
}

/* ========================================
   Copyright Section
   ======================================== */
.goooch-footer-copyright {
    grid-column: 1 / -1;
    text-align: center;
    color: #F0F0F0;
    font-size: 14px;
    font-weight: 510;
    line-height: 1.5;
    margin-top: 100px;
    padding-top: 30px;
    border-top: 1px solid rgba(240, 240, 240, 0.1);
}

@media (max-width: 768px) {
    .goooch-footer-copyright {
        margin-top: 40px;
    }
}

/* ========================================
   Payment Icons
   ======================================== */
.goooch-payment-icons {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.goooch-payment-icon {
    width: 68px;
    height: 36px;
    background: #F0F0F0;
    border-radius: 8px;
    border: 1px solid #F0F0F0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
    transition: transform 0.2s ease;
}

.goooch-payment-icon:hover {
    transform: translateY(-2px);
}

.goooch-payment-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .goooch-footer {
        padding: 40px 20px;
        min-height: auto;
    }
    
    .footer-menu-title {
        margin-bottom: 20px;
    }
    
    .goooch-social-icons {
        justify-content: flex-start;
        margin-top: 20px;
    }
    
    .goooch-newsletter-section {
        margin-top: 30px;
    }

    .goooch-newsletter-form {
        flex-direction: row !important;
        align-items: center;
    }

    .goooch-newsletter-input {
        width: 130px !important;
        max-width: 130px;
    }

    .goooch-newsletter-button {
        width: 80px !important;
        max-width: 80px;
    }
}

/* ========================================
   Dark Mode Override (if needed)
   ======================================== */
body.dark-mode .goooch-footer-wrapper {
    background: #000000;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .goooch-footer-wrapper {
        display: none;
    }
}

/* ========================================
   Loading State
   ======================================== */
.goooch-newsletter-form.loading .goooch-newsletter-button::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 5px;
    border: 2px solid #F0F0F0;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

