/* Project Components - Shared Styles */
/* Extracted from inline styles to eliminate duplication across project pages */

/* ========================================
   FEATURE CATEGORIES
   ======================================== */
.feature-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.feature-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 252, 19, 0.1);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

.feature-category:hover {
    border-color: rgba(148, 252, 19, 0.3);
    transform: translateY(-3px);
}

.feature-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.feature-category-icon {
    width: 44px;
    height: 44px;
    background: rgba(148, 252, 19, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.feature-category-title {
    color: #94fc13;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.feature-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-category li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-category li::before {
    content: "✓";
    color: #4be3ac;
    font-weight: bold;
    flex-shrink: 0;
}

/* ========================================
   VERSION BADGES
   ======================================== */
.version-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 25px 0;
}

.version-badge {
    padding: 8px 16px;
    background: rgba(75, 227, 172, 0.15);
    color: #4be3ac;
    border: 1px solid rgba(75, 227, 172, 0.3);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

.version-badge:hover {
    background: rgba(75, 227, 172, 0.25);
    border-color: #4be3ac;
    transform: translateY(-2px);
}

/* ========================================
   HIGHLIGHTS GRID
   ======================================== */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.highlight-item {
    text-align: center;
    padding: 25px 15px;
    background: rgba(148, 252, 19, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(148, 252, 19, 0.1);
}

.highlight-number {
    font-size: 36px;
    font-weight: 700;
    color: #94fc13;
    display: block;
    margin-bottom: 8px;
}

.highlight-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* ========================================
   SETUP LIST (Numbered)
   ======================================== */
.setup-list {
    list-style: none;
    counter-reset: setup-counter;
    padding: 0;
}

.setup-list li {
    counter-increment: setup-counter;
    position: relative;
    padding: 15px 0 15px 50px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.setup-list li:last-child {
    border-bottom: none;
}

.setup-list li::before {
    content: counter(setup-counter);
    position: absolute;
    left: 0;
    top: 15px;
    width: 32px;
    height: 32px;
    background: rgba(148, 252, 19, 0.2);
    color: #94fc13;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.setup-list ul {
    margin-top: 10px;
    list-style: disc;
    padding-left: 20px;
}

.setup-list ul li {
    padding: 5px 0;
    border: none;
}

.setup-list ul li::before {
    display: none;
}

/* ========================================
   USE CASE LIST
   ======================================== */
.use-case-list {
    list-style: none;
    padding: 0;
}

.use-case-list li {
    padding: 15px 0 15px 35px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.use-case-list li:last-child {
    border-bottom: none;
}

.use-case-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4be3ac;
    font-size: 20px;
    font-weight: bold;
}

/* ========================================
   CODE BLOCK
   ======================================== */
.code-block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(148, 252, 19, 0.2);
    border-radius: 8px;
    padding: 20px;
    margin-top: 15px;
    overflow-x: auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    color: #4be3ac;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   USE CASE GRID
   ======================================== */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.use-case-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 252, 19, 0.1);
    border-radius: 12px;
    padding: 20px;
}

.use-case-card h4 {
    color: #94fc13;
    margin-bottom: 15px;
    font-size: 18px;
}

.use-case-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.use-case-card li {
    padding: 8px 0 8px 25px;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
}

.use-case-card li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4be3ac;
    font-weight: bold;
}

/* ========================================
   FEATURE LIST (General)
   ======================================== */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4be3ac;
    font-weight: bold;
    font-size: 18px;
}

/* ========================================
   IMAGE LIGHTBOX
   ======================================== */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox.active {
    display: block;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    transition: transform 0.2s ease;
    transform-origin: center;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(148, 252, 19, 0.2);
    border-color: #94fc13;
    transform: scale(1.1);
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    align-items: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 20px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-zoom-in,
.lightbox-zoom-out,
.lightbox-reset {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-zoom-in:hover,
.lightbox-zoom-out:hover,
.lightbox-reset:hover {
    background: rgba(148, 252, 19, 0.2);
    border-color: #94fc13;
}

.lightbox-counter {
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 0 10px;
}

/* Make carousel images clickable */
.media-carousel-item img {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.media-carousel-item img:hover {
    transform: scale(1.02);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    .feature-categories {
        grid-template-columns: 1fr;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .version-badges {
        gap: 8px;
        margin: 20px 0;
    }

    .version-badge {
        padding: 6px 12px;
        font-size: 12px;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 8px;
    }

    .lightbox-controls {
        bottom: 15px;
        padding: 8px 15px;
        gap: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }
}