body { font-family: 'Inter', sans-serif; background-color: #0f172a; }

/* iPhone X/14 Mockup CSS */
.device-mockup {
    width: 320px;
    height: 650px;
    border: 12px solid #1e293b;
    border-radius: 40px;
    position: relative;
    background-color: #000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 2px #334155;
    overflow: hidden;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.device-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 25px;
    background-color: #1e293b;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 50;
}

.device-screen {
    width: 375px;
    height: 792px;
    border: none;
    background: #111;
    transform: scale(0.78933);
    transform-origin: top left;
    display: block;
}

/* Özel Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 10px; }

/* Design Gallery Thumbnail 9:16 Standard */
.design-thumbnail-card {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 0.5rem; /* rounded-lg */
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease-in-out;
}

.design-thumbnail-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease-in-out;
}

/* Scaling fallback overrides for shorter screens to prevent squishing layout */
@media (max-height: 800px) {
    .device-mockup {
        transform: scale(0.85);
        margin: -35px 0;
    }
}

@media (max-height: 700px) {
    .device-mockup {
        transform: scale(0.75);
        margin: -60px 0;
    }
}

/* Category filter badge styling */
.category-badge {
    flex-shrink: 0;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.category-badge:hover {
    color: #f1f5f9;
    border-color: #475569;
}

.category-badge.active {
    background-color: #4f46e5; /* indigo-600 to match playground theme */
    border-color: #6366f1;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.scrollbar-none::-webkit-scrollbar {
    display: none;
}
.scrollbar-none {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Header Solid Override for UI Clipping Fix */
#design-header {
    background-color: #0f172a !important; /* solid slate-900 */
    z-index: 50 !important;
}
