/**
 * Ana Sayfa için Özel CSS Dosyası
 */

/* Hero Bölümü Animasyonlar */
@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-10px) translateX(5px);
    }

    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes float-delay {
    0% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(10px) translateX(-5px);
    }

    100% {
        transform: translateY(0) translateX(0);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 7s ease-in-out infinite;
}

/* Domain Arama Formu Özellikleri */
.domain-search input {
    transition: all 0.3s ease;
    height: 60px;
    border-width: 1px;
    background-color: #fff;
    box-sizing: border-box;
}

.domain-search button {
    height: 60px;
    box-sizing: border-box;
}

.domain-search input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.2);
}

.domain-search input:focus+label {
    color: #4f46e5;
    font-size: 0.75rem;
    transform: translateY(-18px);
    background-color: white;
    padding: 0 0.25rem;
}

.domain-search label {
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.domain-search input:not(:placeholder-shown)+label {
    font-size: 0.75rem;
    transform: translateY(-18px);
    background-color: white;
    padding: 0 0.25rem;
    color: #4f46e5;
}

/* Get Started Butonu */
.get-started-btn {
    background-color: #4f46e5;
    color: white;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.get-started-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.get-started-btn:hover {
    background-color: #4338ca;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(79, 70, 229, 0.5);
}

.get-started-btn:hover::before {
    left: 100%;
}

.get-started-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -4px rgba(79, 70, 229, 0.4);
}

/* Domain Uzantı Kutuları */
.domain-ext {
    transition: all 0.3s ease;
}

.domain-ext:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px -5px rgba(0, 0, 0, 0.1);
    border-color: #4f46e5;
}

/* Flash Sale Yıldız Animasyonları */
@keyframes twinkle {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.star-dot {
    position: absolute;
    background-color: white;
    border-radius: 50%;
    opacity: 0;
    animation: twinkle 4s infinite;
}

/* Flash Sale Cards */
.flash-sale-card {
    transition: all 0.3s ease;
}

.flash-sale-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Feature Cards */
.feature-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.09), 0 4px 8px rgba(0, 0, 0, 0.04);
    border-color: #e0e7ff;
}

.feature-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 12px;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    background-color: currentColor;
    opacity: 0.1;
}

/* Deals Section */
.deal-card {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
}

.deal-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10), 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* CTA buton: varsayılan → hover (grup hover ile dolgu rengi) */
.deal-cta-btn {
    border-width: 1.5px;
    border-style: solid;
    transition: all 0.3s ease;
}

.deal-cta-btn.blue  { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.deal-card:hover .deal-cta-btn.blue  { background: #2563eb; color: #fff; border-color: #2563eb; }

.deal-cta-btn.indigo { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.deal-card:hover .deal-cta-btn.indigo { background: #4f46e5; color: #fff; border-color: #4f46e5; }

.deal-cta-btn.green  { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.deal-card:hover .deal-cta-btn.green  { background: #16a34a; color: #fff; border-color: #16a34a; }

.deal-cta-btn.pink   { background: #fdf2f8; color: #be185d; border-color: #fbcfe8; }
.deal-card:hover .deal-cta-btn.pink   { background: #db2777; color: #fff; border-color: #db2777; }

/* Responsive Adjustments */
@media (max-width: 640px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .domain-search label {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .flash-sale-card {
        padding: 1.5rem;
    }

    .flash-sale-card .text-5xl {
        font-size: 2.5rem;
    }
}

/* Premium Hosting Paketleri Animasyonları */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes float-delay {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-slow {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 0.4;
    }
}

/* Hosting Kartları ve Animasyonları */
.hosting-card {
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.hosting-card > div:first-child {
    flex: 1;
}

.hosting-card:hover {
    transform: translateY(-10px);
}

.hosting-card .bg-gradient-to-r {
    transition: all 0.3s ease;
}

/* Hover efektinde buton içerisindeki metin ve ikonları beyaz yap */
.hosting-card .bg-gradient-to-r span,
.hosting-card .bg-gradient-to-r i.fa-chevron-right {
    transition: color 0.3s ease;
}

/* Fiyatlar ve başlıklar için renk değişimini engelle - BUTON HARİÇ */
.hosting-card:hover h3,
.hosting-card:hover p:not(a p),
.hosting-card:hover span.text-4xl,
.hosting-card:hover span.text-lg.text-gray-500,
.hosting-card:hover .text-3xl:not(a .text-3xl),
.hosting-card:hover .text-4xl:not(a .text-4xl),
.hosting-card:hover .text-gray-500:not(a .text-gray-500),
.hosting-card:hover .text-gray-600:not(a .text-gray-600),
.hosting-card:hover .text-gray-700:not(a .text-gray-700),
.hosting-card:hover .text-gray-800:not(a .text-gray-800),
.hosting-card:hover .text-gray-900:not(a .text-gray-900),
.hosting-card:hover .font-bold:not(a .font-bold) {
    color: inherit !important;
}

/* Buton içindeki metinlerin HER ZAMAN beyaz kalmasını sağla */
.hosting-card a.bg-gradient-to-r span,
.hosting-card a.bg-gradient-to-r .text-white,
.hosting-card a.bg-gradient-to-r i {
    color: white !important;
}

/* İkonlar için renk değişimini engelle */
.hosting-card:hover .fab.fa-wordpress,
.hosting-card:hover .fas.fa-server,
.hosting-card:hover .fas.fa-hdd,
.hosting-card:hover .fas.fa-cloud,
.hosting-card:hover .fas.fa-cogs,
.hosting-card:hover i:not(.fa-chevron-right) {
    color: inherit !important;
}

/* Website Builder Bölümü */
#hosting-packages .hosting-card {
    transition: all 0.3s ease;
}

#hosting-packages .hosting-card:hover {
    transform: translateY(-10px);
}

/* Website Builder Butonları - Sadece chevron ikonlarının beyaz kalmasını sağla */
#hosting-packages .bg-gradient-to-r .fa-chevron-right {
    transition: color 0.3s ease, transform 0.3s ease;
}

#hosting-packages .bg-gradient-to-r:hover .fa-chevron-right {
    color: white !important;
    transform: translateX(3px);
}

/* Datacenter Bölümü Başlık ve Metin Stilleri */
.datacenter-section h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.datacenter-section p.text-xl {
    font-size: 1.25rem;
    line-height: 1.6;
}

.datacenter-section h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.datacenter-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.datacenter-section .text-gray-700 {
    font-weight: 500;
}

/* Harita Lokasyon Kutuları */
.datacenter-section .location-label {
    padding: 2px 4px;
    white-space: nowrap;
    border-radius: 4px;
    pointer-events: none;
    /* Hover efektini engeller */
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 30;
}

.datacenter-section .data-center-marker .location-label {
    min-width: 70px;
    transition: none;
    /* Hover animasyonunu devre dışı bırakır */
}

/* Animasyonlar */
@keyframes pulse-bg {
    0% {
        background-color: rgba(255, 255, 255, 0.95);
    }

    50% {
        background-color: rgba(238, 242, 255, 0.95);
    }

    100% {
        background-color: rgba(255, 255, 255, 0.95);
    }
}

.datacenter-section .location-label {
    animation: pulse-bg 3s ease-in-out infinite;
}

/* Konum Kutularına Farklı Zamanlarda Animasyon Ekle */
.datacenter-section .data-center-marker:nth-child(1) .location-label {
    animation-delay: 0s;
}

.datacenter-section .data-center-marker:nth-child(2) .location-label {
    animation-delay: 1s;
}

.datacenter-section .data-center-marker:nth-child(3) .location-label {
    animation-delay: 2s;
}

/* CDN noktalarının konumlarını düzenle */
.datacenter-section .cdn-pin {
    height: 6px;
}

/* Düzenlemeler için mobil uyumlu stiller */
@media (max-width: 768px) {
    .datacenter-section h2 {
        font-size: 2rem;
    }

    .datacenter-section h4 {
        font-size: 1.25rem;
    }

    .datacenter-section .data-center-marker .location-label,
    .datacenter-section .location-label {
        padding: 1px 3px;
        font-size: 8px;
        min-width: 60px;
    }
}

/* Listelerdeki öğeler için alan ayarla */
.datacenter-section .grid-cols-2>div,
.datacenter-section .grid-cols-3>div {
    padding: 3px 0;
}

/* Kartlara hover efekti ekle */
.datacenter-section .bg-white {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.datacenter-section .bg-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Harita ve Veri Merkezi Animasyonları */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

@keyframes pulse-glow-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 5px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

@keyframes float-marker {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes label-appear-down {
    0% {
        opacity: 0;
        transform: translate(-50%, -5px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Harita Lokasyon Label ve Marker Stilleri */
.datacenter-section .world-map-container .location-label {
    transition: all 0.3s ease;
    animation: float-marker 3s ease-in-out infinite;
}

.datacenter-section .world-map-container .data-center-marker .w-3.h-3.bg-indigo-600 {
    animation: pulse-glow 2s infinite;
}

.datacenter-section .world-map-container .w-2.h-2.bg-blue-500 {
    animation: pulse-glow-blue 2s infinite;
}

.datacenter-section .world-map-container .data-center-pin,
.datacenter-section .world-map-container .cdn-pin {
    animation: float-marker 3s ease-in-out infinite;
}

/* Haritadaki konum noktalarının hover'ını kaldır */
.datacenter-section .grid-cols-3 .flex,
.datacenter-section .grid-cols-2 .flex {
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.3s ease;
}

/* Hover'ı kaldır - noktalar artık hover olmasın */
.datacenter-section .grid-cols-3 .flex:hover,
.datacenter-section .grid-cols-2 .flex:hover {
    background-color: transparent;
    transform: none;
}

/* Harita Legend stilleri */
.datacenter-section .world-map-container .absolute.bottom-2.right-2 {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
    .datacenter-section h2 {
        font-size: 2.2rem;
    }

    .datacenter-section h4 {
        font-size: 1.5rem;
    }

    .datacenter-section p.text-xl {
        font-size: 1.1rem;
    }
}

/* Domain Kartları Stilleri */
.domain-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.domain-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.domain-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.domain-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.domain-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 1rem;
}

.domain-action {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background-color: #4f46e5;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-top: auto;
}

.domain-action:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
    color: white !important;
}