/**
 * SEALS Portfolio Services Teams - Widget Styles
 * 
 * @package SEALS_Portfolio_Services_Teams
 * @version 1.1
 */

/* === PORTFOLIO STYLES === */
.seals-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.seals-portfolio-item {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 1px 8px #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.seals-portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.seals-portfolio-item h3 {
    margin: 10px 0 5px;
    font-size: 1.2em;
    font-weight: 600;
}

.seals-portfolio-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.seals-portfolio-skills {
    font-size: 12px;
    color: #555;
    margin-bottom: 5px;
}

.seals-portfolio-skills span {
    background: #eef;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 3px;
    display: inline-block;
}

.seals-portfolio-desc {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

/* === SERVICES STYLES === */
.seals-services-carousel-wrap {
    position: relative;
    margin: 0 -20px 24px -20px;
    padding: 0 30px;
    overflow: visible;
}

.seals-services-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: #21c8f6 #f2f7fb;
}

.seals-services-carousel::-webkit-scrollbar {
    height: 8px;
}

.seals-services-carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #21c8f6, #637bff);
    border-radius: 4px;
}

.seals-service-card {
    background: linear-gradient(135deg, #21c8f6 0, #637bff 100%);
    color: #222;
    border-radius: 22px;
    min-width: 260px;
    max-width: 280px;
    box-shadow: 0 2px 20px rgba(33, 200, 246, 0.08), 0 1.5px 9px #a6c1ee22;
    padding: 28px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    scroll-snap-align: start;
    transition: transform 0.22s cubic-bezier(0.5, 0.19, 0.77, 0.71), box-shadow 0.22s;
    will-change: transform;
}

.seals-service-card:hover {
    transform: scale(1.06) translateY(-6px) rotateZ(-1.2deg);
    box-shadow: 0 8px 28px #3333bb15, 0 1.5px 9px #21c8f655;
    z-index: 2;
}

.seals-service-card h3 {
    margin: 12px 0 5px 0;
    font-size: 1.12em;
    font-weight: 800;
    text-align: center;
    line-height: 1.15;
}

.seals-service-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
    text-align: center;
}

.seals-service-features {
    font-size: 13px;
    color: #444;
    margin-bottom: 5px;
    list-style: disc;
    margin-left: 16px;
}

.seals-service-desc {
    font-size: 13px;
    color: #111;
    text-align: center;
    min-height: 38px;
    margin-bottom: 7px;
}

/* === TEAMS STYLES === */
.seals-teams-carousel-wrap {
    position: relative;
    margin: 0 -20px 24px -20px;
    padding: 0 30px;
    overflow: visible;
}

.seals-teams-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: #21c8f6 #f2f7fb;
}

.seals-teams-carousel::-webkit-scrollbar {
    height: 8px;
}

.seals-teams-carousel::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #21c8f6, #637bff);
    border-radius: 4px;
}

.seals-team-card {
    background: linear-gradient(135deg, #21c8f6 0, #637bff 100%);
    color: #fff;
    border-radius: 22px;
    min-width: 260px;
    max-width: 280px;
    box-shadow: 0 2px 20px rgba(33, 200, 246, 0.15), 0 1.5px 9px #a6c1ee22;
    padding: 28px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    scroll-snap-align: start;
    transition: transform 0.22s cubic-bezier(0.5, 0.19, 0.77, 0.71), box-shadow 0.22s;
    will-change: transform;
}

.seals-team-card:hover {
    transform: scale(1.06) translateY(-6px) rotateZ(-1.2deg);
    box-shadow: 0 8px 28px #3333bb35, 0 1.5px 9px #21c8f688;
    z-index: 2;
}

.seals-team-avatar {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 1.5px 9px #fff8;
    margin-bottom: 16px;
    border: 3.5px solid #fff;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seals-team-card h3 {
    margin: 0 0 6px 0;
    font-size: 1.22em;
    font-weight: 800;
    text-align: center;
    line-height: 1.15;
}

.seals-team-meta {
    font-size: 15px;
    color: #e4eef6;
    font-weight: 600;
    margin-bottom: 7px;
    text-align: center;
}

.seals-team-skills {
    margin-bottom: 9px;
    text-align: center;
}

.seals-team-skills span {
    display: inline-block;
    background: #fff4;
    color: #1b2d4b;
    border-radius: 8px;
    font-size: 13px;
    margin: 0 2px 2px 0;
    padding: 2px 9px;
}

.seals-team-desc {
    font-size: 14px;
    color: #f2f7fb;
    margin: 0 0 7px 0;
    text-align: center;
    min-height: 38px;
}

.seals-team-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.seals-team-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #21c8f6;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 20px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 5px #b8c6ff33;
}

.seals-team-links a:hover {
    background: #21c8f6;
    color: #fff;
}

/* === CAROUSEL CONTROLS === */
.seals-carousel-btn {
    position: absolute;
    top: 46%;
    z-index: 99;
    width: 42px;
    height: 42px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 9px #37f1f311;
    color: #21c8f6;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.75;
    transition: opacity 0.18s, background 0.18s;
}

.seals-carousel-btn:hover {
    opacity: 1;
    background: #21c8f6;
    color: #fff;
}

.seals-carousel-btn.left {
    left: 4px;
}

.seals-carousel-btn.right {
    right: 4px;
}

/* === FILTER BAR === */
.seals-filter-bar {
    margin-bottom: 1em;
    display: flex;
    gap: 8px;
    align-items: center;
}

.seals-filter-bar label {
    font-weight: bold;
}

.seals-filter-bar select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

/* === POST NAVIGATION === */
.seals-post-nav {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin: 24px 0;
}

.seals-post-nav .btn {
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.seals-post-nav .btn-prev {
    background: #21c8f6;
    color: #fff;
}

.seals-post-nav .btn-next {
    background: #637bff;
    color: #fff;
}

.seals-post-nav .btn-edit {
    background: #2ecc40;
    color: #fff;
}

.seals-post-nav .btn-blog {
    background: #34495e;
    color: #fff;
}

.seals-post-nav .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 600px) {
    .seals-services-carousel,
    .seals-teams-carousel {
        gap: 16px;
    }

    .seals-service-card,
    .seals-team-card {
        min-width: 200px;
        max-width: 220px;
        padding: 18px 7px 12px 7px;
    }

    .seals-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .seals-filter-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .seals-post-nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .seals-post-nav .btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .seals-services-carousel-wrap,
    .seals-teams-carousel-wrap {
        margin: 0 -10px 20px -10px;
        padding: 0 15px;
    }

    .seals-carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* === UTILITY CLASSES === */
.seals-hidden {
    display: none !important;
}

.seals-loading {
    opacity: 0.6;
    pointer-events: none;
}

.seals-fade-in {
    animation: seals-fadeIn 0.5s ease-in;
}

@keyframes seals-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === ACCESSIBILITY === */
.seals-carousel-btn:focus,
.seals-filter-bar select:focus {
    outline: 2px solid #21c8f6;
    outline-offset: 2px;
}

.seals-team-links a:focus,
.seals-post-nav .btn:focus {
    outline: 2px solid #21c8f6;
    outline-offset: 2px;
}

/* Screen reader only text */
.seals-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === BACK TO TOP BUTTON === */
#seals-back-to-top,
.seals-back-to-top {
    position: fixed;
    right: 15px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid #ffffff;
    color: var(--thm-base, #ff8300);
    font-size: 20px;
    line-height: 56px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transform: rotate(0deg);
    transition: all 200ms linear;
    transition-delay: 0.1s;
    z-index: 999999999;
}

#seals-back-to-top span,
.seals-back-to-top span {
    display: inline-block;
}

#seals-back-to-top:after,
.seals-back-to-top:after {
    position: absolute;
    content: '';
    top: 100%;
    left: 5%;
    height: 10px;
    width: 90%;
    opacity: 1;
    z-index: -1;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 80%);
}

#seals-back-to-top:before,
.seals-back-to-top:before {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    transform: translate(-50%, -50%);
    animation-delay: .9s;
    content: "";
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.9);
    animation: seals-ripple 3s infinite;
    transition: all .4s ease;
}

#seals-back-to-top:hover,
.seals-back-to-top:hover {
    color: #ffffff;
    background-color: var(--thm-black, #1a1a1a);
    border-color: var(--thm-black, #1a1a1a);
}

/* Ripple Animation for Back to Top */
@keyframes seals-ripple {
    70% {
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* Responsive Back to Top */
@media only screen and (max-width: 767px) {
    #seals-back-to-top,
    .seals-back-to-top {
        width: 50px;
        height: 50px;
        line-height: 46px;
        font-size: 16px;
    }
}
