/* =============================================================
   panel.css â€” Slide Panel, Modal Image Viewer, Screenshots
   ============================================================= */

/* â”€â”€ Overlay â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#project-panel-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
#project-panel-overlay.pp-visible {
    opacity: 1;
    pointer-events: all;
}

/* â”€â”€ Panel Shell â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#project-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 201;
    width: 520px;
    max-width: 100vw;
    background: #1e1e1e;
    border-left: 1px solid #2a2a2a;
    box-shadow: -8px 0 40px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
#project-panel.pp-open {
    transform: translateX(0);
}

/* â”€â”€ Panel Header â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
    background: #1a1a1a;
}
.pp-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}
.pp-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #2a2a2a;
    border: 1px solid #333;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}
.pp-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

/* â”€â”€ Panel Body â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pp-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}
.pp-body::-webkit-scrollbar { width: 6px; }
.pp-body::-webkit-scrollbar-track { background: transparent; }
.pp-body::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

/* â”€â”€ Gallery â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pp-main-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    background: #111;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s;
}
.pp-main-image:hover { opacity: 0.88; }

.pp-main-image-placeholder {
    width: 100%;
    height: 220px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1a1a1a, #252525);
    border: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: #10b981;
}

.pp-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.pp-thumb {
    width: 72px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.7;
}
.pp-thumb:hover, .pp-thumb.active { border-color: #10b981; opacity: 1; }

/* â”€â”€ Typography inside Panel â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pp-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #10b981;
    margin: 0 0 8px 0;
}

.pp-description {
    font-size: 0.875rem;
    color: #9ca3af;
    line-height: 1.7;
    margin: 0;
}

.pp-divider {
    border: none;
    border-top: 1px solid #2a2a2a;
    margin: 18px 0;
}

/* â”€â”€ Tech Badges â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pp-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pp-tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #111;
    border: 1px solid #2e2e2e;
    border-radius: 999px;
    font-size: 0.78rem;
    color: #d1d5db;
    transition: border-color 0.2s, color 0.2s;
}
.pp-tech-badge i { font-size: 0.85rem; }
.pp-tech-badge:hover { border-color: #10b981; color: #10b981; }

/* â”€â”€ Use Case List â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pp-usecase-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pp-usecase-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: #9ca3af;
    line-height: 1.6;
}
.pp-usecase-list li i {
    color: #10b981;
    margin-top: 3px;
    flex-shrink: 0;
}

/* â”€â”€ Panel Link Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pp-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.pp-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.pp-link-btn.primary {
    background: #10b981;
    color: #fff;
    border: 1px solid #10b981;
}
.pp-link-btn.primary:hover { background: #059669; border-color: #059669; }
.pp-link-btn.secondary {
    background: transparent;
    color: #d1d5db;
    border: 1px solid #333;
}
.pp-link-btn.secondary:hover { border-color: #555; color: #fff; }

/* â”€â”€ Screenshots Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pp-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
@media (max-width: 480px) {
    .pp-screenshots-grid { grid-template-columns: repeat(2, 1fr); }
}
.pp-screenshot-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    cursor: pointer;
    display: block;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    background: #111;
}
.pp-screenshot-thumb:hover {
    transform: scale(1.04);
    box-shadow: 0 0 0 2px #10b981, 0 4px 16px rgba(16,185,129,0.15);
    border-color: #10b981;
}

/* â”€â”€ Universal Image Viewer Modal â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#uiv-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.93);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
#uiv-overlay.uiv-open {
    opacity: 1;
    pointer-events: all;
}
#uiv-img-wrap {
    position: relative;
    margin: auto;
    transform: scale(0.9);
    transition: transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}
#uiv-overlay.uiv-open #uiv-img-wrap {
    transform: scale(1);
}
#uiv-img {
    display: block;
    /*max-width: 90vw;*/
    /*max-height: 88vh;*/
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    transition: opacity 0.15s ease;
}
#uiv-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10000;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(20,20,20,0.9);
    border: 1px solid #444;
    color: #d1d5db;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
#uiv-close:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
}

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 600px) {
    #project-panel { width: 100vw; border-left: none; }
}

/* Gallery navigation buttons (prev/next) */
.gallery-main-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.gallery-main-wrapper .pp-main-image {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    background: #0a0a0a;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #2a2a2a;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

.gallery-nav-btn:hover {
    background: #10b981;
    border-color: #10b981;
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

/* Ensure thumbnails scroll nicely */
.pp-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-top: 8px;
}

.pp-thumb {
    width: 72px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: border-color 0.2s, opacity 0.2s;
}

.pp-thumb:hover,
.pp-thumb.active {
    border-color: #10b981;
    opacity: 1;
}
