@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   Global CSS Reset
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    width: 100%;
    position: relative;
}

.main-content {
    overflow-x: hidden;
}

/* ==========================================================================
   CSS Değişkenleri (Admin panelden ezilebilir)
   ========================================================================== */
:root {
    /* Renk Paleti - Light Mode */
    --c-primary: #1A365D;
    /* Derin Lacivert */
    --c-primary-light: #2A4365;
    --c-accent: #F97316;
    /* Canlı Turuncu */
    --c-accent-hover: #EA580C;
    --c-bg: #F4F7F6;
    /* Kırık Beyaz (Off-White) */
    --c-card-bg: #FFFFFF;
    /* Tam Beyaz */
    --c-text: #1F2937;
    --c-text-muted: #6B7280;
    --c-border: #E5E7EB;

    /* Durum Renkleri */
    --c-success: #10B981;
    --c-warning: #F59E0B;
    --c-danger: #EF4444;
    --c-info: #3B82F6;

    /* Tipografi */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;

    /* Gölgeler ve Efektler */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.04);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-blur: blur(10px);
}

/* Dark Mode Değişkenleri */


/* ==========================================================================
   Reset & Temel Kurallar
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: var(--font-main);
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--c-bg);
    color: var(--c-text);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

a {
    color: var(--c-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--c-accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==========================================================================
   Tipografi
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--c-heading, #0f172a);
}



p {
    margin-bottom: 1rem;
}

/* ==========================================================================
   Bileşenler (Components)
   ========================================================================== */

/* Header & Glassmorphism Navigasyon */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-width: var(--header-border-width, 0 0 1px 0);
    border-style: solid;
    border-color: var(--header-border-color, var(--c-border));
    border-radius: var(--header-radius, 0);
    transition: all 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: var(--header-bg);

    opacity: var(--header-opacity, 1);
    border-radius: inherit;
    pointer-events: none;
}

.site-footer {
    position: relative;
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-width: var(--footer-border-width, 0);
    border-style: solid;
    border-color: var(--footer-border-color, transparent);
    border-radius: var(--footer-radius, 0);
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: var(--footer-bg);
    background-image: var(--footer-img);
    opacity: var(--footer-opacity, 1);
    border-radius: inherit;
    pointer-events: none;
}

.hero-section {
    position: relative;
    border-width: var(--hero-border-width, 0);
    border-style: solid;
    border-color: var(--hero-border-color, transparent);
    border-radius: var(--hero-radius, 0 0 30px 30px);
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: var(--hero-bg);
    background-image: var(--hero-img);
    opacity: var(--hero-opacity, 1);
    border-radius: inherit;
    pointer-events: none;
}

.footer-link {
    color: var(--footer-link);
    transition: color 0.2s ease, opacity 0.2s ease;
    opacity: 0.8;
}

.footer-link:hover {
    color: var(--footer-link-hover, var(--c-accent, #F97316));
    opacity: 1;
}

.header.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: auto;
    min-height: 80px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-menu a {
    font-weight: 500;
    color: var(--header-text);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--header-hover);
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--header-hover);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Butonlar */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--c-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--c-primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.btn-accent {
    background-color: var(--c-accent);
    color: #fff;
}

.btn-accent:hover {
    background-color: var(--c-accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

/* Araç Kartları (Apple / VisionOS Premium Glassmorphism Cards) */
.carousel-track {
    display: flex;
    align-items: stretch !important;
}

.tool-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 26px;
    margin-top: 30px;
    align-items: stretch !important;
}





/* Glassmorphism Badges */
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 13px;
    border-radius: 9999px;
    font-size: 0.73rem;
    font-weight: 700;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.badge-new {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.38);
}



.badge-popular {
    background: rgba(239, 68, 68, 0.18);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.38);
}



.badge-featured {
    background: rgba(234, 179, 8, 0.2);
    color: #a16207;
    border-color: rgba(234, 179, 8, 0.4);
}



.badge-updated {
    background: rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.38);
}



.badge-beta {
    background: rgba(168, 85, 247, 0.18);
    color: #7e22ce;
    border-color: rgba(168, 85, 247, 0.38);
}



.badge-pro {
    background: rgba(236, 72, 153, 0.18);
    color: #be185d;
    border-color: rgba(236, 72, 153, 0.38);
}



/* Arama Çubuğu (Hero Section) */
.hero {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-light));
    color: white;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 40px;
}

.hero h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.hero-search {
    max-width: 600px;
    margin: 30px auto 0;
    position: relative;
}

.hero-search input {
    width: 100%;
    padding: 18px 25px 18px 50px;
    border-radius: var(--radius-full);
    border: none;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
    outline: none;
}

.hero-search svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-text-muted);
    width: 20px;
    height: 20px;
}

/* Duyuru Barı */
.announcement-bar {
    background-color: var(--c-info);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.announcement-bar .close-btn {
    position: absolute;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

/* ==========================================================================
   Araçlar (Tools) İçin Modern 2026 Arayüz (Glassmorphism & UX)
   ========================================================================== */
#tool-interface input[type="text"],
#tool-interface input[type="number"],
#tool-interface input[type="password"],
#tool-interface input[type="email"],
#tool-interface input[type="date"],
#tool-interface textarea,
#tool-interface select {
    background-color: var(--t-input-bg, #f8fafc);
    border: 1px solid var(--t-input-border, #cbd5e1);
    border-radius: var(--t-input-radius, 8px);
    height: var(--t-input-height, 46px);
    padding: var(--t-input-padding, 0 16px);
    font-size: var(--t-input-fontsize, 1rem);
    color: var(--t-input-text, #0f172a);
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
    width: 100%;
    font-family: inherit;
    box-sizing: border-box;
    display: block;
}
#tool-interface textarea {
    height: auto;
    min-height: var(--t-input-height, 46px);
    padding: 12px 16px;
    resize: vertical;
}
#tool-interface input:focus,
#tool-interface textarea:focus,
#tool-interface select:focus {
    outline: none;
    border-color: var(--t-input-focus-ring, #3b82f6);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--t-input-focus-ring, #3b82f6) 20%, transparent);
    background-color: #ffffff;
}

/* Modern Checkbox & Radio */
#tool-interface input[type="checkbox"],
#tool-interface input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: var(--t-checkbox-size, 22px);
    height: var(--t-checkbox-size, 22px);
    border: 2px solid var(--t-input-border, #cbd5e1);
    border-radius: var(--t-checkbox-radius, 6px);
    background-color: var(--t-input-bg, #ffffff);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    vertical-align: middle;
    margin: 0 8px 0 0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}
#tool-interface input[type="radio"] {
    border-radius: 50%;
}
#tool-interface input[type="checkbox"]:checked,
#tool-interface input[type="radio"]:checked {
    background-color: var(--t-btn-primary-bg, #3b82f6);
    border-color: var(--t-btn-primary-bg, #3b82f6);
}
#tool-interface input[type="checkbox"]:checked::after {
    content: '';
    width: calc(var(--t-checkbox-size, 22px) * 0.35);
    height: calc(var(--t-checkbox-size, 22px) * 0.6);
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}
#tool-interface input[type="radio"]:checked::after {
    content: '';
    width: calc(var(--t-checkbox-size, 22px) * 0.4);
    height: calc(var(--t-checkbox-size, 22px) * 0.4);
    background-color: white;
    border-radius: 50%;
}

/* Modern Range Slider */
#tool-interface input[type="range"] {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: var(--t-slider-track-height, 6px);
    background: var(--t-input-border, #e2e8f0);
    border-radius: 3px;
    outline: none;
    margin: 10px 0;
}
#tool-interface input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: var(--t-slider-thumb-size, 24px);
    height: var(--t-slider-thumb-size, 24px);
    border-radius: 50%;
    background: var(--t-btn-primary-bg, #3b82f6);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid #ffffff;
}
#tool-interface input[type="range"]::-moz-range-thumb {
    width: var(--t-slider-thumb-size, 24px);
    height: var(--t-slider-thumb-size, 24px);
    border-radius: 50%;
    background: var(--t-btn-primary-bg, #3b82f6);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid #ffffff;
}
#tool-interface input[type="range"]::-webkit-slider-thumb:hover,
#tool-interface input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* Modern Butonlar (Tools İçi) */
#tool-interface button {
    border-radius: var(--t-btn-radius, 8px);
    height: var(--t-btn-height, 46px);
    padding: var(--t-btn-padding, 0 24px);
    font-size: var(--t-btn-fontsize, 1rem);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
#tool-interface button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* ==========================================================================
   Mobil Uyumluluk
   ========================================================================== */
@media (max-width: 768px) {
    .header-content {
        height: 70px;
    }

    .nav-menu {
        display: none;
        /* JS ile açılacak mobil menü */
    }

    .hero {
        padding: 50px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CUSTOM SCROLLBAR (Premium Look)
   ========================================================================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent; 
}
::-webkit-scrollbar-thumb {
    background: #1e293b; 
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0f172a; 
}
/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #1e293b transparent;
}
/ *   R e s p o n s i v e   F i x e s   * / . t a b l e - r e s p o n s i v e , . d a t a - t a b l e - w r a p p e r { o v e r f l o w - x : a u t o ; w i d t h : 1 0 0 % ; - w e b k i t - o v e r f l o w - s c r o l l i n g : t o u c h ; } p r e , c o d e { m a x - w i d t h : 1 0 0 % ; o v e r f l o w - x : a u t o ; } 
 
 
/* ==========================================================================
   Tool Page Premium Layout
   ========================================================================== */

.tool-page-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Breadcrumb */
.tool-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--c-text-muted);
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.tool-breadcrumb a {
    color: var(--c-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.tool-breadcrumb a:hover {
    color: var(--c-primary);
}
.tool-breadcrumb svg {
    opacity: 0.5;
}
.tool-breadcrumb span[aria-current="page"] {
    color: var(--c-text);
    font-weight: 500;
}

/* Hero Section */
.tool-hero-card {
    background: var(--tool-hero-bg, var(--c-card-bg));
    border: 1px solid var(--tool-hero-border, var(--c-border));
    border-radius: 20px;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    flex-wrap: wrap;
}
.thc-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    min-width: 300px;
}
.thc-top-row {
    display: flex;
    gap: 24px;
    align-items: stretch;
}
.thc-icon-wrapper {
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 26px;
    flex-shrink: 0;
    display: flex;
    aspect-ratio: 1 / 1;
    max-height: 140px;
    max-width: 140px;
}
.thc-icon-box {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    background: linear-gradient(135deg, #3B82F6, #6366F1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}
.thc-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.thc-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.thc-sort-block {
    display: flex;
    margin-left: auto;
    align-self: center;
    background: var(--c-bg);
    padding: 4px;
    border-radius: 9999px;
    gap: 4px;
    border: 1px solid var(--c-border);
    flex-shrink: 0;
    align-items: center;
    height: fit-content;
}
.thc-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--c-heading);
    word-break: break-word;
    line-height: 1.2;
}
.thc-badge-free {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(16, 185, 129, 0.2);
    flex-shrink: 0;
}
.thc-desc {
    color: var(--c-text-muted);
    font-size: 1rem;
    margin-bottom: 16px;
    max-width: 600px;
}
.thc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.thc-tag {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
}
.thc-tag:nth-child(1) { background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.2); color: #8B5CF6; }
.thc-tag:nth-child(2) { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.2); color: #3B82F6; }
.thc-tag:nth-child(3) { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); color: #10B981; }
.thc-tag:nth-child(4) { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.2); color: #F59E0B; }
.thc-tag:nth-child(n+5) { background: rgba(236, 72, 153, 0.1); border-color: rgba(236, 72, 153, 0.2); color: #EC4899; }
.thc-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.85rem;
    color: var(--c-heading);
    align-items: center;
}
.thc-stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--c-text-muted);
}
.stat-icon-bg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--c-text-muted);
}
.stat-text-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.thc-stat-item .stat-value {
    color: var(--c-heading);
    font-weight: 600;
    line-height: 1.2;
}
.stat-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--c-text-muted);
}
.thc-stat-divider {
    width: 1px;
    height: 24px;
    background: rgba(255,255,255,0.1);
    margin: 0 4px;
}
.thc-stat-item.thc-rating {
    border: 1px solid var(--c-border);
    background: rgba(255,255,255,0.02);
    padding: 6px 14px;
    border-radius: 99px;
    gap: 8px;
}
.thc-stat-item.thc-rating .star-icon:first-child {
    font-size: 1rem;
    color: #F59E0B;
}
.thc-stat-item.thc-rating .stars .star-icon {
    font-size: 0.9rem;
    color: #F59E0B;
}
.stat-value-bold {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--c-heading);
}
.stars {
    display: flex;
    gap: 2px;
    margin: 0 4px;
}
.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-muted);
}
.stat-text-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.stat-label {
    color: var(--c-text-muted);
    font-size: 0.75rem;
}
.thc-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    justify-content: flex-end;
    align-items: stretch;
}
.thc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--c-heading);
}
.thc-btn:hover {
    background: rgba(255,255,255,0.05);
}

/* Ad Area */
.tool-ad-top {
    background: var(--tool-ad-bg, var(--c-bg));
    border: 1px solid var(--tool-ad-border, var(--c-border));
    border-radius: 16px;
    padding: 20px;
    position: relative;
    text-align: center;
}
.ad-label {
    position: absolute;
    top: 6px;
    right: 12px;
    font-size: 0.65rem;
    color: var(--c-text-muted);
    background: var(--c-bg);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--c-border);
}
.ad-content {
    color: var(--c-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Main Grid */
.tool-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: start;
}
@media (max-width: 992px) {
    .tool-layout-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Tool Content Area (Left) */
.tool-main-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.tool-content-card {
    background: var(--tool-content-bg, var(--c-card-bg));
    border: 1px solid var(--tool-content-border, var(--c-border));
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.tcc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--c-heading);
    margin-bottom: 24px;
}
.tcc-placeholder-box {
    border: 2px dashed var(--c-border);
    border-radius: 16px;
    padding: 60px 20px;
    text-align: center;
    background: rgba(0,0,0,0.01);
}
.tcc-icon-large {
    color: var(--c-text-muted);
    opacity: 0.5;
    margin-bottom: 16px;
}
.tcc-icon-large svg {
    width: 48px;
    height: 48px;
}
.tcc-placeholder-box h3 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: var(--c-heading);
}
.tcc-placeholder-box p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--c-text-muted);
    line-height: 1.5;
}

/* Info Cards (Left Bottom) */
.tool-info-section {
    background: var(--tool-info-bg, var(--c-card-bg));
    border: 1px solid var(--tool-info-border, var(--c-border));
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.ti-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}
.ti-icon {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ti-header-text h2 {
    margin: 0 0 4px 0;
    font-size: 1.2rem;
    color: var(--c-heading);
}
.ti-header-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--c-text-muted);
}
.ti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
.ti-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--c-border);
    background: var(--c-bg);
    text-decoration: none;
    transition: all 0.2s;
}
.ti-card:hover, .ti-card.active {
    border-color: #3B82F6;
    background: rgba(59, 130, 246, 0.05);
}
.ti-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ti-card-icon svg { width: 20px; height: 20px; }
.ti-card-content { flex: 1; }
.ti-card-content h3 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--c-heading);
}
.ti-card-content p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--c-text-muted);
    line-height: 1.3;
}
.ti-card-arrow {
    color: var(--c-text-muted);
}
.ti-card-arrow svg { width: 20px; height: 20px; }

/* Right Sidebar */
.tool-sidebar-col {
    align-self: start;
}
.tool-sidebar-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.ts-card {
    background: var(--tool-sb-bg, var(--c-card-bg));
    border: 1px solid var(--tool-sb-border, var(--c-border));
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.ts-search-form input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 12px;
    color: var(--c-text);
    outline: none;
}
.search-icon {
    position: absolute;
    left: 14px;
    color: var(--c-text-muted);
}
.ts-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.ts-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--c-heading);
    display: flex;
    align-items: center;
    gap: 8px;
}
.ts-link-more {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--c-text-muted);
    text-decoration: none;
}
.ts-link-bottom {
    display: block;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3B82F6;
    text-decoration: none;
}
.ts-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ts-list li a {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--c-text);
    transition: background 0.2s;
}
.ts-list li a:hover {
    background: var(--c-bg);
}
.ts-category-list a {
    justify-content: space-between;
}
.ts-list-text {
    font-size: 0.9rem;
    font-weight: 500;
}
.ts-badge {
    font-size: 0.75rem;
    background: rgba(59, 130, 246, 0.1);
    color: #3B82F6;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 700;
}
.ts-tool-list a {
    gap: 12px;
}
.ts-tool-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--c-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}
.ts-tool-info {
    flex: 1;
    overflow: hidden;
}
.ts-tool-name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--c-heading);
}
.ts-tool-desc {
    font-size: 0.75rem;
    color: var(--c-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ts-chevron {
    color: var(--c-text-muted);
    opacity: 0.5;
}
.ts-numbered-list .ts-number {
    font-weight: 800;
    color: var(--c-text-muted);
    width: 16px;
    text-align: center;
}
.ts-rating {
    font-size: 0.8rem;
    font-weight: 700;
    color: #F59E0B;
}
.ts-ad-card {
    text-align: center;
    color: var(--c-text-muted);
    font-size: 0.8rem;
}
.ts-premium-card {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: white;
    position: relative;
    overflow: hidden;
}
.ts-premium-icon {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 4rem;
    opacity: 0.1;
    transform: rotate(15deg);
}
.ts-premium-content h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
}
.ts-premium-content p {
    margin: 0 0 16px 0;
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.4;
}
.ts-premium-btn {
    display: inline-block;
    background: white;
    color: #4F46E5;
    padding: 8px 16px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
}
.ts-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ts-link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--tool-sb-bg, var(--c-card-bg));
    border: 1px solid var(--tool-sb-border, var(--c-border));
    border-radius: 12px;
    text-decoration: none;
    color: var(--c-heading);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.ts-link-card:hover {
    background: var(--c-bg);
}

/* Modal Styles for Tool Actions */
.tool-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tool-modal {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.tool-modal h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--c-heading);
}
.tool-modal p {
    color: var(--c-text-muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.tool-modal textarea {
    width: 100%;
    height: 80px;
    background: var(--c-bg-body);
    border: 1px solid var(--c-border);
    border-radius: 8px;
    color: var(--c-text);
    padding: 10px;
    font-family: monospace;
    font-size: 0.85rem;
    resize: none;
}
.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: var(--c-text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}
.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
}
.share-btn:hover {
    opacity: 0.9;
}
.share-btn.whatsapp { background: #25D366; }
.share-btn.twitter { background: #1DA1F2; }
.share-btn.copy { background: var(--c-border); color: var(--c-heading); }

/* Rating Stars */
.star-rate {
    cursor: pointer;
    transition: transform 0.1s;
}
.star-rate:hover {
    transform: scale(1.2);
}

/* --- Tool Page Responsive Adjustments --- */
@media (max-width: 768px) {
    .tool-hero-card {
        padding: 20px 16px;
        flex-direction: column;
        gap: 20px;
    }
    .thc-left {
        min-width: 0;
        width: 100%;
        gap: 16px;
    }
    .thc-top-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    .thc-icon-wrapper {
        max-width: 80px;
        max-height: 80px;
        padding: 6px;
    }
    .thc-icon-box {
        border-radius: 14px;
        font-size: 1.8rem;
    }
    .thc-title-row {
        justify-content: center;
        flex-wrap: wrap;
    }
    .thc-desc {
        text-align: center;
        margin-bottom: 12px;
    }
    .thc-tags {
        justify-content: center;
        margin-bottom: 12px;
    }
    .thc-sort-block {
        margin-left: 0 !important;
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    .thc-stats {
        justify-content: center;
        gap: 16px;
    }
    .thc-right {
        flex-direction: row;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .thc-btn {
        flex: 1 1 calc(33.33% - 10px);
        min-width: max-content;
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    .tool-ad-top {
        padding: 16px;
    }
    .tool-content-card {
        padding: 16px;
    }
    .tool-page-wrapper {
        margin-top: 15px !important;
        margin-bottom: 30px !important;
    }
}
@media (max-width: 480px) {
    .thc-btn {
        flex: 1 1 100%;
        min-width: 100%;
    }
    .thc-stats {
        flex-direction: column;
        gap: 12px;
    }
    .thc-stat-divider {
        display: none;
    }
    .thc-title {
        font-size: 1.5rem;
    }
}
