/*
Theme Name: Snapthreads
Description: sssthreads.cc video downloader makes it simple to save your favorite videos from Threads social media. Fast, reliable, and completely free to use.
Version: 1.0
Author: Dai Nguyen
Text Domain: snapthreads
*/

/* Import Google Fonts - Roboto */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* Root Variables */
:root {
    --primary-color: #007bff;
    --primary-rgb: 0, 74, 173;
    --font-family: "Inter", sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: #F5F5F5;
    color: #333;
}

/* Override Bootstrap Primary Color */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: rgba(var(--primary-rgb), 0.8);
    border-color: rgba(var(--primary-rgb), 0.8);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Navbar Styles */
.navbar-brand img {
    max-height: 40px;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

body {
    padding-top: 58px;
}

.h1, h1 {
    font-size: 2rem;
}

.h2, h2 {
    font-size: 1.8rem;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
}

/* Footer Styles */
.footer {
    background-color: #f8f9fa;
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-menu li {
    margin: 0 1rem;
}

.footer-menu a {
    color: #6c757d;
    text-decoration: none;
}

.footer-menu a:hover {
    color: var(--primary-color);
}

.app-links a {
    display: inline-block;
    margin: 0 0.5rem;
}

.app-links img {
    height: 40px;
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0.5rem 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

/* FAQ Styles */
.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
}

.faq-question {
    background-color: #f8f9fa;
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid #dee2e6;
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
}

.faq-answer {
    padding: 1rem;
    display: none;
}

.faq-answer.active {
    display: block;
}

.faq-answer ul, .faq-answer ol {
    margin: 15px 0;
    padding-left: 25px;
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.faq-answer h4 {
    font-size: 1.2rem;
}

.related-keywords {
    margin-bottom: 20px;
}

.related-keywords h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
}

.keyword {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 5px 10px;
    margin: 3px;
    border-radius: 15px;
    font-size: 14px;
    text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-wrapper {
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer-menu ul {
        flex-direction: column;
        text-align: center;
    }

    .footer-menu li {
        margin: 0.25rem 0;
    }
}

/* Search Form */
.search-form {
    max-width: 400px;
}

/* Post */
.recent-posts-section h5.card-title {
    font-size: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Post meta */
.post-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.post-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Archive styles */
.archive-header {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

/* Language Switcher Dropdown Styles */
.menu-item-language .dropdown-toggle {
    position: relative;
}

.menu-item-language .dropdown-toggle::after {
    margin-left: 0.5rem;
}

.menu-item-language .dropdown-menu {
    min-width: 120px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.menu-item-language .dropdown-item {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.menu-item-language .dropdown-item:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

.menu-item-language .dropdown-item.active {
    background-color: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
    font-weight: 500;
}

.menu-item-language .flag-icon {
    width: 16px;
    height: 12px;
    background-size: cover;
    display: inline-block;
    border-radius: 2px;
}

.navbar-nav .dropdown-menu {
    overflow-y: scroll;
    height: 300px;
}

/* Mobile responsive */
@media (max-width: 767.98px) {
    .menu-item-language .dropdown-menu {
        position: static !important;
        transform: none !important;
        border: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.05);
        margin-top: 0.5rem;
    }

    .navbar-nav .dropdown-menu {
        padding: 0 10px;
    }
}