/* ==========================================
   PRODUCT SHARE & CONTACT BUTTONS
   ========================================== */

/* Contact Button */
.fbn-contact-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    min-width: 160px;
    backdrop-filter: blur(10px);
}

.fbn-contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.fbn-contact-btn:hover::before {
    left: 100%;
}

.fbn-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: white;
    text-decoration: none;
}

.fbn-contact-btn i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Share Button */
.fbn-share-btn {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--primary-color);
    border: 2px solid rgba(13, 98, 112, 0.1);
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(13, 98, 112, 0.08);
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

.fbn-share-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Quick Action Buttons */
.fbn-quick-action-btn {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid rgba(13, 98, 112, 0.1);
    color: var(--primary-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(13, 98, 112, 0.08);
}

.fbn-quick-action-btn:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* ==========================================
   SHARE MODAL
   ========================================== */

.fbn-share-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.fbn-share-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
}

.fbn-share-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 0;
    position: relative;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.fbn-share-modal-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fbn-share-modal-header h6 {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 18px;
}

.fbn-share-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(13, 98, 112, 0.1);
    color: var(--text-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fbn-share-modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
    transform: scale(1.1);
}

.fbn-share-modal-body {
    padding: 24px;
}

/* Share Buttons */
.fbn-share-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 14px;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    color: var(--text-dark);
    font-weight: 600;
    position: relative;
    overflow: hidden;
    font-size: 15px;
}

.fbn-share-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.4s ease;
    opacity: 0.1;
}

.fbn-share-button:hover::before {
    left: 100%;
}

.fbn-share-button i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 14px;
    color: white;
    transition: var(--transition);
}

/* Platform specific styles */
.fbn-share-button.facebook i {
    background: #1877f2;
}
.fbn-share-button.facebook::before {
    background: linear-gradient(135deg, #1877f2, #42a5f5);
}
.fbn-share-button.facebook:hover {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.1), rgba(66, 165, 245, 0.1));
    border-color: rgba(24, 119, 242, 0.2);
    color: #1877f2;
    text-decoration: none;
}

.fbn-share-button.zalo i {
    background: #0068ff;
}
.fbn-share-button.zalo::before {
    background: linear-gradient(135deg, #0068ff, #42a5f5);
}
.fbn-share-button.zalo:hover {
    background: linear-gradient(135deg, rgba(0, 104, 255, 0.1), rgba(66, 165, 245, 0.1));
    border-color: rgba(0, 104, 255, 0.2);
    color: #0068ff;
    text-decoration: none;
}

.fbn-share-button.twitter i {
    background: #1da1f2;
}
.fbn-share-button.twitter::before {
    background: linear-gradient(135deg, #1da1f2, #42a5f5);
}
.fbn-share-button.twitter:hover {
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.1), rgba(66, 165, 245, 0.1));
    border-color: rgba(29, 161, 242, 0.2);
    color: #1da1f2;
    text-decoration: none;
}

.fbn-share-button.linkedin i {
    background: #0077b5;
}
.fbn-share-button.linkedin::before {
    background: linear-gradient(135deg, #0077b5, #42a5f5);
}
.fbn-share-button.linkedin:hover {
    background: linear-gradient(135deg, rgba(0, 119, 181, 0.1), rgba(66, 165, 245, 0.1));
    border-color: rgba(0, 119, 181, 0.2);
    color: #0077b5;
    text-decoration: none;
}

.fbn-share-button.telegram i {
    background: #0088cc;
}
.fbn-share-button.telegram::before {
    background: linear-gradient(135deg, #0088cc, #42a5f5);
}
.fbn-share-button.telegram:hover {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.1), rgba(66, 165, 245, 0.1));
    border-color: rgba(0, 136, 204, 0.2);
    color: #0088cc;
    text-decoration: none;
}

.fbn-share-button.copy-link i {
    background: var(--primary-color);
}
.fbn-share-button.copy-link::before {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}
.fbn-share-button.copy-link:hover {
    background: linear-gradient(135deg, rgba(13, 98, 112, 0.1), rgba(26, 122, 138, 0.1));
    border-color: rgba(13, 98, 112, 0.2);
    color: var(--primary-color);
}

/* ==========================================
   PRODUCT CONTENT STYLING
   ========================================== */

.fbn-san-pham-chi-tiet-des {
    max-height: 600px;
    overflow: hidden;
    transition: max-height 0.8s ease;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 16px;
}

.fbn-san-pham-chi-tiet-des.collapsehaha {
    max-height: none;
}

.fbn-san-pham-chi-tiet-des h1,
.fbn-san-pham-chi-tiet-des h2,
.fbn-san-pham-chi-tiet-des h3,
.fbn-san-pham-chi-tiet-des h4,
.fbn-san-pham-chi-tiet-des h5,
.fbn-san-pham-chi-tiet-des h6 {
    color: var(--primary-color);
    font-weight: 700;
    margin: 32px 0 20px;
    position: relative;
    padding-left: 20px;
}

.fbn-san-pham-chi-tiet-des h2 {
    font-size: 24px;
    border-left: 4px solid var(--accent-color);
    background: linear-gradient(135deg, rgba(13, 98, 112, 0.05), transparent);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    margin: 40px 0 24px;
}

.fbn-san-pham-chi-tiet-des h3 {
    font-size: 20px;
}

.fbn-san-pham-chi-tiet-des h4 {
    font-size: 18px;
}

.fbn-san-pham-chi-tiet-des p {
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-dark);
    line-height: 1.8;
}

/* Tables */
.fbn-san-pham-chi-tiet-des table {
    width: 100%;
    margin: 32px 0;
    border-collapse: collapse;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(13, 98, 112, 0.1);
    border: 1px solid rgba(13, 98, 112, 0.1);
}

.fbn-san-pham-chi-tiet-des table th {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 18px 24px;
    font-weight: 700;
    text-align: left;
    font-size: 16px;
    border: none;
}

.fbn-san-pham-chi-tiet-des table td {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(13, 98, 112, 0.08);
    vertical-align: top;
    font-size: 15px;
    color: var(--text-dark);
}

.fbn-san-pham-chi-tiet-des table tr:nth-child(even) td {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.5), rgba(226, 232, 240, 0.3));
}

.fbn-san-pham-chi-tiet-des table tr:hover td {
    background: linear-gradient(135deg, rgba(13, 98, 112, 0.05), rgba(26, 122, 138, 0.05));
    transform: scale(1.01);
    transition: var(--transition);
}

.fbn-san-pham-chi-tiet-des table tr:last-child td {
    border-bottom: none;
}

/* Lists */
.fbn-san-pham-chi-tiet-des ul,
.fbn-san-pham-chi-tiet-des ol {
    margin: 24px 0;
    padding-left: 0;
}

.fbn-san-pham-chi-tiet-des li {
    margin-bottom: 12px;
    padding-left: 32px;
    position: relative;
    line-height: 1.7;
    color: var(--text-dark);
}

.fbn-san-pham-chi-tiet-des ul li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 12px;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--accent-color), #ff9500);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(245, 130, 32, 0.3);
}

.fbn-san-pham-chi-tiet-des ol {
    counter-reset: item;
}

.fbn-san-pham-chi-tiet-des ol li::before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(13, 98, 112, 0.3);
}

/* Blockquotes */
.fbn-san-pham-chi-tiet-des blockquote {
    margin: 32px 0;
    padding: 24px 32px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 6px solid var(--accent-color);
    border-radius: 0 16px 16px 0;
    position: relative;
    font-style: italic;
    color: var(--primary-dark);
    font-size: 17px;
    line-height: 1.8;
    box-shadow: 0 8px 32px rgba(13, 98, 112, 0.08);
}

.fbn-san-pham-chi-tiet-des blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 48px;
    color: var(--accent-color);
    font-family: Georgia, serif;
    line-height: 1;
}

.fbn-san-pham-chi-tiet-des blockquote p {
    margin-bottom: 0;
    color: inherit;
}

/* Links */
.fbn-san-pham-chi-tiet-des a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
    transition: var(--transition);
    position: relative;
    background: linear-gradient(135deg, rgba(13, 98, 112, 0.08), transparent);
}

.fbn-san-pham-chi-tiet-des a:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 98, 112, 0.3);
}

/* View More Button */
.fbn-xem-them-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.fbn-xem-them-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.fbn-xem-them-btn:hover::before {
    left: 100%;
}

.fbn-xem-them-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Content gradient fade effect */
.fbn-san-pham-chi-tiet-des:not(.collapsehaha)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(transparent, white);
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fbn-contact-btn,
    .fbn-share-btn {
        min-width: auto;
        width: 100%;
        justify-content: center;
    }
    
    .fbn-san-pham-chi-tiet-des {
        font-size: 15px;
        max-height: 400px;
    }
    
    .fbn-san-pham-chi-tiet-des h2 {
        font-size: 20px;
        padding: 12px 16px;
    }
    
    .fbn-san-pham-chi-tiet-des table th,
    .fbn-san-pham-chi-tiet-des table td {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .fbn-share-modal-content {
        margin: 20px;
        max-width: none;
        width: auto;
    }
}

/* Animation utilities */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fbn-product-share-contact-wrapper {
    animation: fadeInUp 0.6s ease-out;
}

.fbn-san-pham-chi-tiet-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
} 