﻿/* Hero */
.sharing-hero {
    background: linear-gradient(145deg, var(--primary-light) 0%, var(--background-color) 100%);
    padding: 120px 80px 70px 40px;
    /*margin-top: 70px;*/
    text-align: center;
    /*border-bottom: 1px solid rgba(0,0,0,0.03);*/
}

.sharing-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.text-highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sharing-subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    color: var(--gray);
    font-weight: 300;
}

@media (max-width: 768px) {
    .sharing-title {
        font-size: 2.2rem;
    }

    .sharing-subtitle {
        font-size: 1rem;
        padding: 0 20px;
        /*text-align: justify;*/
    }
}

/*search section*/
.sharing-search {
    padding: 40px 0 20px;
    /*background: linear-gradient(180deg, var(--background-color) 0%, #ffffff 100%);*/
}

.search-wrapper {
    position: relative;
    max-width: 700px;
    margin: 0 auto 30px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1.2rem;
    z-index: 2;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1.2rem 3.5rem 1.2rem 3.5rem; 
    border: 2px solid transparent;
    border-radius: 60px;
    font-size: 1.1rem;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

    .search-input:focus {
        outline: none;
        border-color: var(--primary-color);
        box-shadow: 0 15px 40px rgba(134, 166, 240, 0.15), 0 0 0 3px rgba(134, 166, 240, 0.2);
    }

.search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(134, 166, 240, 0.4);
}

    .search-button:hover {
        transform: translateY(-50%) scale(1.05);
        box-shadow: 0 8px 18px rgba(134, 166, 240, 0.6);
    }

    .search-button i {
        transition: transform 0.2s;
    }

    .search-button:hover i {
        transform: translateX(4px);
    }

.tag-filter {
    justify-self: center;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
    margin: 0 0 15px 0;
    list-style: none;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border: 2px solid var(--primary-light);
    border-radius: 40px;
    background: var(--white);
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
    user-select: none;
    line-height: 1;
}

    .filter-tag:hover {
        border-color: var(--primary-color);
        background: var(--primary-light);
        transform: translateY(-2px);
    }

    .filter-tag.active {
        background: var(--primary-color);
        border-color: var(--primary-dark);
        color: white;
        box-shadow: 0 4px 12px rgba(134, 166, 240, 0.3);
    }

.tag-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 5px;
}

.tag-control-btn {
    background: transparent;
    border: 1.5px solid var(--primary-dark);
    border-radius: 30px;
    padding: 6px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

    .tag-control-btn:hover {
        background: var(--primary-dark);
        color: white;
        border-color: var(--primary-dark);
        transform: translateY(-2px);
    }

.search-highlight {
    background-color: #fff3b0;
    font-weight: 600;
    border-radius: 4px;
    padding: 0 2px;
    box-shadow: 0 1px 4px rgba(255, 215, 0, 0.3);
}

@media (max-width: 768px) {
    .search-wrapper {
        max-width: 100%;
    }

    .search-input {
        padding: 1rem 3rem 1rem 3rem;
        font-size: 1rem;
    }

    .search-button {
        width: 42px;
        height: 42px;
        right: 5px;
    }

    .filter-tag {
        padding: 6px 16px;
        font-size: 0.85rem;
    }
}

/* Sharing Grid */
.sharing {
    padding: 60px 0;
    /*background: var(--white);*/
}

.sharing-grid {
    display: grid;
    /*grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));*/
    gap: 2rem;
    grid-template-columns: repeat(3, 1fr);
    /*margin-top: 3rem;*/
    position: relative;
}

.sharing-card {
    text-decoration: none;
    position: relative;
    background: var(--white);
    border-radius: 40px 40px 40px 8px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .sharing-card:hover {
        transform: translateY(-12px);
        box-shadow: var(--shadow-lg);
    }

.cat-tag {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s;
    width: fit-content;
    margin-bottom: 15px;
}

.article-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}
.article-intro {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 0.5rem 0 1.5rem;
    font-size: 0.85rem;
    color: var(--gray);
    border-top: 1px dashed rgba(134,166,240,0.6);
    padding-top: 1rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.article-meta i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* ========== COLOR-CODED CATEGORIES ========== */
.cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    width: fit-content;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    background: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

    /* Category-specific colors */
    .cat-tag.business,
    .cat-tag[data-cat="Business & Strategy"] {
        background: #1E3A8A;
        color: white;
    }

    .cat-tag.faq,
    .cat-tag[data-cat="FAQ Collections"] {
        background: #D97706;
        color: white;
    }

    .cat-tag.tech,
    .cat-tag[data-cat="Technology & Development"] {
        background: #0F766E;
        color: white;
    }

    .cat-tag.case,
    .cat-tag[data-cat="Case Study"] {
        background: #7C3AED;
        color: white;
    }

    .cat-tag.industry,
    .cat-tag[data-cat="Industry Insights"] {
        background: #334155;
        color: white;
    }

    .cat-tag.product,
    .cat-tag[data-cat="Product Spotlights"] {
        background: #BE185D;
        color: white;
    }

.article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px dashed rgba(134,166,240,0.4);
    padding-top: 1rem;
}
.meta-date {
    font-size: 0.8rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}
.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-dark);
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

    .time-badge i {
        font-size: 0.7rem;
        color: var(--primary-color);
    }

.sharing-card:hover .time-badge {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

    .sharing-card:hover .time-badge i {
        color: white;
    }

.article-meta span:has(.fa-clock) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 2px solid var(--primary-color);
    padding: 4px 12px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-dark);
}

@media (max-width: 1024px) {
    .sharing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .sharing-grid {
        grid-template-columns: 1fr;
    }
}