/* ====== */
/* ====== Base Button Styles ====== */
/* ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    transition: all 0.3s ease;
    font-family: sans-serif;
    /* Or inherit from body */
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    box-sizing: border-box;
    line-height: 1.2;
}

/* Telefon */
@media (max-width: 767px) {
	.btn {
		padding: 0.50rem 1rem;
		font-weight: 500;
	}

	.btn-primary {
		font-size: 0.8rem;
		padding: 0.8rem 1.5rem;
	}
}

/* ====== */
/* ====== Button Variations ====== */
/* ====== */

/* 1. Primary Button (Solid Color) */
.btn-primary {
    background-color: var(--primary);
    /* Dark Green from image */
    color: var(--white);
    font-size: 1rem;
    padding: 1rem 2rem;
    /* Slightly larger as per image */
}

.btn-primary:hover {
    background-color: var(--primary-600);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 59, 56, 0.2);
}

/* 2. Outline Button */
.btn-outline {
    background-color: transparent;
    border-color: var(--border-secondary);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--border-primary);
    background-color: var(--primary);
    color: var(--white);
}

/* 3. Animated Arrow Button */
.btn-animated-arrow {
    background-color: transparent;
    border-color: transparent;
    color: var(--text-primary);
    padding: 0;
    height: 48px;
    overflow: hidden;
    position: relative;
}

/* Internal elements for Animated Arrow Button */
.btn-animated-arrow .btn-content {
    display: flex;
    align-items: center;
    padding: 0 0.5rem;
    z-index: 1;
}

.btn-animated-arrow .btn-text span {
    font-weight: 500;
    font-size: 1rem;
}

.btn-animated-arrow .arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-secondary);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    flex-shrink: 0;
    transform-origin: left center;
}

.btn-animated-arrow .arrow svg {
    width: 18px;
    height: 18px;
    display: block;
    transform: rotate(-45deg);
}

/* Animation States */
.btn-animated-arrow .arrow.first {
    width: 0;
    opacity: 0;
    margin-right: 0;
    border-width: 0;
    transform: scale(0);
}

.btn-animated-arrow .arrow.second {
    width: 40px;
    opacity: 1;
    margin-left: 0.2rem;
    transform: scale(1);
    color: white;
}

/* Hover States */
.btn-animated-arrow:hover .arrow.first {
    width: 40px;
    opacity: 1;
    margin-right: 0.2rem;
    border-width: 1px;
    border-color: var(--primary);
    background-color: var(--primary);
    color: var(--white);
    transform: scale(1);
}

.btn-animated-arrow:hover .arrow.first svg {
    color: var(--white);
    /* Change icon color to white for contrast */
}

/* Ensure generic btn hover also applies if needed */
.btn:hover .arrow.first {
    background-color: var(--primary);
}

.btn-animated-arrow:hover .arrow.second {
    width: 0;
    opacity: 0;
    margin-left: 0;
    border-width: 0;
    transform: scale(0);
}

/* 4. Plain Button (Link Style with Sliding Underline) */
.btn-plain {
    position: relative;
    color: var(--text-primary);
    text-decoration: none;
    padding: 2px 0px;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
    cursor: pointer;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
    background: none;
    border: none;
    border-radius: 0;
}

.btn-plain::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.btn-plain:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* 5. Size Modifiers */
.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
}

/* 6. Text Reveal Animation Button */
.btn-hover-reveal .btn-text {
    position: relative;
    overflow: hidden;
    display: block;
    line-height: 1.2;
}

.btn-hover-reveal .text-default {
    display: block;
    transform: translateY(0%) rotate(0.001deg);
    transition: all 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    white-space: nowrap;
    transition-delay: -0.05s;
}

.btn-hover-reveal .text-hover {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    transform: translateY(140%) rotate(10deg);
    transition: all 0.5s cubic-bezier(0.7, 0, 0.3, 1);
    width: 100%;
    transition-delay: 0s;
}

.btn-hover-reveal:hover .btn-text .text-default {
    transform: translateY(-140%) rotate(-10deg);
    transition-delay: 0s;
}

.btn-hover-reveal:hover .btn-text .text-hover {
    transform: translateY(0%) rotate(0.001deg);
    transition-delay: -0.05s;
}

/* Color specific for Plain button reveal */
.btn-plain.btn-hover-reveal .text-hover,
.btn-plain.btn-hover-reveal:hover .btn-text .text-default {
    color: var(--primary);
}

/* Blog Hero'da beyaz renk için özel stil */
.blog-archive-hero .btn-animated-arrow {
    color: var(--white);
}

.blog-archive-hero .btn-animated-arrow .arrow {
    border-color: rgba(255, 255, 255, 0.3);
}

.blog-archive-hero .btn-animated-arrow .arrow svg {
    color: var(--white);
}

.blog-archive-hero .btn-animated-arrow:hover .arrow.first {
    border-color: var(--white);
    background-color: var(--white);
}

.blog-archive-hero .btn-animated-arrow:hover .arrow.first svg {
    color: var(--primary);
}

/* White Background Button for Text Grid Section */
.btn-white {
    background-color: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background-color: var(--gray-100);
}

/* Footer Menu Button Styles */
.footer-menu .btn-plain {
    font-size: 2rem;
    font-weight: 400;
}

/* Footer Social Media Button Styles */
.col-row-socials .btn-plain {
    font-size: 0.875rem;
    font-weight: 400;
    color: #737373;
}

.col-row-socials .btn-plain:hover {
    color: #000;
}