
/* Screenshot Modal */
.screenshot-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.screenshot-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screenshot-modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    user-select: none;
}

.screenshot-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
}

.screenshot-modal-close:hover {
    transform: scale(1.1);
}

.screenshot-modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 10;
    user-select: none;
}

.screenshot-modal-nav:hover {
    background-color: rgba(0, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.screenshot-modal-prev {
    left: 20px;
}

.screenshot-modal-next {
    right: 20px;
}

.screenshot-modal-counter {
    color: white;
    margin-top: 15px;
    font-size: 14px;
}

.changelog-toggle-icon .changelog-expand-icon {
    transition: transform 0.3s ease;
}

.changelog-toggle-icon.rotated .changelog-expand-icon {
    transform: rotate(180deg);
}

#load-more-changelogs {
    padding: 8px 24px;
    transition: all 0.3s ease;
}


/* Stile per il pulsante di download */
.btn-tool-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(45deg, #2774e2, #4891f0);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(41, 128, 255, 0.3);
}

.btn-tool-download:hover {
    background: linear-gradient(45deg, #1e5fc0, #3a7cd6);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(41, 128, 255, 0.4);
    color: #ffffff;
}

/* Stile per i pulsanti aggiuntivi */
.license-actions {
    display: flex;
    gap: 10px;
}

.btn-tool-manage, .btn-tool-support {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-tool-manage {
    color: #5d6574;
    background: #f0f2f5;
    border: 1px solid #eaecef;
}

.btn-tool-manage:hover {
    background: #e4e7eb;
    color: #4a5568;
    transform: translateY(-2px);
}

.btn-tool-support {
    color: #ffffff;
    background: linear-gradient(45deg, #25d366, #128c7e);
    border: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-tool-support:hover {
    background: linear-gradient(45deg, #1fb058, #10786b);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
    color: #ffffff;
}

.related-article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #1e1b3f;
    border-radius: 12px;
    overflow: hidden;
    min-height: 450px;
}

.related-article-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.related-article-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.related-article-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 350px;
}

.related-article-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
    max-height: 84px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-article-excerpt {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    flex: 1;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.related-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    flex-shrink: 0;
}

.related-article-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.related-article-link {
    display: inline-flex;
    align-items: center;
    color: #6f42c1;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.related-article-link svg {
    width: 14px;
    height: 14px;
    margin-left: 6px;
    fill: currentColor;
    transition: transform 0.2s;
}

.related-article-link:hover {
    color: #8a63d2;
}

.related-article-link:hover svg {
    transform: translateX(3px);
}

.related-slider-nav {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    pointer-events: none;
    padding-bottom: 10px;
}

.related-slider-prev,
.related-slider-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    pointer-events: auto;
}

.related-slider-prev svg,
.related-slider-next svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.related-slider-prev:hover,
.related-slider-next:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.related-slider-prev {
    transform: none;
}

.related-slider-next {
    transform: none;
}

.related-slider-dots {
    display: none;
}

.related-slider-dot {
    display: none;
}

@media (max-width: 768px) {
    .related-article-card {
        min-height: 480px;
    }
    
    .related-article-image {
        height: inherit;
    }
    
    .related-article-content {
        height: 280px;
        display: flex;
        flex-direction: column;
    }
    
    .related-article-title {
        font-size: 1.2rem;
        max-height: 78px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .related-article-excerpt {
        font-size: 0.9rem;
        flex: 1;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
    }
}

.article-cta-button:hover svg:not(.marketplace-icon) {
    transform: translateX(3px);
}

/* Discount Badge Styles */
.discount-badge {
    background: linear-gradient(45deg, #ff3e3e, #ff6a6a);
    color: white;
    font-weight: 600;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    position: absolute;
    top: 10px;
    right: 10px;
    box-shadow: 0 2px 5px rgba(255, 62, 62, 0.3);
    transform: rotate(5deg);
}

.discount-badge.labs-required {
    background: linear-gradient(45deg, #8729ff, #a855f7);
    box-shadow: 0 2px 5px rgba(135, 41, 255, 0.3);
}

.original-price {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 0.85em;
    margin-right: 5px;
    color: #666;
}

/* Add position: relative to license-card class */
.license-card {
    position: relative;
}

/* Stile per il pulsante in stato di caricamento */
.btn-tool-buy.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-tool-buy.is-loading:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Stile per i pulsanti Stripe */
.btn-tool-stripe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    background: linear-gradient(45deg, #6772e5, #7795f8);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(103, 114, 229, 0.3);
}

.btn-tool-stripe:hover {
    background: linear-gradient(45deg, #5469d4, #6772e5);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(103, 114, 229, 0.4);
    color: #ffffff;
}

.btn-tool-stripe.is-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-tool-stripe.is-loading:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* Login Popup Styles */
.login-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.login-popup {
    background: #1e1b3f;
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    animation: popup-appear 0.3s ease-out;
}

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

.login-popup-header {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.login-popup-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
}

.login-popup-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.login-popup-close:hover {
    color: #fff;
}

.login-popup-body {
    padding: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.5;
}

.login-popup-footer {
    padding: 15px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-popup-footer .btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

.login-popup-footer .btn-primary {
    background: linear-gradient(45deg, #6772e5, #7795f8);
    border: none;
    color: #fff;
}

.login-popup-footer .btn-primary:hover {
    background: linear-gradient(45deg, #5469d4, #6772e5);
    transform: translateY(-2px);
}

.login-popup-footer .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.8);
}

.login-popup-footer .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}


  /* Related Articles Slider Styles */
  .related-articles-slider {
    margin-top: 1.5rem;
    position: relative;
}

.related-slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.related-slider-wrapper {
    overflow: hidden;
}

.related-slider-content {
    display: flex;
    transition: transform 0.5s ease;
}

.related-article-slide {
    min-width: 100%;
    display: none;
}

.related-article-slide.active {
    display: block;
}

.related-article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #1e1b3f;
    border-radius: 12px;
    overflow: hidden;
    min-height: 550px;
}

.related-article-image {
    height: inherit;
    background-size: cover;
    background-position: center;
    position: relative;
}

.related-article-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.related-article-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 350px;
}

.related-article-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
    max-height: 84px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-article-excerpt {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    flex: 1;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

.related-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    flex-shrink: 0;
}

.related-article-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.related-article-link {
    display: inline-flex;
    align-items: center;
    color: #6f42c1;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.related-article-link svg {
    width: 14px;
    height: 14px;
    margin-left: 6px;
    fill: currentColor;
    transition: transform 0.2s;
}

.related-article-link:hover {
    color: #8a63d2;
}

.related-article-link:hover svg {
    transform: translateX(3px);
}

.related-slider-nav {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    pointer-events: none;
}

.related-slider-prev,
.related-slider-next {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    pointer-events: auto;
}

.related-slider-prev svg,
.related-slider-next svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.related-slider-prev:hover,
.related-slider-next:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.related-slider-prev {
    transform: none;
}

.related-slider-next {
    transform: none;
}

.related-slider-dots {
    display: none;
}

.related-slider-dot {
    display: none;
}

@media (max-width: 768px) {
    .related-article-card {
        min-height: 480px;
    }
    
    .related-article-image {
        height: inherit;
    }
    
    .related-article-content {
        height: 280px;
        display: flex;
        flex-direction: column;
    }
    
    .related-article-title {
        font-size: 1.2rem;
        max-height: 78px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
    
    .related-article-excerpt {
        font-size: 0.9rem;
        flex: 1;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
    }
}