/**
 * Frontend Gallery Styles - Glassmorphism Pixabay Style
 * File: assets/css/frontend.css
 */

* {
    box-sizing: border-box;
}

.smm-gallery-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Hero Section - Centered with Glassmorphism */
.smm-hero-section {
    background: transparent;
    padding: 40px 20px;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

.smm-hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.smm-hero-title {
    display: none;
}

.smm-hero-subtitle {
    display: none;
}

/* Main Category Tabs (Above Search) */
.smm-main-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.smm-main-tab {
    padding: 10px 30px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.smm-main-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.smm-main-tab.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* Search Box - Full Width Centered Glassmorphism */
.smm-search-box {
    max-width: 100%;
    height: 20%;
    margin: 0 auto 35px;
}

.smm-search-wrapper {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    overflow: hidden;
    outline: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.smm-search-input {
    padding: 18px 30px;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: white;
}

.smm-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.smm-search-select {
    display: none;
}

.smm-search-btn {
    display: none;
}

/* Quick Tags - Centered Glassmorphism */
.smm-quick-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
}

.smm-quick-tag {
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    white-space: nowrap;
}

.smm-quick-tag:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Main Content Area */
.smm-main-content {
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 0 20px 40px;
}

/* Filter Tabs - Centered Glassmorphism Pills */
.smm-filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 40px 0;
    padding: 0;
}

.smm-filter-tab {
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.smm-filter-tab:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.smm-filter-tab.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.smm-tab-count {
    display: none;
}

/* Gallery Grid - Masonry */
.smm-gallery-grid {
    column-count: 4;
    column-gap: 20px;
}

@media (max-width: 1200px) {
    .smm-gallery-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .smm-gallery-grid {
        column-count: 2;
    }
    
    .smm-search-input {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .smm-quick-tags {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    
    .smm-filter-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .smm-gallery-grid {
        column-count: 1;
    }
    
    .smm-hero-section {
        padding: 30px 15px;
    }
}

/* Gallery Items */
.smm-gallery-item {
    break-inside: avoid;
    margin-bottom: 20px;
    opacity: 1;
    transition: opacity 0.3s;
}

.smm-gallery-item.hidden {
    display: none;
}

.smm-item-inner {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.smm-item-inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.smm-gallery-item img,
.smm-gallery-item video {
    width: 100%;
    display: block;
    height: auto;
    vertical-align: middle;
}

/* Audio Items */
.smm-audio-item {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.smm-audio-icon {
    font-size: 56px;
    margin-bottom: 16px;
}

.smm-audio-item audio {
    width: 100%;
    max-width: 300px;
    margin-top: 16px;
}

/* Media Overlay */
.smm-media-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.smm-item-inner:hover .smm-media-overlay {
    opacity: 1;
}

.smm-play-icon {
    font-size: 42px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
}

/* Item Info */
.smm-item-info {
    padding: 12px 14px;
    background: white;
}

.smm-item-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 6px;
    color: #1f2937;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.smm-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
}

.smm-category {
    background: #dbeafe;
    color: #1e40af;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.smm-tags {
    color: #6b7280;
}

/* No Results */
.smm-no-results,
.smm-no-results-temp {
    display: none !important;
}

/* Lightbox */
.smm-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none !important;
    visibility: hidden;
    opacity: 0;
}

.smm-lightbox.active {
    display: block !important;
    visibility: visible;
    opacity: 1;
}

.smm-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.93);
}

.smm-lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px;
}

.smm-lightbox-media {
    max-width: 90%;
    max-height: 85vh;
}

.smm-lightbox-media img,
.smm-lightbox-media video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 4px;
}

.smm-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: none;
    font-size: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smm-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.smm-lightbox-prev,
.smm-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border: none;
    font-size: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smm-lightbox-prev:hover,
.smm-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.smm-lightbox-prev {
    left: 20px;
}

.smm-lightbox-next {
    right: 20px;
}

.smm-lightbox-info {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    max-width: 600px;
    text-align: center;
}

.smm-lightbox-info h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 500;
}

.smm-lightbox-info p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
}