/* Transactions Page Styles */

/* Main Container */
.transactions-main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0px;
}


.featured-transactions {
    margin-bottom: 0; /* Rimuovi margin bottom visto che è in sezione separata */
}

/* All Transactions Section - Ora separata */
.all-transactions-section {
    position: relative;
    background: #F2F2F2 !important;
}
.all-transactions-section .container-frame {
    padding: 0;
}
.featured-transactions-section .container-frame {
    padding: 60px 20px;
}

/* Linea orizzontale sopra la sezione All Transactions */
.all-transactions-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #e9ecef;
    z-index: 1;
}

.featured-transactions h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.swiper-navigation {
    display: flex;
    gap: 10px;
}

/* Featured Transaction Card - New Design */
.featured-tx-card {
    background: #F2F2F2;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 440px;
}


.featured-tx-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.featured-tx-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-tx-image h3 {
    color: white;
    font-size: 48px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    /* neutralized text-shadow to avoid visual clash with header/menu */
    text-shadow: none;
}

.featured-tx-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.featured-tx-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 63px;
}

.featured-tx-tag {
    background: #f8f9fa;
    color: #6c757d;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #6f42c1;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(111, 66, 193, 0.3);
}

.company-logo:hover {
    background: linear-gradient(166deg, rgba(217, 217, 217, 0.00) 41.43%, var(--CG-colors-Lime-Lime-3, #DCF77A) 124.43%);
    background-blend-mode: multiply;
}

.featured-tx-title {
    color: var(--CG-colors-Grey-Black, #000);

    /* Head 2 */
    font-family: var(--Typography-font-family-title, "Space Grotesk");
    font-size: 40px;
    font-style: normal;
    font-weight: 500;
    line-height: 44px; /* 110% */
    margin: 0 0 20px 0;
}

.featured-tx-description {
    color: var(--CG-colors-Shadows-Black-50, rgba(0, 0, 0, 0.50));

    /* Body 3 */
    font-family: var(--Typography-font-family-body, Montserrat);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px; /* 133.333% */
    margin-bottom: 24px;
    flex-grow: 1;
}

.read-full-story {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #6f42c1;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
    padding: 12px 20px;
    border: 2px solid #6f42c1;
    border-radius: 25px;
    transition: all 0.2s ease;
    align-self: flex-start;
    margin-top: auto;
}

.read-full-story:hover {
    color: white;
}

.read-full-story svg {
    width: 16px;
    height: 16px;
}

/* Responsive for featured cards */
@media (max-width: 768px) {
    .featured-tx-card {
        grid-template-columns: 1fr;
        min-height: auto;
        height: auto;
    }
    
    .featured-tx-image {
        height: 200px;
    }
    
    .featured-tx-content {
        padding: 24px;
    }
    
    .featured-tx-title {
        font-size: 24px;
    }
    
    .featured-tx-image h3 {
        font-size: 32px;
    }
}

/* Filters Sidebar */
.filters-sidebar {
    padding: 80px 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.filters-section h3 {
    color: var(--CG-colors-Grey-Black, #000);
    /* Head 2 */
    font-family: var(--Typography-font-family-title, "Space Grotesk");
    font-size: 40px;
    font-style: normal;
    font-weight: 500;
    line-height: 44px; /* 110% */
    margin-bottom: 80px;
}

.filter-group {
    margin-bottom: 32px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group-title {
    color: var(--CG-colors-Grey-Black, #000);
    /* Button */
    font-family: var(--Typography-font-family-caption, Montserrat);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 21px; /* 150% */
    margin-bottom: 24px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-chip {
    text-decoration: none;
}

.featured-transactions .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.featured-transactions .section-header h2 {
    margin: 0;
}

.swiper-navigation {
    display: flex;
    gap: 15px;
}

.featured-tx-tag,
.filter-chip {
    display: inline-flex;
    padding: 4px 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    font-family: var(--Typography-font-family-caption, Montserrat);
    color: var(--CG-colors-Grey-Black, #000);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 18px; /* 150% */
    border: 1px solid var(--CG-colors-Shadows-Black-30, rgba(0, 0, 0, 0.30));
    background: transparent;
}
.filters-section a:hover{
    color: var(--CG-colors-Grey-Black, #000) !important;
}
.filter-chip.is-active {
    background: var(--CG-colors-Lime-Lime-5, #C4F222);
}

.filter-chip:hover {
    background: var(--CG-colors-Lime-Lime-5, #C4F222);
}
/* Transactions Grid */
.transactions-content {
    min-height: 600px;
    position: relative;
}

.transactions-header {
    display: none; /* Nascosto come nell'immagine */
}

.transactions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 40px;
    position: relative;
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Transaction Cards - Nuovo design con sfondo bianco separato */
.tx-card {
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    gap: 16px;
}

/* Bordi verticali dinamici - spostati dalle card e estesi */
.tx-card.first-column::before {
    content: '';
    position: absolute;
    left: -20px; /* Spostato di 20px a sinistra dalla card */
    top: -40px; /* Inizia dalla linea orizzontale sopra */
    bottom: -40px; /* Finisce alla sezione successiva */
    width: 1px;
    background-color: #e9ecef;
    z-index: 0;
}

.tx-card.first-column::after,
.tx-card.middle-column::after {
    content: '';
    position: absolute;
    right: -20px; /* Spostato di 20px a destra dalla card */
    top: -40px; /* Inizia dalla linea orizzontale sopra */
    bottom: -40px; /* Finisce alla sezione successiva */
    width: 1px;
    background-color: #e9ecef;
    z-index: 0;
}

/* Ultima colonna non ha bordi */
.tx-card.last-column::before,
.tx-card.last-column::after {
    display: none;
}

.tx-card:hover .tx-logo img {
    scale: 1.1;
}

.tx-card-white {
    background: white;
    border-radius: 3px;
    width: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


.tx-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tx-card-white:hover .tx-logo {
    background: linear-gradient(166deg, rgba(217, 217, 217, 0.00) 41.43%, var(--CG-colors-Lime-Lime-3, #DCF77A) 124.43%);
    background-blend-mode: multiply;
}

.tx-card-tags {
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 0;
    width: 100%;
}

.tx-card-tag {
    background: #f8f9fa;
    color: #6c757d;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #e9ecef;
}

.tx-card-title {
    color: var(--CG-colors-Shadows-Black-80, rgba(0, 0, 0, 0.80));
    /* Body 2 - medium */
    font-family: var(--Typography-font-family-body, Montserrat);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px; /* 150% */
    text-align: left;
    margin-bottom: 0;
    margin-left: 4px;
}

/* Loading States */
.loading-state {
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .transactions-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .filters-sidebar {
        position: static;
        order: -1;
        padding: 24px;
    }
    
    .filters-section h3 {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .filter-chips {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .transactions-main {
        padding: 0;
    }
    
    .transactions-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 0px;
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .tx-card {
        padding: 24px 16px;
        min-height: 200px;
    }
    
    .tx-logo {
        width: 300px;
        height: 200px;
    }
}

/* Animation for filter updates */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.transactions-grid.updating {
    animation: fadeIn 0.3s ease-out;
}

/* Back Navigation Header - sostituisce il breadcrumb */
.tx-back-header {
    margin-bottom: 40px;
    padding: 20px 0;
}

.tx-back-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6f42c1;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s ease;
}

.tx-back-nav:hover {
    text-decoration: none;
}

.tx-back-nav svg {
    fill: currentColor;
}

@media (max-width: 768px) {
    .tx-back-header {
        padding: 16px 0;
        margin-bottom: 32px;
    }
    
    .tx-back-nav {
        font-size: 14px;
        gap: 6px;
    }
}

.discover {
    justify-content: flex-start !important;
}
.swiper-button-prev,
.swiper-button-next {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    transition: opacity 0.3s ease;
    position: static;
    margin: 0;
    padding: 0;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    opacity: 0.7;
}

.swiper-button-prev.swiper-button-disabled,
.swiper-button-next.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    display: none;
}

.swiper-button-prev svg {
  width:80%;
  height: auto;
  transform: rotate(180deg);
  flex-shrink: 0;
  aspect-ratio: 1/1;
}
.swiper-button-next svg {
  width:80%;
  height: auto;
  transform: rotate(0deg);
  flex-shrink: 0;
  aspect-ratio: 1/1;
}
.swiper-button-prev svg path,
.swiper-button-next svg path {
  stroke-width: 2px;
  stroke: var(--CG-colors-Grey-Black, #000);
}
.tx-detail{
    padding: 20px !important;
}