/* GS Hero Slider Frontend CSS - v20.4.2 */

.gshsv20-border-toggle-container {
    margin-bottom: 15px;
    text-align: right;
    padding: 0 10px;
}

.gshsv20-border-toggle {
    background: #4a6fa5;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.gshsv20-border-toggle:hover {
    background: #3a5a8c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gshsv20-border-toggle.border-off {
    background: #6c757d;
}

.gshsv20-border-toggle .border-icon {
    font-size: 16px;
}

.gshsv20-border-toggle .border-status {
    font-weight: 600;
    margin-left: 5px;
}

.gshsv20-wrap.gshsv20-with-border .gshsv20 {
    border: var(--gshs-border-width, 3px) solid var(--gshs-border-color, #4a6fa5);
    border-radius: var(--gshs-radius, 14px);
    box-shadow: var(--gshs-box-shadow, 0 4px 15px rgba(0,0,0,0.2));
    overflow: hidden;
}

.gshsv20-wrap.gshsv20-no-border .gshsv20 {
    border: none !important;
    box-shadow: none !important;
}

/* Mevcut slider stilleri */
.gshsv20-wrap {
    position: relative;
    margin-top: var(--gshs-top-offset, 0px);
}

.gshsv20 {
    position: relative;
    overflow: hidden;
    border-radius: var(--gshs-radius, 14px);
    aspect-ratio: var(--gshs-ratio, 16/9);
    height: var(--gshs-h, auto);
    max-width: var(--gshs-maxw, 1200px);
    margin: 0 auto;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .gshsv20 {
        aspect-ratio: var(--gshs-mratio, var(--gshs-ratio, 16/9));
        height: var(--gshs-hm, auto);
    }
    
    .gshsv20-wrap.is-full {
        padding: 0 !important;
    }
    
    .gshsv20-border-toggle-container {
        text-align: center;
        margin-bottom: 10px;
    }
}

.gshsv20-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.gshsv20-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--gshs-speed, 350ms) ease;
    z-index: 1;
}

.gshsv20-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.gshsv20-media {
    position: relative;
    width: 100%;
    height: 100%;
}

.gshsv20-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0, var(--gshs-ov, 0));
    z-index: 1;
}

.gshsv20-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--gshs-pos, 50% 50%);
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Hover Effects */
.gshsv20-hover-zoom .gshsv20-slide.is-active .gshsv20-img {
    transform: scale(1.05);
}

.gshsv20-hover-blur .gshsv20-slide.is-active .gshsv20-img {
    filter: blur(3px);
}

.gshsv20-hover-grayscale .gshsv20-slide.is-active .gshsv20-img {
    filter: grayscale(100%);
}

.gshsv20-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 50%, rgba(0,0,0, var(--gshs-ov, 0)) 100%);
    z-index: 2;
}

.gshsv20-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    z-index: 3;
    color: white;
}

.gshsv20-title {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
}

.gshsv20-slide.is-active .gshsv20-title {
    opacity: 1;
}

.gshsv20-excerpt {
    margin: 0 0 15px 0;
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
}

.gshsv20-chipline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.gshsv20-chip {
    background: var(--gshs-active, #F0C400);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.gshsv20-line {
    flex: 1;
    height: 2px;
    background: rgba(255,255,255,0.3);
}

.gshsv20-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.gshsv20-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    background: transparent;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gshsv20-dot.is-active,
.gshsv20-dot:hover {
    background: var(--gshs-active, #F0C400);
    border-color: var(--gshs-active, #F0C400);
    color: #000;
}

.gshsv20-nav.is-dots .gshsv20-dot {
    width: 12px;
    height: 12px;
    font-size: 0;
}

.gshsv20-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.gshsv20-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: var(--gshs-active, #F0C400);
    border-radius: 50%;
    animation: gshsv20-spin 1s linear infinite;
}

@keyframes gshsv20-spin {
    to { transform: rotate(360deg); }
}

.gshsv20-view-count {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

.gshsv20-view-count .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Arrow buttons - inline styles will override these */
.gshsv20-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    border: none;
    background: rgba(0,0,0,0.26);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gshsv20-arrow:hover {
    background: rgba(0,0,0,0.4);
}

.gshsv20-arrow.prev {
    left: 8px;
}

.gshsv20-arrow.next {
    right: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .gshsv20-text {
        padding: 20px;
    }
    
    .gshsv20-title {
        font-size: 22px;
    }
    
    .gshsv20-excerpt {
        font-size: 14px;
    }
    
    .gshsv20-nav {
        bottom: 15px;
    }
    
    .gshsv20-dot {
        width: 35px;
        height: 35px;
    }
}

/* Animasyonlar */
@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Social sharing */
.gshsv20-social {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.gshsv20-share {
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.gshsv20-share:hover {
    background: rgba(0,0,0,0.9);
}

.gshsv20-social-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 5px 0;
    min-width: 120px;
}

.gshsv20-social:hover .gshsv20-social-links {
    display: block;
}

.gshsv20-social-links a {
    display: block;
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.gshsv20-social-links a:hover {
    background: #f5f5f5;
}

/* CTA Button */
.gshsv20-cta {
    position: absolute;
    z-index: 10;
}

.gshsv20-cta-bottom-right {
    bottom: 20px;
    right: 20px;
}

.gshsv20-cta-bottom-left {
    bottom: 20px;
    left: 20px;
}

.gshsv20-cta-top-right {
    top: 20px;
    right: 20px;
}

.gshsv20-cta-button {
    background: var(--gshs-active, #F0C400);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gshsv20-cta-filled .gshsv20-cta-button {
    background: var(--gshs-active, #F0C400);
    color: #000;
}

.gshsv20-cta-outline .gshsv20-cta-button {
    background: transparent;
    border: 2px solid var(--gshs-active, #F0C400);
    color: var(--gshs-active, #F0C400);
}

.gshsv20-cta-ghost .gshsv20-cta-button {
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(10px);
}

.gshsv20-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Mobile fullscreen */
@media (max-width: 768px) {
    .gshsv20[data-mfullscreen="true"] {
        height: calc(100vh - var(--gshs-moff, 0px)) !important;
        border-radius: 0 !important;
        margin-top: 0 !important;
    }
    
    .gshsv20-wrap[data-mfullscreen="true"] {
        margin-top: 0 !important;
    }
}

/* Theme variations */
.gshsv20-theme-dark .gshsv20-text {
    color: white;
}

.gshsv20-theme-light .gshsv20-text {
    color: #333;
}

.gshsv20-theme-light .gshsv20-overlay {
    background: linear-gradient(to bottom, transparent 50%, rgba(255,255,255,0.7) 100%);
}

.gshsv20-theme-light .gshsv20-bg {
    background-color: rgba(255,255,255, var(--gshs-ov, 0.7));
}

.gshsv20-theme-auto {
    /* Sistem temasına göre değişecek - JavaScript ile yönetilebilir */
}

/* === v21 HARD RESET BORDER === */
.gshsv20-wrap, .gshsv20, .gshsv20-wrap * { border: 0 !important; }
.gshsv20-wrap { outline: none !important; box-shadow: none !important; background: transparent !important; }
/* Nav mobile safety (even though not rendered) */
@media (max-width: 768px){ .gshsv20-nav{ display:none !important; } }


/* === v21.0.1 FIX: remove dark overlay + kill theme borders === */
.gshsv20, .gshsv20 * { box-sizing: border-box; }
.gshsv20, .gshsv20-wrap { outline: none !important; }
.gshsv20 { border: none !important; box-shadow: none !important; background: transparent !important; }
.gshsv20-wrap { background: transparent !important; border: none !important; box-shadow: none !important; }

/* Remove image darkening layers */
.gshsv20-bg { background: none !important; }
.gshsv20-overlay { display: none !important; }

/* Mobile: hard hide any nav if theme re-injects */
@media (max-width: 768px){
  .gshsv20-nav { display: none !important; }
}


/* === FINAL Progress Bar – rakamların ALTINDA === */
.gshsv20-progress{
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 10px;              /* ⬅️ RAKAMLARIN ALTINDA */
  height: 2px;
  background: rgba(255,255,255,.22);
  border-radius: 999px;
  z-index: 9;
  pointer-events: none;
}

.gshsv20-progress-bar{
  display: block;
  width: 0%;
  height: 100%;
  background: var(--gshs-active, #F0C400);
  border-radius: 999px;
}

/* Rakamları biraz yukarı al (nefes payı) */
.gshsv20-nav{
  bottom: 26px;
}


/* keep nav a bit away when progress exists (PHP inline style will set bottom too) */
.gshsv20-nav{ z-index: 10; }

/* If category line is used, keep it away from nav */
.gshsv20-chipline{ margin-top: 14px; }
.gshsv20-chipline .gshsv20-line{ height:2px; background: rgba(255,255,255,.22); }


/* === v21.0.4 Progress Bar (desktop, autoplay) === */
.gshsv20-progress{
  position:absolute;
  left: 120px; /* leave space for category chip */
  right: 24px;
  bottom: 28px; /* above nav */
  height: 2px;
  background: rgba(255,255,255,.22);
  border-radius: 2px;
  overflow:hidden;
  z-index: 11;
  pointer-events:none;
}
.gshsv20-progress-fill{
  display:block;
  height:100%;
  width:100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--gshs-active, #F0C400);
}
@keyframes gshsv20ProgressFill{
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
/* progress running/paused handled via JS (animation-play-state) */

/* If progress enabled, keep nav a bit lower for breathing room */
.gshsv20.has-progress .gshsv20-nav{ bottom: 18px; }

/* Safety: if category chipline is shown, nav stays higher (already ok) */
