/**
 * Estilos para os templates do widget de serviços
 *
 * @package Tom_Servicos_System
 * @since 1.1.5
 */

/* Template: Moderno Minimalista 01 */
.tss-template-modern-minimal-01 .tss-service-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tss-template-modern-minimal-01 .tss-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.tss-template-modern-minimal-01 .tss-service-item-image {
    position: relative;
    overflow: hidden;
}

.tss-template-modern-minimal-01 .tss-service-item-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tss-template-modern-minimal-01 .tss-service-item:hover .tss-service-item-image img {
    transform: scale(1.05);
}

.tss-template-modern-minimal-01 .tss-service-item-content {
    padding: 20px;
}

.tss-template-modern-minimal-01 .tss-service-item-title {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 12px;
    line-height: 1.3;
}

.tss-template-modern-minimal-01 .tss-service-item-excerpt {
    font-size: 16px;
    line-height: 1.5;
    color: #666666;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tss-template-modern-minimal-01 .tss-service-item-button a {
    display: inline-block;
    background-color: #4ECDC4;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.tss-template-modern-minimal-01 .tss-service-item-button a:hover {
    background-color: #FF6B6B;
    transform: scale(1.05);
}

.tss-template-modern-minimal-01 .tss-service-item-button a:focus {
    outline: 2px solid #4ECDC4;
    outline-offset: 2px;
}

/* Template: Moderno Minimalista 02 */
.tss-template-modern-minimal-02 .tss-service-item {
    background-color: #ffffff;
    border-radius: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tss-template-modern-minimal-02 .tss-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tss-template-modern-minimal-02 .tss-service-item-image {
    position: relative;
    overflow: hidden;
}

.tss-template-modern-minimal-02 .tss-service-item-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tss-template-modern-minimal-02 .tss-service-item:hover .tss-service-item-image img {
    transform: scale(1.05);
}

.tss-template-modern-minimal-02 .tss-service-item-content {
    padding: 25px;
    text-align: center;
}

.tss-template-modern-minimal-02 .tss-service-item-title {
    font-size: 20px;
    font-weight: 600;
    color: #222222;
    margin-bottom: 15px;
    line-height: 1.4;
}

.tss-template-modern-minimal-02 .tss-service-item-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tss-template-modern-minimal-02 .tss-service-item-button a {
    display: inline-block;
    background-color: transparent;
    color: #4ECDC4;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #4ECDC4;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.tss-template-modern-minimal-02 .tss-service-item-button a:hover {
    color: #FF6B6B;
    border-color: #FF6B6B;
}

.tss-template-modern-minimal-02 .tss-service-item-button a:focus {
    outline: 2px solid #4ECDC4;
    outline-offset: 2px;
}

/* Template: Moderno Minimalista 03 */
.tss-template-modern-minimal-03 .tss-service-item {
    background-color: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tss-template-modern-minimal-03 .tss-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.tss-template-modern-minimal-03 .tss-service-item-image {
    position: relative;
    overflow: hidden;
}

.tss-template-modern-minimal-03 .tss-service-item-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tss-template-modern-minimal-03 .tss-service-item:hover .tss-service-item-image::after {
    opacity: 1;
}

.tss-template-modern-minimal-03 .tss-service-item-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tss-template-modern-minimal-03 .tss-service-item:hover .tss-service-item-image img {
    transform: scale(1.05);
}

.tss-template-modern-minimal-03 .tss-service-item-content {
    padding: 25px;
    background-color: #ffffff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tss-template-modern-minimal-03 .tss-service-item-title {
    font-size: 18px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 12px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 12px;
}

.tss-template-modern-minimal-03 .tss-service-item-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: #4ECDC4;
}

.tss-template-modern-minimal-03 .tss-service-item-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.tss-template-modern-minimal-03 .tss-service-item-button {
    margin-top: auto;
}

.tss-template-modern-minimal-03 .tss-service-item-button a {
    display: inline-block;
    background-color: #4ECDC4;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

.tss-template-modern-minimal-03 .tss-service-item-button a:hover {
    background-color: #3dbdb5;
}

.tss-template-modern-minimal-03 .tss-service-item-button a:focus {
    outline: 2px solid #4ECDC4;
    outline-offset: 2px;
}

/* Template: Moderno Minimalista 04 */
.tss-template-modern-minimal-04 .tss-service-item {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.tss-template-modern-minimal-04 .tss-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.tss-template-modern-minimal-04 .tss-service-item-image {
    position: relative;
    overflow: hidden;
}

.tss-template-modern-minimal-04 .tss-service-item-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: brightness(0.9);
}

.tss-template-modern-minimal-04 .tss-service-item:hover .tss-service-item-image img {
    transform: scale(1.05);
    filter: brightness(1);
}

.tss-template-modern-minimal-04 .tss-service-item-content {
    padding: 25px;
    position: relative;
}

.tss-template-modern-minimal-04 .tss-service-item-title {
    font-size: 20px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 15px;
    line-height: 1.3;
}

.tss-template-modern-minimal-04 .tss-service-item-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 20px;
}

.tss-template-modern-minimal-04 .tss-service-item-button a {
    display: inline-flex;
    align-items: center;
    background-color: #4ECDC4;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.tss-template-modern-minimal-04 .tss-service-item-button a::after {
    content: '→';
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.tss-template-modern-minimal-04 .tss-service-item-button a:hover {
    background-color: #3dbdb5;
}

.tss-template-modern-minimal-04 .tss-service-item-button a:hover::after {
    transform: translateX(4px);
}

.tss-template-modern-minimal-04 .tss-service-item-button a:focus {
    outline: 2px solid #4ECDC4;
    outline-offset: 2px;
}

/* Template: Moderno Minimalista 05 */
.tss-template-modern-minimal-05 .tss-service-item {
    background-color: #ffffff;
    border: none;
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.tss-template-modern-minimal-05 .tss-service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #4ECDC4;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.tss-template-modern-minimal-05 .tss-service-item:hover {
    transform: translateY(-5px);
}

.tss-template-modern-minimal-05 .tss-service-item:hover::before {
    transform: scaleX(1);
}

.tss-template-modern-minimal-05 .tss-service-item-image {
    position: relative;
    overflow: hidden;
}

.tss-template-modern-minimal-05 .tss-service-item-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(100%);
}

.tss-template-modern-minimal-05 .tss-service-item:hover .tss-service-item-image img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.tss-template-modern-minimal-05 .tss-service-item-content {
    padding: 25px;
    border: 1px solid #eaeaea;
    border-top: none;
    transition: border-color 0.3s ease;
}

.tss-template-modern-minimal-05 .tss-service-item:hover .tss-service-item-content {
    border-color: #4ECDC4;
}

.tss-template-modern-minimal-05 .tss-service-item-title {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.tss-template-modern-minimal-05 .tss-service-item:hover .tss-service-item-title {
    color: #4ECDC4;
}

.tss-template-modern-minimal-05 .tss-service-item-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #666666;
    margin-bottom: 20px;
}

.tss-template-modern-minimal-05 .tss-service-item-button a {
    display: inline-block;
    background-color: transparent;
    color: #4ECDC4;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.tss-template-modern-minimal-05 .tss-service-item-button a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #4ECDC4;
    transition: background-color 0.3s ease;
}

.tss-template-modern-minimal-05 .tss-service-item-button a:hover {
    color: #FF6B6B;
}

.tss-template-modern-minimal-05 .tss-service-item-button a:hover::after {
    background-color: #FF6B6B;
}

.tss-template-modern-minimal-05 .tss-service-item-button a:focus {
    outline: 2px solid #4ECDC4;
    outline-offset: 2px;
}

/* NOVO: Estilos para a galeria de serviços dentro do item */
.tss-service-gallery {
    margin-top: 15px; /* Espaçamento entre o conteúdo e a galeria */
    display: flex;
    flex-wrap: wrap;
    gap: 5px; /* Espaçamento entre as imagens da galeria */
    justify-content: center; /* Centraliza as imagens da galeria */
}

.tss-service-gallery img {
    width: 60px; /* Tamanho da miniatura da galeria */
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.2s ease;
}

.tss-service-gallery img:hover {
    transform: scale(1.1);
}

/* Responsividade para todos os templates */
@media (max-width: 768px) {
    .tss-template-modern-minimal-01 .tss-service-item-title,
    .tss-template-modern-minimal-02 .tss-service-item-title,
    .tss-template-modern-minimal-03 .tss-service-item-title,
    .tss-template-modern-minimal-04 .tss-service-item-title,
    .tss-template-modern-minimal-05 .tss-service-item-title {
        font-size: 18px;
    }
    
    .tss-template-modern-minimal-01 .tss-service-item-excerpt,
    .tss-template-modern-minimal-02 .tss-service-item-excerpt,
    .tss-template-modern-minimal-03 .tss-service-item-excerpt,
    .tss-template-modern-minimal-04 .tss-service-item-excerpt,
    .tss-template-modern-minimal-05 .tss-service-item-excerpt {
        font-size: 14px;
    }
    
    .tss-template-modern-minimal-01 .tss-service-item-button a,
    .tss-template-modern-minimal-02 .tss-service-item-button a,
    .tss-template-modern-minimal-03 .tss-service-item-button a,
    .tss-template-modern-minimal-04 .tss-service-item-button a,
    .tss-template-modern-minimal-05 .tss-service-item-button a {
        font-size: 13px;
    }
}

/* Acessibilidade para todos os templates */
.tss-service-item-button a:focus-visible {
    outline: 3px solid #4ECDC4;
    outline-offset: 3px;
}

/* Suporte a modo escuro para todos os templates */
@media (prefers-color-scheme: dark) {
    .tss-template-modern-minimal-01 .tss-service-item,
    .tss-template-modern-minimal-02 .tss-service-item,
    .tss-template-modern-minimal-03 .tss-service-item-content,
    .tss-template-modern-minimal-04 .tss-service-item,
    .tss-template-modern-minimal-05 .tss-service-item {
        background-color: #2a2a2a;
    }
    
    .tss-template-modern-minimal-01 .tss-service-item-title,
    .tss-template-modern-minimal-02 .tss-service-item-title,
    .tss-template-modern-minimal-03 .tss-service-item-title,
    .tss-template-modern-minimal-04 .tss-service-item-title,
    .tss-template-modern-minimal-05 .tss-service-item-title {
        color: #f0f0f0;
    }
    
    .tss-template-modern-minimal-01 .tss-service-item-excerpt,
    .tss-template-modern-minimal-02 .tss-service-item-excerpt,
    .tss-template-modern-minimal-03 .tss-service-item-excerpt,
    .tss-template-modern-minimal-04 .tss-service-item-excerpt,
    .tss-template-modern-minimal-05 .tss-service-item-excerpt {
        color: #cccccc;
    }
    
    .tss-template-modern-minimal-05 .tss-service-item-content {
        border-color: #444444;
    }
}