/* ============================================
   ŞEFFAFLIK PAGE STYLES
   ============================================ */

.nav-link.active-page {
    color: #fff;
}

.nav-link.active-page svg {
    opacity: 1;
}

.transparency-main {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 2rem 4rem;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
    /* Prevent horizontal scroll from stretching the body */
}

/* Header */
.trans-header {
    text-align: center;
    padding: 2rem 0 2rem;
}

.trans-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    opacity: 0;
    animation: transFadeUp 0.5s ease forwards;
}

.trans-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    opacity: 0;
    animation: transFadeUp 0.6s ease 0.1s forwards;
}

.trans-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
    opacity: 0;
    animation: transFadeUp 0.6s ease 0.2s forwards;
}

/* Trust Bar */
.trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: transFadeUp 0.6s ease 0.3s forwards;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    transition: all 0.3s ease;
}

.trust-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.trust-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.trust-text strong {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.trust-text span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Country Filter */
.country-filter {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: transFadeUp 0.6s ease 0.4s forwards;
}

.country-tab {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.78rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.country-tab.active {
    background: rgba(0, 112, 243, 0.12);
    border-color: rgba(0, 112, 243, 0.3);
    color: #fff;
}

/* Media Gallery */
.media-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* Media Card */
.media-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(16px);
}

.media-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.media-card.featured {
    grid-column: 1 / -1;
}

.media-card.featured .media-visual {
    height: 260px;
}

/* Media Visual */
.media-visual {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 112, 243, 0.08), rgba(0, 112, 243, 0.03));
}

.media-visual.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.media-visual.no-img::after {
    content: '📸';
    font-size: 2.5rem;
    opacity: 0.3;
}

.media-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Wrap all hover effects to prevent sticky hover on touch devices */
@media (hover: hover) and (pointer: fine) {
    .trust-item:hover {
        border-color: rgba(34, 197, 94, 0.2);
        transform: translateY(-2px);
    }

    .country-tab:hover {
        border-color: rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.8);
    }

    .media-card:hover {
        transform: translateY(-4px);
        border-color: rgba(0, 112, 243, 0.2);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    }

    .media-card:hover .media-visual img {
        transform: scale(1.05);
    }
}

.media-type-badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.media-type-badge.urgent {
    background: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    animation: urgentPulse 2s ease-in-out infinite;
}

@keyframes urgentPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.media-country-badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

/* Media Info */
.media-info {
    padding: 1rem 1.1rem 1.15rem;
}

.media-info h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.media-info p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.55;
    margin-bottom: 0.5rem;
}

.media-date {
    font-size: 0.68rem;
    color: var(--primary-accent);
    font-weight: 600;
}

/* Empty State */
.gallery-empty {
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 1rem;
}

.empty-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.4;
}

.gallery-empty h3 {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.gallery-empty p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Bottom Trust */
.trust-bottom {
    text-align: center;
    margin-top: 3rem;
    padding: 2.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(34, 197, 94, 0.12);
    border-radius: 20px;
}

.trust-bottom-icon {
    width: 52px;
    height: 52px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #22c55e;
}

.trust-bottom h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.trust-bottom p {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto 1.25rem;
    line-height: 1.6;
}

.trust-bottom-btn {
    display: inline-block;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

@media (hover: hover) and (pointer: fine) {
    .trust-bottom-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
    }
}

/* Filter Animation */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes transFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .trust-bar {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-card.featured {
        grid-column: auto;
    }

    .trans-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 600px) {
    .transparency-main {
        padding: 1.5rem 1rem 3rem;
        /* Added generous top padding to clear sticky navbar and match visual rhythm */
    }

    .trans-header {
        padding: 1rem 0 1.5rem;
    }

    .trans-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .trans-subtitle {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .trust-bar {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .trust-item {
        padding: 1rem;
    }

    .media-gallery {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .media-visual {
        height: 200px;
    }

    .media-card.featured .media-visual {
        height: 220px;
    }

    /* Premium Horizontal Scroll for Tabs */
    .country-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 0.4rem;
        padding-bottom: 0.5rem;
        padding-right: 1.5rem;
        /* Allow last item to be scrolled fully into view */

        /* Hide scrollbar but keep functionality */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .country-filter::-webkit-scrollbar {
        display: none;
    }

    .country-tab {
        padding: 0.6rem 1.1rem;
        font-size: 0.82rem;
        flex-shrink: 0;
    }

    .trust-bottom {
        padding: 1.75rem 1.25rem;
        margin-top: 2rem;
    }

    .trust-bottom h3 {
        font-size: 1.15rem;
    }

    .trust-bottom p {
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .trans-title {
        font-size: 1.5rem;
    }

    .trust-item {
        padding: 0.8rem;
    }
}