/* Examples Page Styling */
.examples-hero {
    padding: 6rem 2rem 4rem;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    color: white;
    text-align: center;
}

.examples-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.examples-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.examples-showcase {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #eef2f7 100%);
}

.examples-layout {
    display: flex;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar Categories */
.examples-categories {
    width: 300px;
    flex-shrink: 0;
}

.examples-categories h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-size: 1.2rem;
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #4a5568;
}

.category-list li:hover {
    transform: translateX(5px);
    border-color: #cbd5e0;
}

.category-list li.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.category-list li i {
    width: 24px;
    text-align: center;
}

.upload-hint {
    margin-top: 3rem;
    padding: 1.5rem;
    background: #fff;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    text-align: center;
}

.upload-hint h4 {
    margin: 0 0 0.5rem 0;
    color: #2d3748;
}

.upload-hint p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #718096;
}

/* Main Display Area */
.example-display-area {
    flex-grow: 1;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* Phone Frame */
.phone-frame-wrapper {
    flex-shrink: 0;
}

/* Custom Phone Frame with Image Overlay */
.custom-phone-container {
    position: relative;
    width: 340px;
    /* Base width */
    max-width: 100%;
    margin: 0 auto;
    /* Aspect ratio placeholder if needed, but img handles it */
}

.phone-frame-overlay {
    position: relative;
    z-index: 20;
    width: 100%;
    display: block;
    pointer-events: none;
    /* Allows scrolling the content underneath */
    user-select: none;
    -webkit-user-drag: none;
}

.phone-screen-scroll-area {
    position: absolute;
    z-index: 10;
    /* Estimates for the specific Phone.png transparent area */
    /* You may need to tune these % values to fit the image perfectly */
    top: 2.2%;
    left: 4.5%;
    width: 91%;
    height: 95.5%;

    overflow-y: auto;
    overflow-x: hidden;
    background: #fff;
    /* White background behind content */
    border-radius: 30px;
    /* Curve the corners of the content to match phone */

    /* Scrollbar hiding */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.phone-screen-scroll-area::-webkit-scrollbar {
    display: none;
}

.phone-screen-scroll-area img {
    width: calc(100% - 25px);
    margin-left: 10px;
    display: block;
    height: auto;
}

/* Badge Styling */
.real-output-badge {
    position: absolute;
    top: -15px;
    left: -20px;
    right: auto;
    width: 100px;
    height: 100px;
    background: #FFD700;
    /* Yellow */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 700;
    color: #000;
    font-size: 0.75rem;
    line-height: 1.2;
    transform: rotate(-15deg);
    z-index: 30;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 3px solid #fff;
    font-family: 'Poppins', sans-serif;
}

/* Info Panel */
.example-info-panel {
    flex-grow: 1;
    padding-top: 2rem;
}

.example-info-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2d3748;
}

.example-info-panel p {
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.ex-features-highlight {
    display: grid;
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

.highlight-item i {
    color: #48bb78;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 900px) {
    .examples-layout {
        flex-direction: column;
    }

    .examples-categories {
        width: 100%;
        overflow-x: auto;
    }

    .category-list {
        display: flex;
        gap: 1rem;
        padding-bottom: 5px;
    }

    .category-list li {
        width: auto;
        white-space: nowrap;
        margin-bottom: 0;
    }

    .example-display-area {
        flex-direction: column;
        align-items: center;
    }

    .marvel-device.iphone-x {
        width: 280px;
        height: 560px;
    }
}