/**
 * TopVision Partners - Frontend Styles
 * 
 * @package TopVision_Partners
 */

/* Container */
.tvp-partners-section {
    padding: 0px 20px;
}

.tvp-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Section Header */
.tvp-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.tvp-section-header h2 {
    font-size: 2.2rem;
    color: #3a4a6b;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.tvp-section-header p {
    color: #7889a8;
    font-size: 1rem;
    margin: 0;
}

/* Logo Wrapper */
.tvp-logo-wrapper {
    position: relative;
    overflow: hidden;
}

/* Logo Grid */
.tvp-logo-grid {
    display: grid;
    grid-template-columns: repeat(var(--tvp-columns, 8), 1fr);
    gap: 25px 20px;
    padding: 10px;
}

/* Logo Item */
.tvp-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    border-radius: 12px;
    text-decoration: none;
    position: relative;
}

.tvp-logo-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(100, 120, 180, 0.12);
}

/* Logo Image */
.tvp-logo-item img {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.tvp-logo-item:hover img {
    filter: sepia(0%) saturate(100%) brightness(1);
    opacity: 1;
    transform: scale(1.05);
}

/* Logo Name */
.tvp-logo-name {
    margin-top: 10px;
    font-size: 0.68rem;
    color: #6a7a9a;
    text-align: center;
    line-height: 1.4;
    max-width: 100px;
}


/* Blur Overlay */
.tvp-blur-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(
        to bottom,
        rgba(238, 242, 247, 0) 0%,
        rgba(238, 242, 247, 0.4) 25%,
        rgba(238, 242, 247, 0.75) 50%,
        rgba(238, 242, 247, 0.95) 75%,
        rgba(238, 242, 247, 1) 100%
    );
    pointer-events: none;
    z-index: 10;
    transition: all 0.6s ease;
}

.tvp-blur-overlay.tvp-hidden {
    opacity: 0;
    visibility: hidden;
}

/* View More Container */
.tvp-view-more-container {
    text-align: center;
    margin-top: -30px;
    position: relative;
    z-index: 20;
    transition: all 0.4s ease;
}

.tvp-view-more-container.tvp-expanded {
    margin-top: 20px;
}

/* View More Button */
.tvp-view-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: linear-gradient(135deg, #6b7fba 0%, #8b6bba 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(107, 127, 186, 0.4);
    font-family: inherit;
}

.tvp-view-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(107, 127, 186, 0.5);
    background: linear-gradient(135deg, #5a6ea9 0%, #7a5aa9 100%);
    color: white;
}

.tvp-view-more-btn:active {
    transform: translateY(-1px);
}

.tvp-view-more-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s ease;
}

.tvp-view-more-btn.tvp-expanded svg {
    transform: rotate(180deg);
}

/* No Partners Message */
.tvp-no-partners {
    text-align: center;
    padding: 40px;
    color: #7889a8;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .tvp-logo-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 20px 15px;
    }
}

@media (max-width: 992px) {
    .tvp-logo-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px 12px;
    }

    .tvp-logo-item img {
        max-width: 70px;
        max-height: 60px;
    }
}

@media (max-width: 768px) {
    .tvp-logo-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px 10px;
    }

    .tvp-section-header h2 {
        font-size: 1.7rem;
    }

    .tvp-logo-item img {
        max-width: 70px;
        max-height: 60px;
    }

    .tvp-logo-name {
        font-size: 0.6rem;
        max-width: 80px;
    }

    .tvp-blur-overlay {
        height: 120px;
    }
}

@media (max-width: 576px) {
    .tvp-partners-section {
        padding: 25px 15px;
    }

    .tvp-logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px 8px;
    }

    .tvp-logo-item {
        padding: 12px 8px;
    }

    .tvp-logo-item img {
        max-width: 75px;
        max-height: 65px;
    }

    .tvp-section-header h2 {
        font-size: 1.4rem;
    }

    .tvp-view-more-btn {
        padding: 12px 28px;
        font-size: 0.85rem;
    }

    .tvp-blur-overlay {
        height: 100px;
    }
}

@media (max-width: 400px) {
    .tvp-logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .tvp-logo-item img {
        max-width: 75px;
        max-height: 75px;
    }
}