/*
Theme Name: WhatsApp
Theme URI: https://zhcn-ws.com
Author: WhatsApp Team
Author URI: https://zhcn-ws.com
Description: WhatsApp官网下载主题 - 一个简洁、现代的WhatsApp下载官网主题
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: whatsapp
Tags: one-column, two-columns, custom-header, custom-menu, featured-images, translation-ready
*/

body {
    font-family: 'Segoe UI', sans-serif;
}

/* WordPress admin bar fix */
html {
    margin-top: 32px !important;
}

@media screen and (max-width: 782px) {
    html {
        margin-top: 46px !important;
    }
}

/* Fix header position when admin bar is present */
.admin-bar header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    .admin-bar header {
        top: 46px !important;
    }
}

.admin-bar #mobileMenu {
    top: calc(32px + 60px) !important;
}

@media screen and (max-width: 782px) {
    .admin-bar #mobileMenu {
        top: calc(46px + 60px) !important;
    }
}

.carousel-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

.carousel-item {
    flex: 0 0 auto;
    width: 500px;
    margin-right: 20px;
}

@media (max-width: 768px) {
    .carousel-item {
        width: 240px;
        margin-right: 16px;
    }
}

@media (max-width: 480px) {
    .carousel-item {
        width: 200px;
        margin-right: 12px;
    }
}

.nav-button {
    transition: all 0.2s ease;
}

.nav-button:hover {
    background-color: #f3f4f6;
    transform: scale(1.05);
}

.nav-button:active {
    transform: scale(0.95);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-button:disabled:hover {
    background-color: white;
    transform: none;
}

.content {
    line-height: 1.75;
}

.content img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.content p {
    margin-bottom: 1rem;
}

.content h2, .content h3, .content h4, .content h5 {
    margin-bottom: 1rem;
    font-weight: bold;
    color: #000;
    font-size: 1.25rem;
}

.content a {
    color: #0026ff;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .content h2, .content h3, .content h4, .content h5 {
        font-size: 1.5rem;
    }
}

.content iframe {
    width: 100%;
    height: 250px;
    max-width: 100%;
}

@media (min-width: 768px) {
    .content iframe {
        height: 400px;
    }
}

.friendship-links {
    margin-top: 20px;
}

.toggle-links {
    background: #333;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.links-container {
    display: none;
    margin-top: 20px;
}

.links-container.show {
    display: block;
}

.links-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.links-title {
    font-weight: bold;
    color: white;
}

.links-count {
    color: #888;
    font-size: 14px;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s;
}

.link-item:hover {
    background: #3a3a3a;
}

.link-logo {
    font-size: 24px;
    margin-bottom: 8px;
    color: #25d366;
}

.link-name {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.link-url {
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

#faqsu-faq-list {
    background: #F0F4F8;
    border-radius: 5px;
    padding: 15px;
}

#faqsu-faq-list .faqsu-faq-single {
    background: #fff;
    padding: 15px 15px 20px;
    box-shadow: 0px 0px 10px #d1d8dd, 0px 0px 40px #ffffff;
    border-radius: 5px;
    margin-bottom: 1rem;
}

#faqsu-faq-list .faqsu-faq-single:last-child {
    margin-bottom: 0;
}

#faqsu-faq-list .faqsu-faq-question {
    border-bottom: 1px solid #F0F4F8;
    padding-bottom: 0.825rem;
    margin-bottom: 0.825rem;
    position: relative;
    padding-right: 40px;
}

#faqsu-faq-list .faqsu-faq-question:after {
    content: "?";
    position: absolute;
    right: 0;
    top: 0;
    width: 30px;
    line-height: 30px;
    text-align: center;
    color: #c6d0db;
    background: #F0F4F8;
    border-radius: 40px;
    font-size: 20px;
}
