/* Theme Gallery Component Styles — Figma-Style Interactive Upgrade */

.m-theme-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.m-theme-card {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    padding: 1rem;
}

.m-theme-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(99, 102, 241, 0.6);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.2);
}

.m-theme-card.active {
    border-color: var(--color-accent) !important;
    background: rgba(99, 102, 241, 0.08) !important;
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.35) !important;
}

.m-theme-preview-box {
    height: 160px;
    border-radius: var(--radius-lg);
    padding: 1rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    overflow: hidden;
}

.m-theme-pop-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    pointer-events: none;
    background: var(--color-accent);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.m-theme-mini-phone {
    width: 90px;
    height: 130px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.m-mini-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
}

.m-mini-bar {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.4);
}

.m-theme-footer {
    padding: 0.85rem 0.25rem 0.25rem 0.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.m-theme-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-text-primary);
}

.m-theme-check-icon {
    font-size: 1.2rem;
    color: var(--color-accent);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.m-theme-card.active .m-theme-check-icon {
    opacity: 1;
}
