/* ==========================================================================
   SOCIAL GALLERY - INSTAGRAM STYLE WITH CYBERPREP DESIGN
   ========================================================================== */

.social-gallery {
    min-height: 100vh;
    background: var(--primary-bg);
    padding-top: var(--header-height, 87px);
}

/* Gallery Header */
.gallery-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-bg);
    position: sticky;
    top: var(--header-height, 90px);
    z-index: 100;
    backdrop-filter: blur(10px);
}

.gallery-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-align: center;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 0.9;
}

.title-accent {
    color: var(--accent-cyan);
    text-shadow: 0 0 20px var(--accent-cyan);
}

.title-glitch {
    position: relative;
    display: inline-block;
    color: var(--accent-purple);
}

.title-glitch::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 2px;
    color: var(--accent-cyan);
    opacity: 0.8;
    animation: glitch 2s infinite;
}

/* ==========================================================================
   HERO SECTION COMPACT
   ========================================================================== */

   .hero-compact {
    position: relative;
    height: 50vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    margin-bottom: var(--content-gap);
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.4) 0%,
            rgba(0, 0, 0, 0.3) 50%,
            rgba(0, 0, 0, 0.2) 100%);
}

.hero-content-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 3rem 2rem;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.category-badge {
    padding: 6px 12px;
    background: var(--accent-cyan);
    color: white;
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 0.9;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

@keyframes glitch {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }
}

.gallery-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: var(--font-display);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.stat-item {
    color: var(--accent-cyan);
    font-weight: 600;
}

.stat-separator {
    opacity: 0.5;
}

/* Instagram Style Grid */
.instagram-grid {
    padding: 3rem 0;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Grid Photo Items */
.grid-photo-item {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-bg);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 2px solid transparent;
}

.grid-photo-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 212, 255, 0.2);
}

/* Photo Container Variations */
.photo-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.photo-container.square {
    aspect-ratio: 1;
}

.photo-container.portrait {
    aspect-ratio: 3/4;
}

.photo-container.landscape {
    aspect-ratio: 4/3;
}

.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.grid-photo-item:hover .photo-container img {
    transform: scale(1.1);
}

/* Photo Overlay */
.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 212, 255, 0.1) 0%,
            rgba(147, 51, 234, 0.1) 100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-photo-item:hover .photo-overlay {
    opacity: 1;
    background: linear-gradient(135deg,
            rgba(0, 212, 255, 0.3) 0%,
            rgba(147, 51, 234, 0.3) 100%);
}

.photo-hover-info {
    text-align: center;
    color: white;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.photo-index {
    font-size: 1.5rem;
    font-weight: 900;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
}

/* Gallery Styles */
/* .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
} */

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
    aspect-ratio: 16/10;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1.5rem 1rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

.caption-text {
    font-size: 12px;
    line-height: 1.4;
}

/* Gallery Controls */
.gallery-controls {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 90%;
	max-width: 1000px;
	gap: 20px;
	flex-wrap: wrap;
    margin: 48px auto 0 auto;
}

.filter-buttons {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.filter-btn {
	padding: 12px 20px;
	font-size: 10px;
	transition: all 0.3s ease;
}

.filter-btn.active {
	background: linear-gradient(45deg, var(--accent-cyan), var(--accent-blue));
	color: white;
	box-shadow: 0 0 20px var(--glow-cyan);
}

.view-toggle {
	display: flex;
	gap: 4px;
}

.view-btn {
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.view-btn.active,
.view-btn:hover {
	border-color: var(--accent-cyan);
	color: var(--accent-cyan);
	text-shadow: 0 0 10px var(--accent-cyan);
	box-shadow: 0 0 15px var(--glow-cyan);
}

/* cta */
.gallery-cta {
    padding: 24px 0 40px;
}

.cta-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.cta-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 16px;
    margin-bottom: 24px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    text-decoration: none;
}
/*  */

/* Loading Animation */
.loading-more {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.cyber-loader {
    text-align: center;
}

.loader-text {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.loader-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.loader-dots span {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    animation: loading-dots 1.5s infinite;
}

.loader-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loading-dots {

    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .gallery-header {
        padding: 1.5rem 0;
    }

    .gallery-title {
        font-size: 2rem;
    }

    .gallery-stats {
        font-size: 11px;
    }
}

@media (max-width: 575px) {
    .cta-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .instagram-grid {
        padding: 2rem 0;
    }

    .gallery-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .grid-photo-item {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .grid-photo-item:hover {
        box-shadow:
            0 20px 40px rgba(0, 0, 0, 0.5),
            0 0 30px rgba(0, 212, 255, 0.3);
    }
}