/* Değişkenler ve Genel Stiller */

:root {
    --primary-color: #00bcd4;
    /* Açık Mavi/Turkuaz */
    --secondary-color: #ff4081;
    /* Canlı Pembe */
    --accent-color: #ffee58;
    /* Sarımsı Vurgu */
    --dark-bg: #1a1a2e;
    /* Koyu Mor/Mavi Arkaplan */
    --darker-bg: #0f0f1d;
    /* Daha koyu arkaplan */
    --card-bg: #21213e;
    /* Koyu kart arkaplanı */
    --text-color-light: #e0e0e0;
    --text-color-lighter: #f8f8f8;
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-instagram: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    --gradient-tiktok: linear-gradient(45deg, #69c9d0, #ee1d52);
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.3);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color-light);
    line-height: 1.6;
    overflow-x: hidden;
    /* Yatay kaydırmayı engelle */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}


/* Header ve Navigasyon */

header {
    background-color: var(--darker-bg);
    box-shadow: var(--shadow-dark);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 .fas {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color-light);
    font-weight: 600;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 5px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}


/* Hero (Ana Başlık Alanı) */

.hero {
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
    padding: 100px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect x="0" y="0" width="100" height="100" fill="%231a1a2e"/><path d="M50 0L100 50L50 100L0 50Z" fill="%232c2c4d" opacity="0.1"/><circle cx="50" cy="50" r="10" fill="%232c2c4d" opacity="0.1"/></svg>');
    background-size: 50px 50px;
    opacity: 0.3;
    animation: backgroundMove 60s linear infinite;
}

@keyframes backgroundMove {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 1000px 1000px;
    }
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    color: var(--text-color-lighter);
    line-height: 1.2;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-color-light);
    max-width: 600px;
    margin: 0 auto;
}


/* Kategori Sekmeleri */

.category-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-button {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color-light);
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-button.active {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: var(--text-color-lighter);
    box-shadow: var(--shadow-light);
}


/* Araçlar Bölümü */

.tools-section {
    padding: 80px 0;
}

.tool-category {
    display: none;
    /* JS ile kontrol edilecek */
    animation: fadeIn 0.5s ease-out forwards;
}

.tool-category.active {
    display: block;
}

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

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}


/* Araç Kartı Tasarımı */

.tool-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 2px solid transparent;
    /* Varsayılan şeffaf kenarlık */
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, var(--primary-color) 0%, transparent 40%), radial-gradient(circle at bottom right, var(--secondary-color) 0%, transparent 40%);
    opacity: 0.1;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.tool-card:hover::before {
    opacity: 0.2;
}


/* Farklı kategoriler için farklı border gradient'leri */

.instagram-tools .tool-card {
    border-image: linear-gradient(45deg, #f09433, #dc2743) 1;
    border-image-slice: 1;
}

.tiktok-tools .tool-card {
    border-image: linear-gradient(45deg, #69c9d0, #ee1d52) 1;
    border-image-slice: 1;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.tool-card .card-content {
    position: relative;
    z-index: 1;
    text-align: left;
    flex-grow: 1;
}

.tool-card h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--text-color-lighter);
    font-weight: 700;
}

.tool-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #b0b0b0;
}

.tool-card .btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 10px 22px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-light);
    border: none;
    /* Butonun kendi kenarlığı olmasın */
}

.tool-card .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.tool-card .card-icon {
    font-size: 4rem;
    opacity: 0.3;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: -webkit-linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.tool-card:hover .card-icon {
    transform: translateY(-50%) translateX(5px);
    opacity: 0.5;
}


/* Footer (Alt Kısım) */

footer {
    background-color: var(--darker-bg);
    color: var(--text-color-light);
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid var(--border-color);
}


/* AOS animasyonları için global ayarlar (JavaScript ile entegre) */

[data-aos] {
    opacity: 0;
    transition-property: transform, opacity;
}

[data-aos].aos-animate {
    opacity: 1;
}


/* Mobil Cihazlar için Duyarlılık */

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    nav ul li {
        margin: 0 10px 10px 10px;
    }
    .hero h2 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .category-tabs {
        flex-direction: column;
    }
    .tool-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    .tool-card .card-content {
        text-align: center;
    }
    .tool-card .card-icon {
        position: static;
        transform: none;
        margin-top: 20px;
        opacity: 0.2;
    }
    .tool-card:hover .card-icon {
        transform: none;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .tool-card h3 {
        font-size: 1.3rem;
    }
    .tool-card p {
        font-size: 0.9rem;
    }
}