/* ==================================================
   TOOL DETAILS PAGE
================================================== */

.tool-details{
    padding:35px 0;
}

/* ==========================
   Breadcrumb
========================== */

.breadcrumb{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:30px;
    font-size:15px;
    flex-wrap:wrap;
}

.breadcrumb a{
    color:#60a5fa;
    text-decoration:none;
    transition:.3s;
}

.breadcrumb a:hover{
    color:#93c5fd;
}

.breadcrumb span{
    color:#64748b;
}

.breadcrumb strong{
    color:var(--text);
    font-weight:600;
}

/* ==========================
   Tool Header
========================== */

.tool-header{
    display:grid;
    grid-template-columns:220px 1fr;
    gap:50px;
    align-items:center;
    background:var(--card);
    border-radius:20px;
    padding:40px;
    border:1px solid var(--border);
    margin-bottom:35px;
}

.tool-logo{
    width:180px;
    height:180px;
    object-fit:contain;
    background:var(--text);
    padding:20px;
    border-radius:20px;
}

.tool-header-info h1{
    font-size:48px;
    margin-bottom:15px;
}

.tool-rating{
    color:#fbbf24;
    font-size:22px;
    margin-bottom:20px;
}

.tool-meta{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    margin-bottom:25px;
}

.tool-meta span{
    background:var(--surface);
    padding:10px 18px;
    border-radius:30px;
    font-size:15px;
}

/* ==========================
   Tool Sections
========================== */

.tool-section{
    background:var(--card);
    border-radius:20px;
    padding:35px;
    margin-bottom:20px;
    border:1px solid rgba(255,255,255,.08);
}

.tool-section h2{
    font-size:30px;
    margin-bottom:25px;
    color:var(--text);
}

.tool-section p{
    color:var(--text-secondary);
    line-height:1.9;
}

/* ==========================
   Lists
========================== */

.feature-list,
.pros-list,
.cons-list{
    list-style:none;
    padding:0;
    margin:0;
}

.feature-list li,
.pros-list li,
.cons-list li{
    background:var(--surface);
    margin-bottom:15px;
    padding:15px 20px;
    border-radius:12px;
    color:var(--text);
}

/* ==========================
   Platforms
========================== */

.platforms{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
}

.platform{
    background:var(--primary);
    color:var(--text);
    padding:10px 20px;
    border-radius:30px;
}

/* ==========================
   SCREENSHOTS
========================== */

.screenshot-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:20px;
    width:100%;
    margin-top:20px;
}

.screenshot-grid .screenshot{
    width:100%;
    height:260px;
    object-fit:cover;
    display:block;
    border-radius:14px;
    cursor:pointer;
    transition:transform .3s ease, box-shadow .3s ease;
}

.screenshot-grid .screenshot:hover{
    transform:scale(1.02);
}

/* ==========================
   Lightbox
========================== */

.lightbox{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.92);
    justify-content:center;
    align-items:center;
    z-index:99999;
    padding:40px;
}

.lightbox img{
    max-width:90%;
    max-height:90%;
    border-radius:20px;
    box-shadow:0 20px 60px rgba(0,0,0,.5);
}

.close-lightbox{
    position:absolute;
    top:25px;
    right:40px;
    font-size:50px;
    color:var(--text);
    cursor:pointer;
    font-weight:bold;
    transition:.3s;
}

.close-lightbox:hover{
    color:#3b82f6;
}

/* ==========================
   Video
========================== */

.video-wrapper{
    position:relative;
    width:100%;
    padding-bottom:56.25%;
    overflow:hidden;
    border-radius:16px;
}

.video-wrapper iframe{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    border:0;
}

/* ==========================
   FAQ
========================== */

.faq-item{
    padding:20px 0;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.faq-item:last-child{
    border-bottom:none;
}

.faq-item h3{
    margin-bottom:12px;
    color:var(--text);
}

.faq-item p{
    color:var(--text-secondary);
}

/* ==========================
   POPUP
========================== */

.popup-overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:99999;
}

.popup-overlay.active{
    display:flex;
}

.popup-box{
    width:420px;
    max-width:92%;
    background:var(--card);
    padding:35px;
    border-radius:18px;
    text-align:center;
    border:1px solid var(--border);
    box-shadow:0 25px 60px rgba(0,0,0,.35);
}

.popup-box h2{
    margin-bottom:15px;
    font-size:30px;
}

.popup-box p{
    color:var(--text-secondary);
    line-height:1.8;
    margin-bottom:30px;
}

.popup-buttons{
    display:flex;
    gap:15px;
}

.popup-buttons .btn{
    flex:1;
}

/* ==========================
   TABLET
========================== */

@media (max-width:900px){

    .tool-details{
        padding:30px 0;
    }

    .screenshot-grid{
        grid-template-columns:repeat(2, 1fr);
    }

    .screenshot-grid .screenshot{
        height:230px;
    }

}

/* ==========================
   MOBILE
========================== */

@media (max-width:600px){

    .tool-details{
        padding:25px 0;
    }

    .tool-section{
        padding:25px;
        margin-bottom:15px;
    }

    .screenshot-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .screenshot-grid .screenshot{
        height:auto;
        max-height:400px;
        object-fit:contain;
    }

    .popup-box{
        width:92%;
        padding:25px 20px;
    }

    .popup-box h2{
        font-size:24px;
    }

    .popup-buttons{
        flex-direction:column;
    }

}