/* =====================================================
   TACTICO GALLERY - Card Animation Styles
   Based on CodePen lamchang card animation
   ===================================================== */

/* Gallery Hero */
.gallery-hero {
    padding: 140px 0 80px;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
}

.gallery-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(0, 212, 170, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* Floating post cards background */
.gallery-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-posts {
    position: absolute;
    inset: 0;
}

.floating-post {
    position: absolute;
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0.35;
}

.floating-post img {
    width: 100%;
    height: 70px;
    object-fit: cover;
}

.floating-post span {
    display: block;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.fp-1 {
    width: 160px;
    top: 15%;
    left: 5%;
    animation: floatPost1 8s ease-in-out infinite;
}

.fp-2 {
    width: 150px;
    top: 55%;
    left: 8%;
    animation: floatPost2 10s ease-in-out infinite;
}

.fp-3 {
    width: 155px;
    top: 20%;
    right: 5%;
    animation: floatPost3 9s ease-in-out infinite;
}

.fp-4 {
    width: 145px;
    top: 60%;
    right: 8%;
    animation: floatPost4 11s ease-in-out infinite;
}

.fp-5 {
    width: 130px;
    top: 80%;
    left: 20%;
    animation: floatPost5 7s ease-in-out infinite;
}

@keyframes floatPost1 {
    0%, 100% { transform: translate(0, 0) rotate(-2deg); }
    50% { transform: translate(15px, -20px) rotate(2deg); }
}

@keyframes floatPost2 {
    0%, 100% { transform: translate(0, 0) rotate(1deg); }
    50% { transform: translate(-10px, 15px) rotate(-1deg); }
}

@keyframes floatPost3 {
    0%, 100% { transform: translate(0, 0) rotate(2deg); }
    50% { transform: translate(-20px, -15px) rotate(-2deg); }
}

@keyframes floatPost4 {
    0%, 100% { transform: translate(0, 0) rotate(-1deg); }
    50% { transform: translate(10px, 20px) rotate(1deg); }
}

@keyframes floatPost5 {
    0%, 100% { transform: translate(0, 0) rotate(1deg); }
    50% { transform: translate(-15px, -10px) rotate(-1deg); }
}

/* Hero stats row */
.gallery-stats-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 24px 0;
}

.hero-stat {
    text-align: center;
}

.hero-stat strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
}

.hero-stat span {
    font-size: 13px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .floating-posts {
        display: none;
    }

    .gallery-stats-row {
        gap: 24px;
    }

    .hero-stat strong {
        font-size: 22px;
    }

    .hero-stat span {
        font-size: 11px;
    }
}

.gallery-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.gallery-hero-content h1 {
    font-size: clamp(36px, 7vw, 64px);
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery-hero-content p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.gallery-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Filters */
.gallery-filters {
    padding: 32px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 56px;
    z-index: 100;
}

.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.filter-btn {
    padding: 10px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: var(--bg-primary);
}

.filter-select {
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-main);
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Gallery Section */
.gallery-section {
    padding: 60px 0 100px;
    background: var(--bg-primary);
    min-height: 60vh;
}

/* Gallery Grid - Animated Cards */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
}

/* =====================================================
   TACTIC CARD - Animated Design
   ===================================================== */
.tactic-card {
    position: relative;
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Card Glow Effect */
.tactic-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        transparent 0%,
        rgba(0, 212, 170, 0) 40%,
        rgba(0, 212, 170, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

/* Card Border Glow */
.tactic-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--accent-gradient);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.tactic-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(0, 212, 170, 0.15);
    border-color: var(--accent-primary);
}

.tactic-card:hover::before {
    opacity: 1;
}

.tactic-card:hover::after {
    opacity: 0.5;
}

/* Card Image Area */
.card-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #1a3d1a 0%, #0d1a12 100%);
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.tactic-card:hover .card-image img {
    transform: scale(1.1);
}

/* Tactical Field Preview (when no image) */
.card-field-preview {
    position: relative;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, transparent 49.5%, rgba(255,255,255,0.08) 49.5%, rgba(255,255,255,0.08) 50.5%, transparent 50.5%),
        linear-gradient(135deg, #2d5a27 0%, #1a3d1a 100%);
}

.field-player {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b7a, #ff4757);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    transition: transform 0.4s ease;
}

.tactic-card:hover .field-player {
    animation: playerPulse 0.6s ease infinite alternate;
}

@keyframes playerPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

/* Category Badge */
.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Age Badge */
.card-age {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    background: var(--accent-gradient);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--bg-primary);
    z-index: 2;
}

/* Card Content */
.card-content {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.tactic-card:hover .card-title {
    color: var(--accent-primary);
}

.card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Footer - Author Info */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
    transition: transform 0.3s ease;
}

.tactic-card:hover .author-avatar {
    transform: scale(1.1);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-size: 11px;
    color: var(--text-muted);
}

/* Card Stats */
.card-stats {
    display: flex;
    gap: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
}

.stat-item svg {
    width: 14px;
    height: 14px;
}

/* Card Hover Action */
.card-action {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px) scale(0.8);
    transition: all 0.3s ease;
    z-index: 3;
}

.card-action svg {
    width: 20px;
    height: 20px;
    color: var(--bg-primary);
}

.tactic-card:hover .card-action {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Load More */
.gallery-load-more {
    text-align: center;
    margin-top: 48px;
}

/* =====================================================
   SHARE CTA SECTION
   ===================================================== */
.share-cta {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    position: relative;
}

.share-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.share-cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.share-cta-icon {
    font-size: 64px;
    margin-bottom: 24px;
    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.share-cta-content h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
}

.share-cta-content p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* =====================================================
   TACTIC MODAL
   ===================================================== */
.tactic-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tactic-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.tactic-modal {
    background: var(--bg-secondary);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.tactic-modal-overlay.open .tactic-modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

/* Modal Content */
.modal-header-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 24px 24px 0 0;
}

.modal-body {
    padding: 32px;
}

.modal-category {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 212, 170, 0.15);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
    line-height: 1.3;
}

.modal-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
}

.modal-author-info {
    display: flex;
    flex-direction: column;
}

.modal-author-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-author-role {
    font-size: 13px;
    color: var(--text-muted);
}

.modal-stats {
    display: flex;
    gap: 16px;
    margin-left: auto;
}

.modal-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Article Content */
.modal-article {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
}

.modal-article h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.modal-article h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.modal-article p {
    margin-bottom: 16px;
}

.modal-article ul, .modal-article ol {
    margin: 16px 0;
    padding-left: 24px;
}

.modal-article li {
    margin-bottom: 8px;
}

.modal-article img {
    width: 100%;
    border-radius: 12px;
    margin: 24px 0;
}

.modal-article blockquote {
    background: var(--bg-tertiary);
    border-left: 4px solid var(--accent-primary);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

/* =====================================================
   PRO AD BANNER (In-Article) - Dynamic Design
   ===================================================== */
.pro-ad-banner {
    margin: 40px -32px;
    padding: 40px 32px;
    background: linear-gradient(135deg,
        rgba(0, 212, 170, 0.08) 0%,
        rgba(0, 100, 200, 0.08) 50%,
        rgba(120, 0, 200, 0.08) 100%);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

/* Animated glow effect */
.pro-ad-glow {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(0, 212, 170, 0.15),
        transparent,
        rgba(0, 168, 255, 0.15),
        transparent
    );
    animation: proAdGlow 8s linear infinite;
    pointer-events: none;
}

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

/* Floating particles */
.pro-ad-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.pro-ad-particles span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: proAdFloat 6s ease-in-out infinite;
}

.pro-ad-particles span:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.pro-ad-particles span:nth-child(2) { left: 80%; top: 10%; animation-delay: 1s; }
.pro-ad-particles span:nth-child(3) { left: 70%; top: 80%; animation-delay: 2s; }
.pro-ad-particles span:nth-child(4) { left: 20%; top: 70%; animation-delay: 3s; }
.pro-ad-particles span:nth-child(5) { left: 50%; top: 50%; animation-delay: 4s; }

@keyframes proAdFloat {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
    50% { transform: translateY(-20px) scale(1.5); opacity: 0.6; }
}

.pro-ad-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.pro-ad-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pro-ad-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--accent-gradient);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 800;
    color: var(--bg-primary);
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.4);
    animation: proBadgePulse 2s ease-in-out infinite;
}

@keyframes proBadgePulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(0, 212, 170, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(0, 212, 170, 0.6); }
}

.pro-ad-limited {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
    padding: 6px 14px;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 100px;
    border: 1px solid rgba(0, 212, 170, 0.2);
}

.pro-ad-text {
    max-width: 500px;
}

.pro-ad-text h4 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pro-ad-text p {
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.pro-ad-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 550px;
    margin: 8px 0;
}

.pro-ad-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.pro-ad-feature:hover {
    background: rgba(0, 212, 170, 0.08);
    border-color: rgba(0, 212, 170, 0.2);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 170, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.feature-text strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.feature-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.pro-ad-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.pro-ad-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--accent-gradient);
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    color: var(--bg-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(0, 212, 170, 0.35);
    position: relative;
    overflow: hidden;
}

.pro-ad-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.pro-ad-btn:hover::before {
    left: 100%;
}

.pro-ad-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 35px rgba(0, 212, 170, 0.5);
}

.pro-ad-btn svg {
    transition: transform 0.3s ease;
}

.pro-ad-btn:hover svg {
    transform: translateX(4px);
}

.pro-ad-guarantee {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 600px) {
    .pro-ad-banner {
        margin: 24px -20px;
        padding: 28px 20px;
        border-radius: 16px;
    }

    .pro-ad-header {
        flex-direction: column;
        gap: 8px;
    }

    .pro-ad-text h4 {
        font-size: 22px;
    }

    .pro-ad-features {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .pro-ad-feature {
        padding: 12px 14px;
    }

    .feature-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .pro-ad-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* Modal Actions */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
    .gallery-hero {
        padding: 120px 0 60px;
    }

    .filters-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .gallery-hero {
        padding: 100px 0 40px;
    }

    .gallery-hero-content h1 {
        font-size: 32px;
    }

    .gallery-hero-content p {
        font-size: 15px;
    }

    .gallery-hero-actions {
        flex-direction: column;
    }

    .gallery-hero-actions .btn {
        width: 100%;
    }

    .filter-group {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
        flex-wrap: nowrap;
    }

    .filter-btn {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 13px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .tactic-modal {
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
    }

    .modal-header-image {
        height: 200px;
        border-radius: 16px 16px 0 0;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal-stats {
        margin-left: 0;
    }

    .share-cta {
        padding: 60px 0;
    }

    .share-cta-content h2 {
        font-size: 28px;
    }
}

/* Scrollbar Styling */
.tactic-modal::-webkit-scrollbar {
    width: 8px;
}

.tactic-modal::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

.tactic-modal::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.tactic-modal::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Gallery nav active state */
.nav-links a.active {
    color: var(--accent-primary);
}

/* Nav User Info (signed in state) */
.nav-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border-radius: 100px;
    border: 1px solid var(--border-color);
}

.nav-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

.nav-user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .nav-user-name {
        display: none;
    }

    .nav-user-info {
        padding: 4px;
        background: transparent;
        border: none;
    }

    .nav-user-avatar {
        width: 32px;
        height: 32px;
    }
}

/* =====================================================
   AUTH MODAL - Sign In Popup
   ===================================================== */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-overlay.open {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.auth-overlay.open .auth-modal {
    transform: scale(1) translateY(0);
}

.auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.auth-close:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 15px;
    color: var(--text-secondary);
}

.auth-providers {
    margin-bottom: 20px;
}

.btn-provider {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}

.btn-provider:hover {
    background: var(--bg-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    padding: 0 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.auth-form .form-group {
    margin-bottom: 16px;
}

.auth-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.auth-form input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font-main);
    transition: all 0.2s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.auth-form input::placeholder {
    color: var(--text-muted);
}

.btn-block {
    width: 100%;
    margin-top: 8px;
}

.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 480px) {
    .auth-modal {
        padding: 28px 24px;
    }

    .auth-header h2 {
        font-size: 22px;
    }
}

/* =====================================================
   COMMENTS SECTION
   ===================================================== */
.comments-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.comments-title svg {
    color: var(--accent-primary);
}

/* Comment Form */
.comment-form-container {
    margin-bottom: 32px;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-form textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 15px;
    resize: vertical;
    min-height: 100px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.comment-form textarea::placeholder {
    color: var(--text-muted);
}

.comment-form button {
    align-self: flex-end;
}

/* Sign In Prompt */
.comment-signin-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    flex-wrap: wrap;
}

.comment-signin-prompt p {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: auto;
}

.or-text {
    color: var(--text-muted);
    font-size: 14px;
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment {
    display: flex;
    gap: 14px;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 16px;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-text {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.comment-actions {
    display: flex;
    gap: 16px;
}

.comment-like-btn,
.comment-reply-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}

.comment-like-btn:hover,
.comment-reply-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.comment-like-btn:hover svg {
    color: var(--accent-primary);
}

.comment-like-btn.liked {
    color: var(--accent-primary);
}

.comment-like-btn.liked svg {
    color: var(--accent-primary);
}

.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

/* Like Button Styles */
.modal-like-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.modal-like-btn:hover {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.modal-like-btn.liked {
    border-color: #ff6b6b;
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.modal-like-btn.liked svg {
    fill: #ff6b6b;
    stroke: #ff6b6b;
}

.stat-item.liked {
    color: #ff6b6b;
}

.stat-item.liked svg {
    fill: #ff6b6b;
    stroke: #ff6b6b;
}

/* =====================================================
   MOBILE COMMENTS
   ===================================================== */
@media (max-width: 600px) {
    .comment-signin-prompt {
        flex-direction: column;
        text-align: center;
    }

    .comment-signin-prompt p {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .or-text {
        display: none;
    }

    .comment-signin-prompt .btn {
        width: 100%;
    }

    .comment-avatar {
        width: 36px;
        height: 36px;
    }

    .comment-body {
        padding: 12px;
    }
}
