/* ==========================================================================
   BUTTONS & TRIGGERS
   ========================================================================== */
.search-trigger-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #57606f;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.search-trigger-btn:hover { color: #ff527b; background-color: #fff2f5; }

.account-trigger-btn {
    background: linear-gradient(135deg, #fff2f5 0%, #ffe5ec 100%);
    color: #ff527b;
    padding: 10px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(255, 82, 123, 0.05);
}
.account-trigger-btn:hover {
    background: linear-gradient(135deg, #ff527b 0%, #ff7697 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 82, 123, 0.2);
}

/* รวมโครงสร้างพื้นฐานของ Social Links */
.social-links-row, .footer-social-links { display: flex; }
.social-links-row { gap: 14px; }
.footer-social-links { gap: 12px; }

.social-links-row a, .footer-social-links a {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}
.social-links-row a {
    width: 40px; height: 40px;
    background-color: #232731; font-size: 16px;
}
.footer-social-links a {
    width: 36px; height: 36px;
    background: rgba(255, 255, 255, 0.03);
}
.social-links-row a:hover { background-color: #ff527b; transform: translateY(-3px) rotate(8deg); }
.footer-social-links a:hover { background: #ff527b; transform: translateY(-3px); }

/* ==========================================================================
   CARDS & WIDGET COMPONENTS
   ========================================================================== */
.trend-tag {
    color: #7f8c8d;
    padding: 2px 8px;
    border-radius: 20px;
    background: #fff5f7;
    font-size: 12px;
}
.trend-tag:hover {
    color: #ff527b;
    background: #ffe5ec;
    transform: scale(1.05);
}

.editors-slider-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}
.editors-slider-container::-webkit-scrollbar { display: none; }
.edi-slide-item { flex: 0 0 100%; scroll-snap-align: start; }

.editors-choice-fullwidth { margin-top: 30px; margin-bottom: 25px; }
.editors-custom-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; }
.edi-main-highlight { width: 100%; }

.edi-card-large {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 440px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}
.edi-img {
    width: 100%; height: 100%; background-size: cover; background-position: center;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.edi-card-large:hover .edi-img { transform: scale(1.04); }
.edi-overlay-content {
    position: absolute; bottom: 20px; left: 20px; right: 20px; padding: 30px;
    background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 16px; color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); z-index: 2;
}
.edi-card-large::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%); pointer-events: none; z-index: 1;
}
.edi-title { font-size: 24px; font-weight: 800; line-height: 1.4; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.edi-desc { font-size: 14.5px; color: #f1f2f6; font-weight: 400; text-shadow: 0 1px 5px rgba(0,0,0,0.2); }

/* ยุบรวมและแก้ไขสไตล์การ์ด Editor's Choice ขนาดเล็กที่เคยซ้ำซ้อนกันให้สมบูรณ์ */
.edi-side-list { display: flex; flex-direction: column; gap: 20px; }
.edi-card-small {
    display: grid; grid-template-columns: 160px 1fr; gap: 20px; background-color: #ffffff;
    border-radius: 18px; overflow: hidden; border: 1px solid rgba(241, 228, 230, 0.6);
    box-shadow: 0 8px 20px rgba(255, 82, 123, 0.01); transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
    height: calc(50% - 10px);
}
.edi-card-small:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(255, 82, 123, 0.06); border-color: rgba(255, 82, 123, 0.15); }
.edi-small-img-wrapper { width: 100%; height: 100%; overflow: hidden; }
.edi-small-img-wrapper img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 0.5s ease; }
.edi-card-small:hover .edi-small-img-wrapper img { transform: scale(1.04); }
.edi-small-content { padding: 20px 20px 20px 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; }
.edi-small-title { font-size: 15px; font-weight: 700; line-height: 1.5; color: #2c3e50; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.edi-small-title a { color: #2c3e50; text-decoration: none; }
.edi-card-small:hover .edi-small-title a { color: #ff527b; }

/* Forum Webboard Cards */
.forum-card {
    background: #ffffff; border: 1px solid rgba(241, 228, 230, 0.7); border-radius: 16px; padding: 24px;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: 0 8px 20px rgba(255, 82, 123, 0.01); transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.forum-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(30, 144, 255, 0.08); border-color: rgba(30, 144, 255, 0.15); }
.forum-title { font-size: 16px; font-weight: 700; line-height: 1.5; color: #2c3e50; margin-bottom: 20px; }
.forum-title a { transition: color 0.2s; }
.forum-title a:hover { color: #1e90ff; }
.forum-footer-meta { display: flex; gap: 16px; font-size: 12px; color: #a4b0be; border-top: 1px dashed #f1f2f6; padding-top: 14px; }

/* Popular Threads Widget List */
.popular-threads-widget { background-color: #ffffff; border-radius: 18px; padding: 24px; border: 1px solid rgba(241, 228, 230, 0.6); box-shadow: 0 8px 20px rgba(0,0,0,0.01); }
.widget-title { font-size: 16px; font-weight: 800; color: #2c3e50; display: flex; align-items: center; gap: 6px; }
.widget-title i { color: #ffa502; }
.top-threads-list { padding-left: 18px; margin-top: 16px; }
.top-threads-list li { font-size: 13.5px; margin-bottom: 14px; font-weight: 600; color: #485460; line-height: 1.5; }
.top-threads-list li::marker { color: #ff527b; font-weight: 800; }
.top-threads-list li a:hover { color: #ff527b; }

/* Marketplace Sidebar CTA Widget */
.marketplace-cta-widget {
    background: linear-gradient(135deg, #2ed573 0%, #1abc9c 100%); color: #ffffff;
    border-radius: 18px; padding: 28px; position: relative; overflow: hidden;
    box-shadow: 0 15px 30px rgba(46, 213, 115, 0.15);
}
.marketplace-cta-widget::before {
    content: ''; position: absolute; top: -50px; right: -50px; width: 130px; height: 130px;
    background: rgba(255,255,255,0.1); border-radius: 50%;
}
.market-banner-content .market-sub {
    font-size: 11px; text-transform: uppercase; font-weight: 700;
    background-color: rgba(255, 255, 255, 0.25); padding: 3px 10px; border-radius: 6px; letter-spacing: 0.5px; display: inline-block;
}
.market-banner-content h3 { font-size: 20px; margin-top: 14px; margin-bottom: 10px; font-weight: 800; line-height: 1.4; }
.market-banner-content p { font-size: 13.5px; opacity: 0.95; margin-bottom: 22px; font-weight: 400; }
.btn-market-join {
    display: block; text-align: center; background-color: #ffffff; color: #26af5f;
    padding: 12px 16px; border-radius: 12px; font-weight: 700; font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06); transition: all 0.3s ease;
}
.btn-market-join:hover { transform: scale(1.02); box-shadow: 0 6px 20px rgba(0,0,0,0.12); background-color: #fbfbfb; }

/* Quick Shortcuts Components Gateway Grid */
.quick-gateway-section { margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(241, 228, 230, 0.5); }
.gateway-intro h1 { font-size: 28px; font-weight: 800; color: #2c3e50; margin-bottom: 8px; letter-spacing: -0.5px; }
.gateway-intro p { font-size: 14.5px; color: #7f8c8d; margin-bottom: 30px; }
.gateway-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gate-card {
    background: #ffffff; border: 1px solid rgba(241, 228, 230, 0.7); padding: 26px 20px; border-radius: 20px;
    box-shadow: 0 6px 20px rgba(255, 82, 123, 0.01); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.gate-card:hover { transform: translateY(-6px); box-shadow: 0 15px 30px rgba(255, 82, 123, 0.08); border-color: rgba(255, 82, 123, 0.15); }
.gate-icon { font-size: 28px; margin-bottom: 14px; transition: transform 0.3s ease; }
.gate-card:hover .gate-icon { animation: smoothBounce 0.6s ease infinite alternate; }
.card-article .gate-icon { color: #ff4757; }
.card-forum .gate-icon { color: #1e90ff; }
.card-market .gate-icon { color: #2ed573; }
.card-pr .gate-icon { color: #ffa502; }
.gate-card h3 { font-size: 16px; font-weight: 700; color: #2c3e50; margin-bottom: 8px; }
.gate-card p { font-size: 12.5px; color: #95a5a6; line-height: 1.5; }

/* Premium Hot Deals Exclusive Coupon Widget */
.hot-deals-widget { background: #ffffff; border-radius: 20px; padding: 24px; border: 1px solid rgba(255, 82, 123, 0.08); box-shadow: 0 10px 30px rgba(255, 82, 123, 0.02); margin-bottom: 25px; }
.deals-premium-list { display: flex; flex-direction: column; gap: 18px; margin-top: 16px; }
.deal-card-premium { display: grid; grid-template-columns: 105px 1fr; gap: 16px; background: #fdfbfc; border: 1px dashed rgba(255, 82, 123, 0.25); border-radius: 14px; padding: 12px; position: relative; transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); }
.deal-card-premium:hover { transform: translateY(-2px); background: #ffffff; border-style: solid; border-color: #ff527b; box-shadow: 0 12px 25px rgba(255, 82, 123, 0.08); }
.deal-visual { position: relative; width: 100%; height: 105px; border-radius: 10px; overflow: hidden; }
.deal-img-bg { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.5s ease; }
.deal-card-premium:hover .deal-img-bg { transform: scale(1.06); }
.deal-discount-badge { position: absolute; top: 6px; left: 6px; background: linear-gradient(135deg, #ff527b, #ff7f50); color: #ffffff; font-size: 10px; font-weight: 800; padding: 3px 6px; border-radius: 6px; box-shadow: 0 4px 10px rgba(255, 82, 123, 0.3); letter-spacing: 0.5px; }
.deal-info-premium { display: flex; flex-direction: column; justify-content: space-between; }
.deal-provider { font-size: 11px; color: #ff527b; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.deal-provider i { font-size: 10px; }
.deal-title-text { font-size: 13.5px; font-weight: 700; line-height: 1.4; color: #2c3e50; margin: 4px 0 8px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal-card-premium:hover .deal-title-text a { color: #ff527b; }
.deal-price-wrapper { display: flex; justify-content: space-between; align-items: flex-end; }
.price-group { display: flex; flex-direction: column; line-height: 1.1; }
.price-now { font-size: 17px; font-weight: 800; color: #e74c3c; }
.price-old { font-size: 11px; text-decoration: line-through; color: #95a5a6; margin-top: 2px; }
.btn-get-deal { background: #2c3e50; color: #ffffff; font-size: 11.5px; font-weight: 600; padding: 5px 12px; border-radius: 8px; transition: all 0.2s ease; }
.deal-card-premium:hover .btn-get-deal { background: #ff527b; box-shadow: 0 5px 12px rgba(255, 82, 123, 0.2); }

/* ==========================================================================
   SYSTEM PAGINATION INTERFACE
   ========================================================================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}
.page-btn {
    width: 42px; height: 42px; background-color: #fff; border: 1px solid #f1f2f6;
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}
.page-btn.active, .page-btn:hover {
    background: linear-gradient(135deg, #ff527b 0%, #ff7697 100%);
    color: #fff; border-color: #ff527b; transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 82, 123, 0.2);
}
.page-btn.next-prev {
    width: auto; padding: 0 18px; gap: 6px;
}