/* Button Fix CSS - Ana sayfadaki butonların görünümünü düzeltir */

/* Ana buton stilleri */
.btn.w-inline-block {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    min-width: fit-content;
}

/* Buton arka planı */
.btn__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-light-tint, #f8f9fa);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    z-index: 0;
}

/* Buton metni */
.btn__text {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

.btn__span {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--color-dark, #333);
}

/* Arrow container */
.arrow {
    position: relative;
    width: 2rem;
    height: 2rem;
    background-color: var(--color-primary, #00d084);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 2;
    flex-shrink: 0;
}

/* Arrow background */
.arrow__bg {
    position: absolute;
    top: 15%;
    left: 15%;
    right: 15%;
    bottom: 15%;
    background-color: var(--color-dark, #333);
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

/* Arrow boxes */
.arrow__box {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    transform: translate(0%, 0%) rotate(-135deg);
}

.arrow__box.is--duplicate {
    color: #74f5a1;
    left: -100%;
    top: 100%;
}

/* Arrow SVG */
.arrow__svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke: currentColor;
    fill: none;
}

/* Hover effects */
@media (hover: hover) and (pointer: fine) {
    .btn:hover .btn__bg {
        left: -0.25rem;
        top: -0.25rem;
        right: -0.25rem;
        bottom: -0.25rem;
    }

    .btn:hover .arrow__bg {
        left: -0.25rem;
        top: -0.25rem;
        right: -0.25rem;
        bottom: -0.25rem;
    }

    .btn:hover .arrow__box {
        transform: translate(100%, -100%) rotate(-135deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn.w-inline-block {
        padding: 0.6rem 1.2rem;
        gap: 0.6rem;
    }

    .arrow {
        width: 1.8rem;
        height: 1.8rem;
    }

    .arrow__svg {
        width: 1.1rem;
        height: 1.1rem;
    }

    .btn__span {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .btn.w-inline-block {
        padding: 0.5rem 1rem;
        gap: 0.5rem;
    }

    .arrow {
        width: 1.6rem;
        height: 1.6rem;
    }

    .arrow__svg {
        width: 1.6rem;
        height: 1.6rem;
    }

    .btn__span {
        font-size: 0.8rem;
    }
}

/* Specific button theme fixes */
.btn[data-btn-theme="default"] {
    background: transparent;
}

.btn[data-btn-theme="default"]:hover {
    background: transparent;
}

.btn[data-btn-theme="default"] .btn__bg {
    background-color: #f8f9fa;
}

.btn[data-btn-theme="default"]:hover .btn__bg {
    background-color: #e9ecef;
}

/* Center alignment for CTA buttons */
.cta-center,
.publications-cta,
.events-section__cta,
.compare-section .mt-6,
.growing-tiles-section .mt-6 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
}

/* Fix for any layout issues */
.btn.w-inline-block * {
    box-sizing: border-box;
}

/* Ensure proper stacking */
.btn.w-inline-block {
    z-index: 1;
}

.btn.w-inline-block:hover {
    z-index: 2;
}