/* Cgnhub Araçlar - Premium Stil Dosyası */

/* --- Değişkenler --- */
:root {
    --primary-gradient: linear-gradient(135deg, #4e54c8 0%, #8f94fb 100%);
    --secondary-gradient: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
    --accent-color: #4e54c8;
    --text-color: #2d3748;
    --text-light: #718096;
    --bg-color: #f7fafc;
    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 35px rgba(50, 50, 93, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    --radius-lg: 16px;
    --radius-md: 10px;
    --font-main: 'Inter', sans-serif;
}

/* --- Temel Ayarlar --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* --- Premium Header (Glassmorphism) --- */
.header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

.brand-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.brand-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigasyon */
.navbar-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-color);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-md);
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover {
    background: rgba(78, 84, 200, 0.05);
    color: var(--accent-color);
}

.arrow {
    font-size: 0.7rem;
    opacity: 0.5;
    transition: transform 0.2s;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown Premium */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--card-bg);
    min-width: 240px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0,0,0,0.05);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 0.8rem;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: var(--primary-gradient);
    color: white;
    transform: translateX(5px);
    box-shadow: 0 4px 6px rgba(78, 84, 200, 0.25);
}

/* --- Hero Section --- */
.hero {
    background: var(--primary-gradient);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

/* --- Kartlar (Cards) --- */
.main {
    flex: 1;
    padding: 2rem 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.tool-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    justify-content: space-between;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.tool-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s;
}

.tool-card:hover .tool-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* --- Kategori Bölümü --- */
.category-section {
    margin-bottom: 4rem;
}

.category-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0,0,0,0.05);
}

.category-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* --- Ekmek Kırıntısı (Breadcrumb) --- */
.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 10px;
}

.breadcrumb a {
    color: var(--accent-color);
    font-weight: 600;
}

.breadcrumb .separator {
    color: var(--text-light);
    font-size: 0.8rem;
}

.breadcrumb .current {
    color: var(--text-light);
}

/* --- Butonlar --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 15px rgba(78, 84, 200, 0.3);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 84, 200, 0.4);
}

.btn:active {
    transform: translateY(0);
}

/* --- Form Elemanları --- */
.tool-page h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: center;
    font-weight: 800;
}

.tool-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto 3rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.8rem;
    display: block;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-control, .form-select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s;
    font-family: var(--font-main);
    color: var(--text-color);
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.1);
    outline: none;
}

/* --- Upload Alanı --- */
.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: var(--radius-lg);
    padding: 3rem;
    text-align: center;
    background: #f8fafc;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--accent-color);
    background: rgba(78, 84, 200, 0.02);
}

.upload-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.upload-area h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* --- Footer --- */
.footer {
    background: white;
    padding: 4rem 0 2rem;
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .navbar-brand .brand-text {
        font-size: 1.2rem;
    }

    .nav-menu {
        display: none; /* JS ile toggle yapılacak */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid #eee;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        width: 25px;
        height: 3px;
        background: var(--text-color);
        border-radius: 3px;
    }

    .hero {
        padding: 3rem 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}