/**
 * Footer Styles - Unified across all pages
 * Based on footer styles from components.css
 * 
 * @package LMS_Theme
 */

/* ==========================================================================
   Footer Components
   ========================================================================== */

.lms-site-footer {
    background: #1F2A24;
    color: #FFFFFF;
    margin-top: 72px;
}

.lms-footer-main {
    padding: var(--lms-spacing-3xl) 0;
}

.lms-footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--lms-spacing-2xl);
}

.lms-footer-widget-title {
    color: #FFFFFF;
    margin-bottom: 24px;
    font-size: 18px;
}

.lms-footer-widget p {
    color: #dee2e6;
    line-height: 1.75;
}

.lms-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lms-footer-menu li {
    margin-bottom: 8px;
}

.lms-footer-menu a {
    color: #dee2e6;
    text-decoration: none;
    transition: all 0.15s ease;
}

.lms-footer-menu a:hover {
    color: #FFFFFF;
}

.lms-social-links {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.lms-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #2B3A31;
    color: #FFFFFF;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.lms-social-link:hover {
    background: #2E7D32;
    color: #FFFFFF;
    text-decoration: none;
}

.lms-newsletter-form {
    margin-top: 24px;
}

.lms-newsletter-form .lms-form-group {
    display: flex;
    gap: 8px;
}

.lms-newsletter-form .lms-form-input {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid #66756C;
    border-radius: 8px;
    background: #2B3A31;
    color: #FFFFFF;
}

.lms-newsletter-form .lms-form-input::placeholder {
    color: #ced4da;
}

.lms-newsletter-form .lms-form-input:focus {
    outline: none;
    border-color: var(--lms-primary);
}

.lms-footer-bottom {
    background: #2B3A31;
    padding: 24px 0;
    border-top: 1px solid var(--lms-gray-700);
}

.lms-footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lms-footer-copyright p {
    margin: 0;
    color: #ced4da;
    font-size: 14px;
}

.lms-footer-bottom-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 24px;
}

.lms-footer-bottom-menu-list a {
    color: #ced4da;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s ease;
}

.lms-footer-bottom-menu-list a:hover {
    color: #FFFFFF;
}

/* Back to Top Button */
.lms-back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 50px;
    height: 50px;
    background: #2E7D32;
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.lms-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lms-back-to-top:hover {
    background: #1B5E20;
    transform: translateY(-2px);
}

/* ==========================================================================
   Notification System
   ========================================================================== */

.lms-notifications-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
}

.lms-notification {
    background: #FFFFFF;
    border: 1px solid #E9E3D9;
    border-radius: 8px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: var(--lms-spacing-lg);
    margin-bottom: 16px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.lms-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.lms-notification.success {
    border-left: 4px solid #2E7D32;
}

.lms-notification.error {
    border-left: 4px solid #dc3545;
}

.lms-notification.warning {
    border-left: 4px solid #D84315;
}

.lms-notification.info {
    border-left: 4px solid #17a2b8;
}

.lms-notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.lms-notification-title {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.lms-notification-close {
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.lms-notification-close:hover {
    background: #FAF6F0;
    color: #495057;
}

.lms-notification-message {
    color: #66756C;
    margin: 0;
    font-size: 14px;
}

/* ==========================================================================
   Footer Responsive - Moved to responsive.css
   ========================================================================== */

/* Print Styles */
@media print {
    .lms-site-footer,
    .lms-back-to-top,
    .lms-notifications-container {
        display: none !important;
    }
}

/* Cột liên hệ ở chân trang */
.lms-footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.lms-footer-contact i { width: 18px; margin-top: 4px; color: #8BC34A; text-align: center; }
