/* Social Media Templates — masonry gallery + right filter sidebar */

.smt-page {
    display: flex;
    align-items: stretch;
    gap: 0;
    min-height: calc(100vh - 90px);
    background: #fff;
}

.smt-gallery-col {
    flex: 1;
    min-width: 0;
    padding: 16px 14px 40px 18px;
}

.smt-gallery.gallery {
    column-count: 6;
    column-gap: 10px;
    column-width: auto;
}

.smt-page .gallery-item {
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: none;
}

.smt-page .gallery-item-media,
.smt-page .gallery-item img {
    border-radius: 12px;
}

.smt-sidebar {
    width: 300px;
    min-width: 300px;
    flex-shrink: 0;
    background: #f3f4f6;
    padding: 28px 22px 36px;
    position: sticky;
    top: 0;
    align-self: stretch;
}

.smt-sidebar-inner {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.smt-label {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.smt-search-field {
    position: relative;
}

.smt-search-input {
    width: 100%;
    height: 42px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    padding: 0 40px 0 14px;
    font-size: 0.9rem;
    color: #222;
    outline: none;
    font-family: inherit;
}

.smt-search-input::placeholder {
    color: #9aa0a6;
}

.smt-search-input:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(15, 115, 238, 0.12);
}

.smt-search-field .smt-input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #8a8f96;
    pointer-events: none;
}

.smt-select {
    width: 100%;
    height: 42px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
    background-size: 16px;
    padding: 0 36px 0 14px;
    font-size: 0.95rem;
    color: #222;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    font-family: inherit;
}

.smt-select:focus {
    outline: none;
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(15, 115, 238, 0.12);
}

.smt-search-btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 8px;
    background: var(--main-color, #0F73EE);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, transform 0.15s ease;
}

.smt-search-btn svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
}

.smt-search-btn:hover {
    background: #0c63cc;
}

.smt-search-btn:active {
    transform: scale(0.99);
}

.smt-platform-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.smt-platform-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 6px;
    padding: 12px 14px;
    cursor: pointer;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #222;
    user-select: none;
}

.smt-platform-card:hover {
    border-color: #cfcfcf;
}

.smt-platform-card input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 2px solid #c5c5c5;
    border-radius: 50%;
    margin: 0;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    background: #fff;
}

.smt-platform-card input[type="radio"]:checked {
    border-color: var(--main-color, #0F73EE);
}

.smt-platform-card input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: var(--main-color, #0F73EE);
}

.smt-platform-card:has(input:checked) {
    border-color: #d6e6fb;
}

.smt-gallery-section {
    margin: 0;
}

.smt-page .skeleton-loader {
    column-count: 6;
    column-gap: 10px;
    display: none;
    grid-template-columns: none;
}

.smt-page .skeleton-card {
    break-inside: avoid;
    margin-bottom: 10px;
    border-radius: 12px;
    aspect-ratio: 3 / 4;
}

.smt-page .no-results-section {
    border-radius: 12px;
    padding: 48px 20px;
}

@media (max-width: 1400px) {
    .smt-gallery.gallery,
    .smt-page .skeleton-loader {
        column-count: 5;
    }
}

@media (max-width: 1200px) {
    .smt-gallery.gallery,
    .smt-page .skeleton-loader {
        column-count: 4;
    }
}

@media (max-width: 992px) {
    .smt-page {
        flex-direction: column-reverse;
    }

    .smt-gallery-col {
        padding: 12px;
    }

    .smt-sidebar {
        width: 100%;
        min-width: 0;
        position: static;
        height: auto;
    }

    .smt-gallery.gallery,
    .smt-page .skeleton-loader {
        column-count: 3;
    }
}

@media (max-width: 576px) {
    .smt-gallery.gallery,
    .smt-page .skeleton-loader {
        column-count: 2;
        column-gap: 8px;
    }

    .smt-page .gallery-item {
        margin-bottom: 8px;
        border-radius: 10px;
    }
}
