/* Footer */
.openai-footer {
    background: var(--bg-footer);
    padding: 80px 40px 40px 40px;
    border-top: 1px solid var(--border-color);
    transition: background-color 0.3s, border-color 0.3s;
}

.footer-inner {
    max-width: 1600px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 80px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-label {
    color: var(--secondary-text);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.footer-column a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
    display: inline-block;
    margin-bottom: 12px;
    width: fit-content;
    max-width: max-content;
}

.footer-column a:hover {
    color: var(--secondary-text);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-text);
    font-size: 12px;
}

.bottom-left {
    display: flex;
    gap: 24px;
    align-items: center;
}

.bottom-left a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.bottom-left a:hover {
    color: var(--secondary-text);
}

.bottom-left a svg {
    transition: fill 0.2s;
    display: block;
}

.bottom-left a img {
    display: block;
}

/* Fix Bilibili icon vertical alignment */
.bottom-left a .social-icon--bilibili,
.bottom-left a .social-icon--huggingface {
    position: relative;
    top: 1px;
}

.bottom-left a .social-icon--huggingface {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Email copy button styles */
.bottom-left .email-copy-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--text-color);
    display: inline-flex;
    align-items: center;
    transition: color 0.2s;
}

.bottom-left .email-copy-btn:hover {
    color: var(--secondary-text);
}

.bottom-left .email-copy-btn svg {
    display: block;
}

.bottom-center {
    color: var(--secondary-text);
}

.bottom-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-selector {
    appearance: none;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-color);
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px 0 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.lang-selector:hover {
    color: var(--text-color);
    border-color: var(--secondary-text);
    background: var(--pill-bg);
}

.lang-icon {
    display: block;
    flex-shrink: 0;
}

.lang-label {
    display: block;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--secondary-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s;
}

.theme-toggle:hover {
    color: var(--text-color);
}

.theme-toggle svg {
    display: block;
    flex-shrink: 0;
}

.bottom-bar { position: fixed; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 100; }

@media (max-width: 768px) {
    .openai-footer {
        padding: 48px 20px 32px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px 16px;
        margin-bottom: 48px;
    }
    
    /* Increase footer text size for mobile */
    .footer-label {
        font-size: 16px; /* Larger than desktop */
        margin-bottom: 20px;
    }
    
    .footer-column a {
        font-size: 16px; /* Larger than desktop */
        padding: 6px 0;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .bottom-left {
        justify-content: center;
    }

    .bottom-right {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Increase bottom bar text size */
    .bottom-center {
        font-size: 14px;
    }

    .lang-selector {
        height: 38px;
        padding: 0 14px 0 12px;
        font-size: 13px;
    }

    .bottom-bar {
        bottom: 24px;
    }
}
