/* Top Bar with Social Media Icons Styling */
.top-bar {
    background: linear-gradient(135deg, #3b4a97 0%, #2d3a7a 100%);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.top-bar .left-content,
.top-bar .right-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar .right-content {
    gap: 12px;
}

/* Force display of Font Awesome icons in top bar */
.top-bar i[class*="fa-"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: inherit !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
}

/* Social Media Icon Links - With brand colors and perfect centering */
.top-bar .right-content a[title="Facebook"],
.top-bar .right-content a[title="LINE"],
.top-bar .right-content a[title="YouTube"],
.top-bar .right-content a[title="TikTok"] {
    color: white;
    font-size: 16px;
    margin: 0;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.top-bar .right-content a[title="Facebook"] {
    background: #1877f2;
}

.top-bar .right-content a[title="Facebook"]:hover {
    background: #165dd9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(24, 119, 242, 0.3);
}

.top-bar .right-content a[title="LINE"] {
    background: #00c300;
}

.top-bar .right-content a[title="LINE"]:hover {
    background: #00a300;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 195, 0, 0.3);
}

.top-bar .right-content a[title="YouTube"] {
    background: #ff0000;
}

.top-bar .right-content a[title="YouTube"]:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.top-bar .right-content a[title="TikTok"] {
    background: #000000;
}

.top-bar .right-content a[title="TikTok"]:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}
/* Perfect icon centering */
.top-bar .right-content a[title="Facebook"] i,
.top-bar .right-content a[title="LINE"] i,
.top-bar .right-content a[title="YouTube"] i,
.top-bar .right-content a[title="TikTok"] i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Language flags container */
.top-bar .right-content > div {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Language flag buttons */
.pro-topbar-flag {
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
    padding: 3px 7px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.65;
}

.pro-topbar-flag svg {
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    width: 22px;
    height: auto;
}

.pro-topbar-flag:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.55);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0.9;
}

/* Active / currently selected language */
.pro-topbar-flag.active {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
    opacity: 1;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .top-bar .right-content a[title="Facebook"],
    .top-bar .right-content a[title="LINE"],
    .top-bar .right-content a[title="YouTube"],
    .top-bar .right-content a[title="TikTok"] {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        padding: 8px 0;
    }

    .top-bar .container {
        gap: 12px;
    }

    .top-bar .right-content a[title="Facebook"],
    .top-bar .right-content a[title="LINE"],
    .top-bar .right-content a[title="YouTube"],
    .top-bar .right-content a[title="TikTok"] {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .top-bar button[title="ภาษาไทย"],
    .top-bar button[title="English"] {
        padding: 3px 6px;
    }
}

@media (max-width: 480px) {
    .top-bar .container {
        gap: 8px;
    }

    .top-bar .right-content a[title="Facebook"],
    .top-bar .right-content a[title="LINE"],
    .top-bar .right-content a[title="YouTube"],
    .top-bar .right-content a[title="TikTok"] {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}
