/* Altunsa Header Plugin CSS */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

/* ===== X ekseni taşma engeli ===== */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* ===== Font Awesome override (tema font-family ezmesini engelle) ===== */
.altunsa-header-main .fas::before,
.altunsa-header-main .fa-solid::before,
.altunsa-header-main .fab::before,
.altunsa-header-main .fa-brands::before,
.altunsa-header-main .far::before,
.altunsa-header-main .fa-regular::before,
.altunsa-canvas-menu .fas::before,
.altunsa-canvas-menu .fa-solid::before,
.altunsa-canvas-menu .fab::before,
.altunsa-canvas-menu .fa-brands::before,
.altunsa-canvas-menu .far::before,
.altunsa-canvas-menu .fa-regular::before,
#altunsaSearchCanvas .fas::before,
#altunsaSearchCanvas .fa-solid::before,
#altunsaSearchCanvas .fab::before,
#altunsaSearchCanvas .fa-brands::before,
#altunsaSearchCanvas .far::before,
#altunsaSearchCanvas .fa-regular::before {
    font-family: inherit !important;
}

.altunsa-header-main .fas,
.altunsa-header-main .fa-solid,
.altunsa-canvas-menu .fas,
.altunsa-canvas-menu .fa-solid,
#altunsaSearchCanvas .fas,
#altunsaSearchCanvas .fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.altunsa-header-main .far,
.altunsa-header-main .fa-regular,
.altunsa-canvas-menu .far,
.altunsa-canvas-menu .fa-regular,
#altunsaSearchCanvas .far,
#altunsaSearchCanvas .fa-regular {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 400 !important;
}

.altunsa-header-main .fab,
.altunsa-header-main .fa-brands,
.altunsa-canvas-menu .fab,
.altunsa-canvas-menu .fa-brands,
#altunsaSearchCanvas .fab,
#altunsaSearchCanvas .fa-brands {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

/* ===== HEADER ANA STİL ===== */
.altunsa-header-main {
    color: #457530;
    z-index: 1050;
    font-family: 'Roboto Condensed', sans-serif;
    background: transparent;
    direction: ltr !important;
    unicode-bidi: bidi-override;
    text-align: left;
}

.altunsa-canvas-header-main {
    color: #208235;
    z-index: 1050;
    font-family: 'Roboto Condensed', sans-serif;
    direction: ltr !important;
    unicode-bidi: bidi-override;
    text-align: left;
}

.altunsa-header-logo {
    height: 100px;
}

/* Yaprak arka plan görseli */
.altunsa-header-leaf-bg {
    max-width: none;
    position: absolute;
    right: -150px;
    top: -230px;
    width: 750px;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
    transition: transform 0.9s ease-in-out;
}

body.altunsa-canvas-active .altunsa-header-main .altunsa-header-leaf-bg {
    transform: scale(15) rotate(-25deg);
}

.altunsa-canvas-leaf-bg {
    position: absolute;
    right: -150px !important;
    top: -230px !important;
    width: 750px !important;
    opacity: 1;
    z-index: 0;
    pointer-events: none;
    max-width: none;
}
/* Sosyal medya grubu */
.altunsa-header-social-group {
    padding-top: 5px;
    z-index: 1;
    position: relative;
}

.altunsa-header-social-icons .fab {
    font-size: 22px;
    color: #457530;
    transition: color 0.2s;
}

.altunsa-header-social-icons .fab:hover {
    color: #1f3001;
}

.altunsa-header-social-label {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.3rem;
}

/* Dikey çizgi */
.altunsa-header-divider {
    height: 32px;
    min-width: 2px;
    width: 6px;
    opacity: 1;
    border-radius: 3px;
    z-index: 1;
    display: inline-block;
    vertical-align: middle;
}

/* EN ve arama grubu */
.altunsa-header-lang-search {
    z-index: 1;
    position: relative;
}

.altunsa-header-lang {
    font-size: 22px;
    cursor: pointer;
}

.altunsa-header-search-btn {
    z-index: 1;
    position: relative;
}

.altunsa-header-search-icon {
    font-size: 22px;
    color: #457530;
    padding-top: 5px;
}

/* Menü butonu */
.altunsa-header-menu-btn {
    font-size: 22px;
    z-index: 1;
    position: relative;
    cursor: pointer;
    font-weight: 900;
    font-family: 'Roboto Condensed', sans-serif;
}

.altunsa-canvas-header-menu-btn {
    margin-right: 15rem;
    font-size: 22px;
    z-index: 1;
    position: relative;
    cursor: pointer;
    font-weight: 900;
    font-family: 'Roboto Condensed', sans-serif;
}

/* ===== Polylang Dil Değiştirici ===== */
.altunsa-lang-switcher {
    position: relative;
    display: inline-block;
}

.altunsa-lang-toggle {
    cursor: pointer;
    user-select: none;
}

.altunsa-lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    min-width: 140px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    z-index: 100000;
    overflow: hidden;
}

.altunsa-lang-dropdown.active {
    display: block;
}

.altunsa-lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.altunsa-lang-dropdown a:hover {
    background: #f0f8f0;
}

.altunsa-lang-dropdown a.active {
    background: #208235;
    color: #fff;
}

.altunsa-lang-dropdown img {
    width: 20px;
    height: 14px;
    border-radius: 2px;
}

/* ===== CANVAS MENÜ ===== */
.altunsa-canvas-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../images/canvasbg.svg');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    direction: ltr !important;
    unicode-bidi: bidi-override;
    text-align: left;
}

.altunsa-canvas-menu.active {
    opacity: 1;
    visibility: visible;
}

.altunsa-canvas-header {
    position: relative;
    z-index: 10000;
}

.altunsa-canvas-header .altunsa-canvas-leaf-bg {
    top: 25vh !important;
    width: 900px;
    right: -250px;
    filter: drop-shadow(10px 10px 30px rgba(0,0,0,0.3));
}

/* Canvas navigasyon menüsü */
.altunsa-canvas-nav-menu {
    gap: 3rem !important;
    z-index: 1;
    position: relative;
}

.altunsa-canvas-nav-link {
    color: #208235 !important;
    text-decoration: none;
    font-size: 22px;
    font-weight: 600;
    transition: color 0.3s ease;
    font-family: 'Roboto Condensed', sans-serif;
}

.altunsa-canvas-nav-link:hover {
    color: #457530 !important;
    text-decoration: none;
}

/* Overlay Menü */
.altunsa-overlay-menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
    opacity: 0;
    transform: scale(0.9);
    visibility: hidden;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out, visibility 0.4s ease-in-out;
    display: flex;
    justify-content: center;
}

.altunsa-overlay-menu.active {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

.altunsa-overlay-menu-content {
    width: 90%;
    max-width: 1200px;
}

/* Canvas content */
.altunsa-canvas-content {
    z-index: 15555;
    position: relative;
    width: 100%;
    height: calc(100vh - 80px);
    overflow: hidden;
}

/* ===== IOS KARTLAR ===== */
.altunsa-menu-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.3s ease;
}

.altunsa-menu-card-link:hover {
    text-decoration: none;
    color: inherit;
    transform: translateY(-5px);
}

.altunsa-ios-card {
    position: relative;
    overflow: hidden;
    border: 2px solid #db1222;
    border-radius: 20px;
    padding: 0;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100px;
}

.altunsa-ios-card .altunsa-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    z-index: 1;
    opacity: 0.1;
    background-color: white;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.altunsa-ios-card:hover .altunsa-card-bg {
    filter: brightness(1.4);
    opacity: 1;
    background-color: black;
}

.altunsa-ios-card .altunsa-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    z-index: 2;
    color: #208235;
    transition: color 0.3s ease;
    background-color: white;
}

.altunsa-ios-card:hover .altunsa-card-content {
    background-color: transparent;
}

.altunsa-ios-card:hover .altunsa-card-bg {
    filter: brightness(0.5);
}

.altunsa-ios-card .altunsa-card-content h5,
.altunsa-ios-card .altunsa-card-content p {
    transition: color 0.3s ease;
    margin: 0;
    font-family: 'Roboto Condensed', sans-serif;
}

.altunsa-ios-card .altunsa-card-content h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.altunsa-ios-card .altunsa-card-content p {
    font-size: 15px;
    color: #555;
}

.altunsa-ios-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.altunsa-ios-card:hover .altunsa-card-content {
    color: #ffffff;
}

.altunsa-ios-card:hover .altunsa-card-content p {
    color: #ffffff;
}

/* ===== CANVAS SOSYAL MEDYA ===== */
.altunsa-canvas-social-media {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 1556;
}

.altunsa-canvas-social-icons .fab {
    font-size: 24px;
    color: #fff;
    transition: color 0.3s ease, transform 0.3s ease;
}

.altunsa-canvas-social-icons .fab:hover {
    color: #457530;
    transform: scale(1.1);
}

.altunsa-canvas-social-label {
    margin-top: 10px;
    font-size: 14px;
}

/* ===== İLETİŞİM ===== */
.altunsa-contact-form-section {
    backdrop-filter: blur(10px);
    background: #ffffff00;
    padding: 40px;
    border-radius: 20px;
}

.altunsa-contact-form-title {
    color: #c41e3a;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Roboto Condensed', sans-serif;
}

.altunsa-contact-form .form-control {
    border: 2px solid #c41e3a;
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: rgba(196,30,58,0.05);
}

.altunsa-contact-form .form-control:focus {
    border-color: #a01729;
    box-shadow: 0 0 0 0.2rem rgba(196,30,58,0.25);
    background-color: white;
}

.altunsa-contact-submit-btn {
    background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    font-family: 'Roboto Condensed', sans-serif;
}

.altunsa-contact-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196,30,58,0.3);
}

.altunsa-contact-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.altunsa-contact-info-icon {
    background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.altunsa-contact-info-icon i {
    font-size: 24px;
    color: white;
}

.altunsa-contact-info-content p {
    font-size: 1.3rem;
    color: #c41e3a;
    margin: 0;
    line-height: 1.5;
    text-align: center;
}

/* ===== YAPRAK ANİMASYONLARI ===== */
.altunsa-floating-leaves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.altunsa-floating-leaf {
    position: absolute;
    width: 200px;
    opacity: 0.3;
    filter: brightness(0.3) sepia(1) hue-rotate(90deg) saturate(2);
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.altunsa-leaf-1 {
    top: 15%;
    left: 8%;
    animation-name: altunsaPulseRotate;
    animation-delay: 0s;
    animation-duration: 6s;
}

.altunsa-leaf-2 {
    top: 45%;
    left: 15%;
    animation-name: altunsaScaleWave;
    animation-delay: 2s;
    animation-duration: 8s;
    transform: scale(0.7);
}

.altunsa-leaf-4 {
    top: 65%;
    left: 50%;
    animation-name: altunsaFloatPulse;
    animation-delay: 1.5s;
    animation-duration: 7s;
}

@keyframes altunsaPulseRotate {
    0% { transform: scale(1) rotate(0deg); opacity: 0.2; }
    50% { transform: scale(1.4) rotate(180deg); opacity: 0.6; }
    100% { transform: scale(1) rotate(360deg); opacity: 0.2; }
}

@keyframes altunsaScaleWave {
    0%, 100% { transform: scale(1) translateY(0px); opacity: 0.25; }
    25% { transform: scale(1.2) translateY(-10px); opacity: 0.4; }
    50% { transform: scale(1.5) translateY(5px); opacity: 0.6; }
    75% { transform: scale(1.3) translateY(-5px); opacity: 0.45; }
}

@keyframes altunsaFloatPulse {
    0%, 100% { transform: scale(1) translateX(0px) translateY(0px); opacity: 0.3; }
    33% { transform: scale(1.3) translateX(8px) translateY(-8px); opacity: 0.5; }
    66% { transform: scale(1.1) translateX(-5px) translateY(8px); opacity: 0.7; }
}

/* ===== SEARCH CANVAS ===== */
#altunsaSearchCanvas {
    height: 250px !important;
    max-height: 250px;
    border-bottom: none;
    background: #ffffffc2;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(5px);
    direction: ltr !important;
    text-align: left;
}

#altunsaSearchCanvas .offcanvas-body {
    padding: 0;
}

.altunsa-search-canvas-inner {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 30px 25px;
    text-align: center;
}

.altunsa-search-close-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.altunsa-search-close-btn {
    background: none;
    border: none;
    color: #457530;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s ease;
}

.altunsa-search-close-btn:hover {
    color: #457530;
}

.altunsa-search-canvas-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #457530;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

.altunsa-search-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.altunsa-search-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #457530;
    background: transparent;
    color: #457530;
    padding: 15px 60px 15px 5px;
    font-size: 20px;
    font-family: 'Roboto Condensed', sans-serif;
    transition: border-color 0.3s ease;
    outline: none;
    border-radius: 0;
}

.altunsa-search-input::placeholder {
    color: #4575308f;
}

.altunsa-search-input:focus {
    border-bottom-color: #c41e3a;
    box-shadow: none;
}

.altunsa-search-submit-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #c41e3a;
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.altunsa-search-submit-btn:hover {
    background: #a01729;
    transform: translateY(-50%) scale(1.08);
}

/* ===== MOBİL NAV (CANVAS İÇİ) ===== */
.altunsa-canvas-mobile-nav {
    display: none;
    padding: 20px;
    margin: 0;
    background: white;
    border: none;
    border-radius: 16px;
}

.altunsa-mobile-menu-item {
    margin-bottom: 8px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    animation: altunsaSlideInUp 0.4s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.altunsa-mobile-menu-item:nth-child(1) { animation-delay: 0.1s; }
.altunsa-mobile-menu-item:nth-child(2) { animation-delay: 0.2s; }
.altunsa-mobile-menu-item:nth-child(3) { animation-delay: 0.3s; }
.altunsa-mobile-menu-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes altunsaSlideInUp {
    to { opacity: 1; transform: translateY(0); }
}

.altunsa-mobile-menu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border-color: #208235;
}

.altunsa-mobile-menu-item.active {
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    border-color: #208235;
}

.altunsa-mobile-menu-toggle {
    display: block;
    width: 100%;
    padding: 18px 20px;
    background: white !important;
    border: none;
    text-align: left;
    font-weight: 600;
    font-size: 18px;
    color: #2c3e50;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Roboto Condensed', sans-serif;
}

.altunsa-mobile-menu-toggle::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
    color: #208235;
    font-size: 12px;
}

.altunsa-mobile-menu-item.active .altunsa-mobile-menu-toggle::after {
    transform: translateY(-50%) rotate(180deg);
}

.altunsa-mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-top: 1px solid #e9ecef;
}

.altunsa-mobile-menu-item.active .altunsa-mobile-submenu {
    max-height: 300px;
}

.altunsa-mobile-submenu-item {
    padding: 12px 20px 12px 40px;
    border-bottom: 1px solid #f1f3f4;
    position: relative;
    transition: all 0.3s ease;
}

.altunsa-mobile-submenu-item:last-child {
    border-bottom: none;
}

.altunsa-mobile-submenu-item a {
    display: block;
    color: #495057;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding-left: 16px;
    font-family: 'Roboto Condensed', sans-serif;
}

.altunsa-mobile-submenu-item:hover a {
    color: #208235;
    transform: translateX(4px);
}

.altunsa-mobile-menu-icon {
    margin-right: 12px;
    font-size: 14px;
    color: #208235;
    width: 20px;
    text-align: center;
}

/* Genel font ayarı */
.altunsa-header-main *,
.altunsa-canvas-menu * {
    font-family: 'Roboto Condensed', sans-serif;
}
