/* ═══════════════════════════════════
   TOOL DETAILS PAGE STYLES
   ═══════════════════════════════════ */

.tool-page-main {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--nav-h) + 40px) 40px 80px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
}

/* ── Top Section ── */
.tool-header-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.th-left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.th-logo-box {
    width: 170px;
    height: 170px;
    background: #131827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.th-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.th-info {
    display: flex;
    flex-direction: column;
}

.th-title {
    font-size: 27px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    line-height: 1.1;
}

.th-dev {
    font-size: 22px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 16px 0;
}

.th-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.th-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.th-rating i {
    font-size: 14px;
}

.th-divider {
    color: rgba(255, 255, 255, 0.2);
}

/* ── Right Section ── */
.th-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
}

.th-wishlist-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.th-wishlist-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.th-wishlist-btn.active {
    background: rgba(255, 77, 77, 0.15) !important;
    border-color: #FF4D4D !important;
    color: #FF4D4D !important;
}

.th-wishlist-btn.active i {
    color: #FF4D4D !important;
}

.card-wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #AEB5CA;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s ease;
}

.card-wishlist-btn:hover, .card-wishlist-btn.active {
    background: rgba(255, 77, 77, 0.2) !important;
    border-color: #FF4D4D !important;
    color: #FF4D4D !important;
    transform: scale(1.1);
}

.card-wishlist-btn.active i {
    color: #FF4D4D !important;
}

.th-price-box {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.th-price {
    font-size: 18px;
    font-weight: 700;
    color: #8B3DFF;
}

.th-period {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.5);
}

.th-buy-btn {
    width: 280px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(90deg, #5B63F6, #744BFF, #8F3EFF, #A11CF6);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(116, 75, 255, 0.3);
    transition: all 0.3s ease;
}

.th-buy-btn:hover {
    transform: translateY(-2px);
    filter: brightness(108%);
    box-shadow: 0 12px 28px rgba(116, 75, 255, 0.4);
}

/* ── Tabs ── */
.tool-tabs-container {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 40px;
}

.tool-tabs {
    display: flex;
    position: relative;
    gap: 40px;
}

.tool-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    font-weight: 500;
    padding: 24px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.tool-tab:hover, .tool-tab.active {
    color: #FFFFFF;
}

.tab-indicator {
    position: absolute;
    bottom: -1px;
    height: 3px;
    background: #8B3DFF;
    border-radius: 3px 3px 0 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Tab Contents ── */
.tab-contents {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.tab-pane.active {
    display: block;
}

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

.pane-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: #FFFFFF;
}

/* ── Overview Layout ── */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.ov-desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
}

.ov-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ov-features-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 16px;
    color: #FFFFFF;
}

.ov-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ── Screenshots Gallery ── */
.ss-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #131827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.ss-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.ss-slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ss-slide.active {
    opacity: 1;
}

.ss-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* or contain based on preference */
}

.ss-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(19, 24, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    opacity: 0;
}

.ss-gallery:hover .ss-nav {
    opacity: 1;
}

.ss-nav:hover {
    background: rgba(255, 255, 255, 0.15);
}

.ss-nav.prev { left: 16px; }
.ss-nav.next { right: 16px; }

.ss-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.ss-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.ss-dot.active {
    background: #8B3DFF;
    transform: scale(1.2);
}

/* ── Features Tab ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feat-card {
    background: #131827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
}

.feat-card h4 {
    font-size: 18px;
    color: #FFFFFF;
    margin: 0 0 12px 0;
}

.feat-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* ── Reviews Tab ── */
.reviews-wrap {
    max-width: 800px;
}

.rev-card {
    background: #131827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}

.rev-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.rev-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rev-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(93, 99, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
}

.rev-name {
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
    display: block;
}

.rev-country {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.rev-rating {
    color: #FFD98A;
    font-size: 14px;
}

.rev-date {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.rev-text {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* ── FAQs Tab ── */
.faqs-accordion {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: #131827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.faq-q {
    width: 100%;
    text-align: left;
    padding: 24px;
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-q:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-q i {
    color: #8B3DFF;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-q i {
    transform: rotate(180deg);
}

.faq-a {
    display: none;
    padding: 0 24px 24px 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.6;
}

.faq-item.active .faq-a {
    display: block;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .tool-header-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    .th-right {
        width: 100%;
        align-items: flex-start;
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
    .overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tool-page-main {
        padding: calc(var(--nav-h) + 20px) 16px 60px;
    }
    .th-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
        width: 100%;
    }
    .th-logo-box {
        width: 100px;
        height: 100px;
        margin: 0 auto;
    }
    .th-info {
        align-items: center;
    }
    .th-title {
        font-size: 20px;
    }
    .th-dev {
        font-size: 16px;
    }
    .th-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .th-divider {
        display: none;
    }
    .th-right {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .th-price-box {
        justify-content: center;
    }
    .th-price {
        font-size: 16px;
    }
    .th-period {
        font-size: 14px;
    }
    .th-buy-btn, .th-wishlist-btn {
        width: 100%;
        justify-content: center;
    }
    .tool-tabs {
        overflow-x: auto;
        white-space: nowrap;
        gap: 20px;
        padding-bottom: 8px;
    }
    .tool-tab {
        padding: 12px 0;
        font-size: 14px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
}
