/**
 * Footer 組件 - 四欄平衡佈局
 */

/* === Footer 基礎樣式 === */
.footer {
    background: #343a40 !important;
    color: #ffffff;
    padding: 3rem 0 1rem 0;
    margin-top: auto;
}

/* === Footer 標題樣式 === */
.footer h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #007bff;
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* === Footer 連結樣式 === */
.footer .list-unstyled {
    margin-bottom: 0;
}

.footer .list-unstyled li {
    margin-bottom: 0.75rem;
}

.footer .list-unstyled a {
    color: #adb5bd;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer .list-unstyled a:hover {
    color: #007bff;
    padding-left: 5px;
}

/* === 社群連結樣式 === */
.footer .social-links {
    margin-bottom: 1.5rem;
}

.footer .social-links a {
    color: #adb5bd;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
    margin-right: 1rem;
}

.footer .social-links a:hover {
    color: #007bff;
    transform: translateY(-3px);
}

/* === 聯絡資訊樣式 === */
.footer .contact-info {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer .contact-info p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.footer .contact-info i {
    width: 20px;
    color: #007bff;
}

.footer .contact-info a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .contact-info a:hover {
    color: #007bff;
}

/* === 公司資訊樣式 === */
.footer h6 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer .text-white-50 {
    color: #adb5bd !important;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* === 分隔線樣式 === */
.footer hr {
    border-color: #495057;
    margin: 2rem 0 1rem 0;
}

/* === 資訊安全標章樣式 === */
.footer .security-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer .badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #adb5bd;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    min-width: 120px;
}

.footer .badge-item:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-3px);
}

.footer .badge-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #007bff;
}

.footer .badge-item span {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    display: block;
}

.footer .badge-item small {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.2;
}

.footer .badge-item:hover small {
    color: #adb5bd;
}

/* === 版權資訊樣式 === */
.footer .text-center {
    color: #6c757d;
    font-size: 0.85rem;
}

.footer .text-center a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .text-center a:hover {
    color: #007bff;
}

/* === 響應式設計 === */
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0 1rem 0;
    }
    
    .footer h5 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    /* === 手機版雙欄佈局 === */
    .footer .row > .col-md-3:nth-child(2),
    .footer .row > .col-md-3:nth-child(3) {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 10px;
    }
    
    .footer .row > .col-md-3:nth-child(2) .list-unstyled,
    .footer .row > .col-md-3:nth-child(3) .list-unstyled {
        text-align: left;
        padding-left: 0.5rem;
    }
    
    .footer .row > .col-md-3:nth-child(2) h5,
    .footer .row > .col-md-3:nth-child(3) h5 {
        text-align: left;
        padding-left: 0.5rem;
    }
    
    .footer .social-links {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .footer .social-links a {
        margin: 0 0.75rem;
    }
    
    .footer .contact-info {
        text-align: center;
    }
    
    .footer .list-unstyled {
        text-align: center;
    }
    
    .footer .list-unstyled a:hover {
        padding-left: 0;
    }
    
    .footer .security-badges {
        gap: 1rem;
    }
    
    .footer .badge-item {
        min-width: 100px;
        padding: 0.5rem;
    }
    
    .footer .badge-item i {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .footer {
        padding: 1.5rem 0 1rem 0;
    }
    
    .footer .col-md-3 {
        margin-bottom: 2rem;
    }
    
    /* === 小螢幕維持雙欄佈局 === */
    .footer .row > .col-md-3:nth-child(2),
    .footer .row > .col-md-3:nth-child(3) {
        width: 50% !important;
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 0 8px;
        margin-bottom: 1.5rem;
    }
    
    .footer .row > .col-md-3:nth-child(2) h5,
    .footer .row > .col-md-3:nth-child(3) h5 {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .footer .row > .col-md-3:nth-child(2) .list-unstyled a,
    .footer .row > .col-md-3:nth-child(3) .list-unstyled a {
        font-size: 0.85rem;
    }
    
    .footer .social-links a {
        font-size: 1.3rem;
    }
}

/* === 密碼切換按鈕樣式 === */
.input-group .btn-outline-secondary {
    border-color: #ced4da;
    color: #6c757d;
    transition: all 0.3s ease;
}

.input-group .btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.input-group .btn-outline-secondary:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
    border-color: #adb5bd;
}

.input-group .btn-outline-secondary i {
    font-size: 1rem;
}

/* === Modal 內的 input-group 樣式 === */
.modal-body .input-group .form-control {
    border-right: none;
}

.modal-body .input-group .btn {
    border-left: none;
    padding: 0.375rem 0.75rem;
}

.modal-body .input-group .btn:hover {
    background-color: transparent;
    border-color: #007bff;
    color: #007bff;
}

.modal-body .input-group .btn:focus {
    background-color: transparent;
    border-color: #007bff;
    color: #007bff;
    box-shadow: none;
}

/* === 國碼下拉選單樣式 === */
#AreaCode_modal {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    cursor: pointer;
}

#AreaCode_modal option {
    padding: 8px 12px;
    font-size: 14px;
    background-color: #ffffff;
    color: #495057;
}

#AreaCode_modal option:hover {
    background-color: #f8f9fa;
}

#AreaCode_modal option:checked {
    background-color: #007bff;
    color: #ffffff;
}

/* === 國家旗幟圖示優化 === */
#AreaCode_modal option {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
}

/* === 選單焦點樣式 === */
#AreaCode_modal:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
} 