/* ==================================================
   WP Media Gallery Pro - Frontend Styles
   Version: 2.0.0
   ================================================== */

/* ------------------------------------------------
   Global Styles
------------------------------------------------ */
.wpmg-gallery-app {
/*     background: linear-gradient(135deg, #667eea, #764ba2); */
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}




.category-btn {
    margin: 5px;
    padding: 5px 15px;
    border-radius: 25px;
    transition: all 0.3s;
    font-weight: 500;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    cursor: pointer;
}

.category-btn.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white !important;
    border: none;
}



/* ------------------------------------------------
   Hero Section
------------------------------------------------ */
.wpmg-hero {
    background: rgba(0, 0, 0, 0.3);
    padding: 60px 0;
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.wpmg-hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.wpmg-hero p {
    font-size: 18px;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* ------------------------------------------------
   Search Box
------------------------------------------------ */
.wpmg-search {
    max-width: 400px;
    margin: 20px auto 0;
    display: flex;
}

.wpmg-search input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 30px 0 0 30px;
    outline: none;
    font-size: 16px;
}

.wpmg-search button {
    padding: 12px 25px;
    background: #ff6b6b;
    border: none;
    border-radius: 0 30px 30px 0;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.wpmg-search button:hover {
    background: #ff4757;
}

/* ------------------------------------------------
   Stats Section
------------------------------------------------ */
.wpmg-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.stat-box {
    padding: 10px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* ------------------------------------------------
   Filters
------------------------------------------------ */
.wpmg-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 14px;
    color: #667eea;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
}

/* ------------------------------------------------
   Image Grid
------------------------------------------------ */
.wpmg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.wpmg-image-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.wpmg-image-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.wpmg-image-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.wpmg-image-card:hover img {
    transform: scale(1.05);
}

.wpmg-image-card .info {
    padding: 15px;
}

/* .category-badge {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
} */


.category-badge {
    display: inline-block;
    padding: 1px 9px;
    background: linear-gradient(45deg, #20432f, #b8860b);
    color: white;
    border: 1px solid;
    border-radius: 20px;
    font-size: 10px;
    margin-bottom: 10px;
}


.wpmg-image-card h4 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.image-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.image-stats i {
    margin-right: 4px;
}

/* ------------------------------------------------
   Load More Button
------------------------------------------------ */
.wpmg-load-more-btn {
    padding: 12px 40px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    margin-top: 20px;
    display: inline-block;
}

.wpmg-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.wpmg-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ------------------------------------------------
   Video Gallery Styles
------------------------------------------------ */
.wpmg-video-app {
    background: linear-gradient(135deg, #667eea, #764ba2);
    min-height: 100vh;
    padding: 40px 0;
    font-family: 'Segoe UI', sans-serif;
}

.video-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.video-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.video-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.video-tab {
    padding: 12px 30px;
    background: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    color: #667eea;
}

.video-tab.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.video-tab:hover:not(.active) {
    transform: translateY(-2px);
    background: #f0f0f0;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.video-card {
/*     background: white; */
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
	border:1px solid;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
}

.video-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 0.9;
}

.play-overlay i {
    font-size: 28px;
    color: #ff4757;
    margin-left: 5px;
}

.video-card:hover .play-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #b8860b;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-channel {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.video-stats {
    font-size: 11px;
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 5px;
}

.shorts-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4757;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: bold;
    z-index: 1;
}

/* ------------------------------------------------
   Social Feed Styles
------------------------------------------------ */
.wpmg-social-app {
    background: linear-gradient(135deg, #667eea, #764ba2);
    min-height: 100vh;
    padding: 40px 0;
    font-family: 'Segoe UI', sans-serif;
}

.social-header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

.social-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.social-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.social-filter {
    padding: 10px 25px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: #667eea;
}

.social-filter.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
}

.social-filter:hover:not(.active) {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.social-card {
/*     background: white; */
    border-radius: 15px;
    padding: 20px;
	border: 1px solid;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.social-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.social-icon i {
    font-size: 24px;
    color: white;
}

.social-icon.facebook {
    background: #1877f2;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433, #d62976, #962fbf);
}

.social-username {
    font-weight: bold;
    margin-bottom: 3px;
    color: #333;
}

.social-time {
    font-size: 11px;
    color: #999;
}

.social-content {
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
}

.social-content p {
    margin: 0;
}

.social-image {
    width: 100%;
    border-radius: 10px;
    margin: 15px 0;
}

.social-stats {
    display: flex;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

.social-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-stats .fa-heart {
    color: #e74c3c;
}

.social-link {
    display: inline-block;
    margin-top: 12px;
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
}

.social-link:hover {
    text-decoration: underline;
}

/* ------------------------------------------------
   Loading States
------------------------------------------------ */
.loader {
    text-align: center;
    padding: 40px;
    grid-column: 1/-1;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ------------------------------------------------
   No Results
------------------------------------------------ */
.no-results {
    text-align: center;
    padding: 60px;
    background: white;
    border-radius: 15px;
    grid-column: 1/-1;
}

.no-results h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 24px;
}

.no-results p {
    color: #666;
}

/* ------------------------------------------------
   Error States
------------------------------------------------ */
.wpmg-error {
    text-align: center;
    padding: 40px;
    color: #dc2626;
    background: #fef2f2;
    border-radius: 12px;
    margin: 20px;
}

/* ------------------------------------------------
   Pagination
------------------------------------------------ */
.wpmg-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.wpmg-pagination .page-numbers {
    padding: 8px 15px;
    background: white;
    border-radius: 8px;
    text-decoration: none;
    color: #667eea;
    transition: all 0.3s;
}

.wpmg-pagination .page-numbers.current {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

.wpmg-pagination .page-numbers:hover:not(.current) {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* ------------------------------------------------
   Lightbox Integration
------------------------------------------------ */
.wpmg-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.wpmg-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.wpmg-lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 35px;
    color: white;
    cursor: pointer;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    transition: background 0.3s;
}

.wpmg-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.wpmg-lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.wpmg-lightbox-caption {
    padding: 20px;
    background: white;
}

.wpmg-lightbox-caption h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.wpmg-lightbox-caption p {
    margin: 0 0 15px;
    color: #666;
}

.wpmg-lightbox-stats {
    display: flex;
    gap: 20px;
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
}

.wpmg-lightbox-download {
    padding: 10px 20px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.wpmg-lightbox-download:hover {
    transform: translateY(-2px);
}

/* ------------------------------------------------
   Responsive Design
------------------------------------------------ */
/* Tablet Landscape */
@media (max-width: 1200px) {
    .wpmg-grid,
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait */
@media (max-width: 992px) {
    .wpmg-grid,
    .video-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .wpmg-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .wpmg-hero h1 {
        font-size: 36px;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .wpmg-grid,
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .social-grid {
        grid-template-columns: 1fr;
    }
    .video-tabs {
        flex-direction: column;
        align-items: center;
    }
    .video-tab {
        width: 80%;
        text-align: center;
    }
    .filter-btn {
        padding: 6px 15px;
        font-size: 12px;
    }
    .stat-number {
        font-size: 24px;
    }
    .wpmg-hero {
        padding: 40px 0;
    }
    .wpmg-hero h1 {
        font-size: 28px;
    }
    .social-filters {
        flex-wrap: wrap;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .wpmg-grid,
    .video-grid {
        grid-template-columns: 1fr;
    }
    .wpmg-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .wpmg-search {
        flex-direction: column;
        gap: 10px;
    }
    .wpmg-search input {
        border-radius: 30px;
    }
    .wpmg-search button {
        border-radius: 30px;
    }
    .video-tab {
        width: 100%;
        padding: 10px;
    }
    .filter-btn {
        padding: 5px 12px;
        font-size: 11px;
    }
    .wpmg-image-card img {
        height: 200px;
    }
    .video-thumbnail img {
        height: 180px;
    }
}

/* ------------------------------------------------
   Animations
------------------------------------------------ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out;
}

/* ------------------------------------------------
   Utility Classes
------------------------------------------------ */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* ------------------------------------------------
   Print Styles
------------------------------------------------ */
@media print {
    .wpmg-gallery-app,
    .wpmg-video-app,
    .wpmg-social-app {
        background: white;
    }
    .wpmg-hero,
    .wpmg-filters,
    .video-tabs,
    .social-filters,
    .wpmg-load-more-btn {
        display: none;
    }
    .wpmg-grid,
    .video-grid,
    .social-grid {
        display: block;
    }
    .wpmg-image-card,
    .video-card,
    .social-card {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}





/* ==================================================
   Full Width Gallery Styles
   ================================================== */

/* Container - Make it full width */
.wpmg-gallery-app .container {
    max-width: 100% !important;
    width: 100%;
    padding: 0 20px;
    margin: 0 auto;
}

/* For full width without any padding */
.wpmg-gallery-app .container-full {
    max-width: 100% !important;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Gallery Grid - Full Width */
.wpmg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Image Cards - Full Width Images */
.wpmg-image-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Images - Full Width Inside Cards */
.wpmg-image-card img {
    width: 100%;
    height: auto;
    min-height: 250px;
    max-height: 350px;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

/* Responsive Grid Columns */
@media (min-width: 1600px) {
    .wpmg-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 25px;
    }
}

@media (max-width: 1200px) {
    .wpmg-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .wpmg-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .wpmg-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .wpmg-gallery-app .container {
        padding: 0 15px;
    }
}

@media (max-width: 576px) {
    .wpmg-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Hero Section Full Width */
.wpmg-hero {
    width: 100%;
    background: linear-gradient(135deg, rgba(102,126,234,0.9), rgba(118,75,162,0.9));
    padding: 80px 0;
    text-align: center;
    color: white;
    margin-bottom: 40px;
}

/* Stats Section - Full Width with max-width content */
.stats-section {
    max-width: 1200px;
    margin: 30px auto;
    width: calc(100% - 40px);
}

/* Filters - Centered with max-width */
.wpmg-filters {
    max-width: 1200px;
    margin: 0 auto 30px;
    width: calc(100% - 40px);
}

/* Gallery Grid Wrapper - Full Width */
.wpmg-gallery-grid-wrapper {
    width: 100%;
    overflow: hidden;
}

/* Image Card Info Overlay - Full Width */
.wpmg-image-card .info {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    margin-bottom: 10px;
}

/* Image Stats */
.image-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* No gaps between images - edge to edge */
.wpmg-fullwidth {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}