﻿/* DNSKit.Net - Common Styles (Base) */
:root {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --border-light: #e2e8f0;
    --radius: 6px;
    /* Daha keskin, minimalist radius */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Base & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    font-size: 15px;
    /* Standart okunabilir boyut */
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.2s;
    font-weight: 500;
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

/* Minimal Heading Hierarchy */
h1,
h2,
h3,
h4,
.section-title {
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Layout */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Nav */
.main-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.main-nav ul {
    display: flex;
    gap: 1.5rem;
}

.main-nav>ul>li>a {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.main-nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--primary);
}

/* Dropdown */
.main-nav li {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    min-width: 220px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    margin-top: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.main-nav li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
    pointer-events: auto;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 6px 16px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background: var(--bg-body);
    color: var(--primary);
}

/* Search Area (Kompakt) */
.search-wrapper {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: var(--radius);
    padding: 2.5rem 1.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

.input-group {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}

.search-input {
    flex: 1;
    border: none;
    padding: 0.6rem 1rem;
    font-size: 1rem;
    outline: none;
    background: transparent;
}

.btn-search {
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    padding: 0 1.5rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3), 0 2px 4px -1px rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
}

.btn-search:hover {
    background: linear-gradient(180deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 10px -1px rgba(37, 99, 235, 0.4), 0 4px 6px -1px rgba(37, 99, 235, 0.3);
    transform: translateY(-1px);
}

.btn-search:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(37, 99, 235, 0.3);
}

.tool-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tool-pill {
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.3rem 0.8rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.tool-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2), 0 2px 4px -1px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.tool-pill.active {
    border-color: var(--primary);
    color: var(--primary);
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3), 0 2px 4px -1px rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

/* Anasayfa Kartlari (Kompakt) */
.category-section {
    margin-bottom: 2rem;
}

.category-title {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.1rem;
}

.category-badge {
    font-size: 0.75rem;
    background: #eff6ff;
    color: var(--primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

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

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: transform 0.15s, border-color 0.15s;
    text-decoration: none;
}

.tool-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.card-icon {
    font-size: 1.5rem;
    background: var(--bg-body);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.card-info h3 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.card-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Footer */
.main-footer {
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--text-muted);
    margin-left: 1rem;
}

.footer-ip-minimal {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Alerts */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border: 1px solid;
    font-size: 0.95rem;
}

.alert-error {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

/* Hamburger Menu Button (Mobil) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-light);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav.active {
        max-height: 500px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    .main-nav>ul>li {
        border-bottom: 1px solid var(--border-light);
    }

    .main-nav a {
        display: block;
        padding: 0.75rem 1.5rem;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        border: none;
        box-shadow: none;
        background: var(--bg-body);
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .main-nav li.active .dropdown-menu {
        max-height: 300px;
    }

    .input-group {
        flex-direction: column;
    }

    .btn-search {
        width: 100%;
        border-radius: 0 0 var(--radius) var(--radius);
        padding: 0.8rem;
    }

    .footer-row {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* --- ALT BILGI (TOOL INFO) --- */
.tool-info-card {
    margin-top: 3rem;
}

.tool-info-card h2 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.tool-info-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.tool-info-tag {
    display: inline-block;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    font-weight: 500;
}

.tool-info-divider {
    border-top: 1px solid var(--border-light);
    margin: 2rem 0;
}


/* Input Actions (Copy & Clear Buttons) */
.input-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding-right: 0.5rem;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #94a3b8;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: all 0.2s;
    line-height: 1;
    border-radius: 4px;
}

.icon-btn:hover {
    opacity: 1;
    color: #2563eb;
    background: #eff6ff;
}


/* Global Loader */
#global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: #2563eb;
    z-index: 9999;
    transition: width 0.2s ease;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
    opacity: 0;
}


/* Global Loader Animation */
#global-loader.loading {
    width: 90% !important;
    opacity: 1 !important;
    transition: width 5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#global-loader.done {
    width: 100% !important;
    opacity: 0;
    transition: width 0.2s ease, opacity 0.3s ease 0.2s;
}

/* Hamburger Menu Button (Mobil) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-light);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
    }

    .main-nav.active {
        max-height: 600px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }

    .main-nav>ul>li {
        border-bottom: 1px solid var(--border-light);
    }

    .main-nav a {
        display: block;
        padding: 0.75rem 1.5rem;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        border: none;
        box-shadow: none;
        background: var(--bg-body);
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        pointer-events: auto;
    }

    .main-nav li.active .dropdown-menu {
        max-height: 400px;
    }

    .input-group {
        flex-direction: column;
    }

    .btn-search {
        width: 100%;
        border-radius: 0 0 var(--radius) var(--radius);
        padding: 0.8rem;
    }

    .footer-row {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}



/* ================================
   MODERN ANIMATED MENU STYLES
================================ */
.main-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.corporate-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.nav-brand {
    padding: 1rem 0;
}

.logo {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.3));
}

.main-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.main-menu>li {
    position: relative;
}

.main-menu>li>a {
    display: block;
    padding: 1.25rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

/* Animated underline */
.main-menu>li>a::after {
    content: "";
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.main-menu>li:hover>a::after {
    width: 60%;
}

.main-menu>li:hover>a {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.05), transparent);
    color: var(--primary);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 260px;
    background: rgba(255, 255, 255, 0.98);
    padding: 0.75rem 0;
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    animation: menuSlideDown 0.3s ease;
    z-index: 1000;
}

@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1.25rem;
    margin: 0.25rem 0.5rem;
    font-size: 0.9rem;
    text-decoration: none;
    background: none;
    color: var(--text-main);
    transition: all 0.25s ease;
    transform: translateX(0);
    border-radius: 8px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

/* Hover gradient effect */
.dropdown-content a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.5s ease;
}

.dropdown-content a:hover::before {
    left: 100%;
}

.dropdown-content a:hover {
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    color: var(--primary);
    transform: translateX(8px) scale(1.02);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.main-menu>li:hover>.dropdown-content {
    display: block;
}

.dropdown-open>.dropdown-content {
    display: block;
}


/* Mobile Menu Responsive */
@media (max-width: 900px) {
    .corporate-nav {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-brand {
        text-align: center;
        border-bottom: 1px solid var(--border-light);
    }

    .main-menu {
        flex-direction: column;
        width: 100%;
    }

    .main-menu>li>a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid var(--border-light);
    }

    .main-menu>li>a::after {
        display: none;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        backdrop-filter: none;
        box-shadow: none;
        background: var(--bg-body);
        padding: 0;
        border-radius: 0;
        border: none;
        animation: none;
    }

    .dropdown-content a {
        padding: 0.875rem 2rem;
        margin: 0;
        border-bottom: 1px solid #e6e6e6;
        transform: none !important;
    }

    .dropdown-content a:hover {
        background: #eff6ff;
        color: var(--primary);
        transform: translateX(4px) !important;
    }
}

/* Share Notification */
.share-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 10000;
}

.share-notification.show {
    opacity: 1;
    transform: translateY(0);
}