/* Reset ve Genel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #0a0a0a;
    --surface: #141414;
    --surface-hover: #1f1f1f;
    --primary: #ffffff;
    --secondary: rgba(255, 255, 255, 0.7);
    --accent: #a5a9fe;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    --grid-size: 30px;
    --grid-color: rgba(165, 169, 254, 0.03);
    --glow-color: rgba(94, 98, 255, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: 
        linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px),
        radial-gradient(circle at 50% -20%, 
            var(--glow-color) 0%,
            rgba(94, 98, 255, 0.1) 20%,
            rgba(94, 98, 255, 0.05) 40%,
            rgba(10, 10, 10, 1) 60%
        ),
        var(--background);
    background-size: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), 100% 100%, 100% 100%;
    color: var(--primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: gridMove 20s linear infinite;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: radial-gradient(
        circle at 50% 0%, 
        var(--glow-color) 0%,
        transparent 75%
    );
    pointer-events: none;
    z-index: 0;
}

@keyframes gridMove {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0;
    }
    100% {
        background-position: var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size), 0 0, 0 0;
    }
}

/* Header Styles */
.main-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.main-header.scroll-down {
    transform: translateY(-100%);
}

.main-header.scroll-up {
    transform: translateY(0);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 40px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-link.active {
    color: var(--accent);
}

/* Search Bar Styles */
.search-button, .menu-toggle, .search-close {
    background: none;
    border: none;
    padding: 6px;
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.search-button:hover, .menu-toggle:hover, .search-close:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
}

.search-container {
    position: absolute;
    top: 0;
    left: 180px;
    right: 180px;
    background: var(--surface);
    height: 40px;
    display: none;
    align-items: center;
    padding: 0 1rem;
    border: 1px solid var(--border);
}

.search-container.active {
    display: flex;
    height: 100%;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-input {
    height: 100%;
    flex: 1;
    border: none;
    background: none;
    padding: 0.5rem;
    font-size: 1rem;
    color: var(--primary);
    outline: none;
}

.search-input::placeholder {
    color: var(--secondary);
    opacity: 0.7;
}

/* Main Content */
main {
    margin-top: 80px;
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Index Page Header */
header {
    text-align: center;
    margin-bottom: 4rem;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

header p {
    font-size: 1.125rem;
    color: var(--secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Categories */
.categories {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--surface);
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: var(--surface-hover);
    color: var(--primary);
    border-color: var(--accent);
    transform: scale(1.02);
}

.category-btn.active {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
    transform: scale(1.05);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

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

.tool-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: var(--primary);
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 1;
    letter-spacing: 0.02em;
}

.tool-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.tool-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.tool-share {
    background: none;
    border: none;
    padding: 0.5rem;
    color: var(--secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-share:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* Share Menu Styles */
.share-menu {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 200px;
    box-shadow: var(--shadow);
    z-index: 1000;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 0.875rem;
    cursor: pointer;
    width: 100%;
    text-align: left;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.share-option:hover {
    background: var(--surface-hover);
    color: var(--primary);
}

.share-option svg {
    color: var(--accent);
}

.tool-action:hover {
    gap: 0.75rem;
}
.tool-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-image {
    transform: scale(1.05);
}

.tool-content {
    padding: 1.5rem;
}

.tool-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--secondary);
    font-size: 0.75rem;
    margin-bottom: 1rem;
}

.meta-date, .meta-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-date svg, .meta-time svg {
    color: var(--accent);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.tool-titles h2 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.tool-titles h3 {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 500;
}

.tool-description {
    color: var(--secondary);
    line-height: 1.6;
}

/* Side Content */
.side-content {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.side-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
}

.side-box h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.side-box ul {
    list-style: none;
}

.side-box li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--secondary);
    font-size: 0.875rem;
}

.side-box li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Footer */
.footer {
    background-color: var(--surface);
    border-top: 1px solid var(--border);
    color: var(--secondary);
    height: 100px;
    margin-top: auto;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* Tools Page Styles */
.tools-hero {
    border-bottom: 1px solid rgba(165, 169, 254, 0.1);
    padding: 3rem 0;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tools-hero::before {
    display: none;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%;
    }
    50% {
        background-position: 30px 30px, 30px 30px, 0% 0%;
    }
    100% {
        background-position: 0% 0%, 0% 0%, 0% 0%;
    }
}

.tools-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        linear-gradient(rgba(165, 169, 254, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(165, 169, 254, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: rotate(45deg);
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% {
        transform: rotate(45deg) translateY(0);
    }
    100% {
        transform: rotate(45deg) translateY(-50px);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, 
        var(--primary) 0%, 
        var(--accent) 50%,
        var(--primary) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(165, 169, 254, 0.3);
}

@keyframes shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(165, 169, 254, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(165, 169, 254, 0.2);
}

.hero-badge svg {
    color: var(--accent);
}

.hero-badge span {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .hero-actions {
        gap: 0.75rem;
        padding: 0 1rem;
    }

    .hero-button {
        flex: 1;
        text-align: center;
        padding: 0.75rem;
        font-size: 1rem;
    }
}

.hero-button {
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-button.primary {
    background: var(--accent);
    color: var(--primary);
    border: 1px solid var(--accent);
}

.hero-button.secondary {
    background: rgba(165, 169, 254, 0.1);
    color: var(--accent);
    border: 1px solid rgba(165, 169, 254, 0.2);
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(165, 169, 254, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.section-header p {
    color: var(--secondary);
    font-size: 1.125rem;
}

.featured-tools {
    margin-bottom: 4rem;
}

.featured-tools h2, .tool-categories h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.tool-card.featured {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, var(--surface), var(--surface-hover));
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.tool-icon {
    background: rgba(165, 169, 254, 0.08);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.tool-icon svg {
    width: 20px;
    height: 20px;
}

.tool-card.featured:hover .tool-icon {
    transform: scale(1.05);
    background: rgba(165, 169, 254, 0.15);
}

.tool-card.featured h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
}

.tool-card.featured p {
    color: var(--secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

.tool-action {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--surface-hover);
    color: var(--accent);
    transition: all 0.3s ease;
    border: 1px solid rgba(165, 169, 254, 0.1);
    gap: 0.5rem;
}

.tool-action svg {
    transition: transform 0.3s ease;
}

.tool-action:hover {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.tool-action:hover svg {
    transform: translateX(4px);
}

.tool-action.active {
    background: linear-gradient(135deg, var(--accent), #8a8eff, #a5a9fe);
    color: var(--primary);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(165, 169, 254, 0.3);
    transform: translateY(-1px);
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* Redirect Checker Styles */
.redirect-summary {
    background: var(--surface);
    border: 1px solid rgba(165, 169, 254, 0.1);
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-hover);
}

.request-url {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.url-label {
    font-size: 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.url-value {
    color: var(--primary);
    font-family: 'Monaco', monospace;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.status-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 1rem;
}

.status-code {
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Monaco', monospace;
}

.status-code.success {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.status-code.permanent {
    background: rgba(165, 169, 254, 0.1);
    color: var(--accent);
    border: 1px solid rgba(165, 169, 254, 0.2);
}

.status-code.error {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.status-text {
    color: var(--secondary);
    font-size: 0.875rem;
}

.redirect-count {
    background: rgba(165, 169, 254, 0.1);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(165, 169, 254, 0.2);
}

.details-section {
    padding: 1rem;
    background: var(--surface);
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.details-header h4 {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copy-button {
    background: none;
    border: 1px solid var(--border);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-button:hover {
    background: rgba(165, 169, 254, 0.1);
    border-color: var(--accent);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    color: var(--primary);
    font-family: 'Monaco', monospace;
    font-size: 0.875rem;
    word-break: break-all;
}

.header-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.header-item:last-child {
    border-bottom: none;
}

.header-name {
    color: var(--accent);
    font-weight: 500;
}

.header-value {
    color: var(--secondary);
    word-break: break-all;
}

.toggle-headers {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
    margin-top: 0.5rem;
}

.toggle-headers:hover {
    text-decoration: underline;
}

.tool-card.featured:hover .tool-action.active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(165, 169, 254, 0.4);
    background: linear-gradient(135deg, #8a8eff, var(--accent), #8a8eff);
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tool-card.featured:hover .tool-action:not(.active) {
    background: rgba(165, 169, 254, 0.1);
    color: var(--primary);
    border-color: rgba(165, 169, 254, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(165, 169, 254, 0.1);
}

.tool-card.featured:hover h3 {
    color: var(--accent);
}

.tool-card.featured:hover p {
    color: var(--primary);
}

.tool-card.featured:hover {
    border-color: rgba(165, 169, 254, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-card:hover {
    background: var(--surface-hover);
    transform: translateY(-5px);
}

.category-card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.category-card span {
    color: var(--accent);
    font-size: 0.875rem;
}

.tools-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.tools-grid-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1.5rem;
    align-items: flex-start;
}

.tools-sidebar {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.tools-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tools-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.tools-toggle.active {
    transform: rotate(180deg);
    height: 100%;
}

.tools-list {
    list-style: none;
    padding: 0;
    margin: 0;
    height: auto;
}

.tool-group {
    margin-bottom: 2.5rem;
    position: relative;
}

.group-title {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 1rem 1.25rem;
}

.tool-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 0.75rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    cursor: pointer;
    position: relative;
}

.tool-item:hover, .tool-item.active {
    background: var(--surface-hover);
    color: var(--primary);
    padding: 1rem;
}

.tool-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tool-title {
    color: var(--primary);
    font-weight: 500;
}

.tool-description {
    font-size: 0.75rem;
    color: var(--secondary);
    opacity: 0.8;
}

.tool-item:hover .tool-description {
    opacity: 1;
}

.tool-item.active {
    color: var(--accent);
}

.tool-item svg {
    color: var(--accent);
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    padding: 2px;
    box-sizing: border-box;
}

.welcome-section {
    margin-bottom: 2rem;
}

.welcome-section h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.welcome-section p {
    color: var(--secondary);
    font-size: 1.125rem;
    line-height: 1.6;
}

.tool-preview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
}

.tool-preview-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* SERP Tool Styles */
.tool-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 2rem;
}

.input-group {
    margin-bottom: 2rem;
}

.label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.pixel-info {
    color: var(--secondary);
    font-size: 0.875rem;
}

.input-group label {
    color: var(--primary);
    font-weight: 500;
}

.tool-input {
    width: 100%;
    padding: 1rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tool-input:focus {
    outline: none;
    border-color: var(--accent);
}

textarea.tool-input {
    min-height: 100px;
    resize: vertical;
}

.pixel-count {
    text-align: right;
    color: var(--accent);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.preview-section {
    margin-top: 3rem;
}

.preview-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.serp-preview {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    font-family: arial, sans-serif;
}

.serp-title {
    color: #1a0dab;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-family: arial, sans-serif;
}

.serp-title:hover {
    text-decoration: underline;
}

.serp-url {
    color: #006621;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-family: arial, sans-serif;
}

.serp-description {
    color: #545454;
    font-size: 0.875rem;
    line-height: 1.4;
    font-family: arial, sans-serif;
}

.features-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.feature-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--secondary);
}

.feature-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}

.feature-text {
    font-size: 0.875rem;
}

.serp-meta {
    color: #70757a;
    font-size: 0.875rem;
    margin: 0.25rem 0;
    display: none;
    font-family: arial, sans-serif;
}

/* Word Counter Styles */
.counter-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.counter-group {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
}

.counter-box {
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.3s ease;
    min-width: 0;
}

.counter-box:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.counter-box label {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.counter-box .counter-value {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.counter-box.small {
    padding: 1rem;
}

.counter-box.small .counter-value {
    font-size: 1.5rem;
}

.content-input {
    min-height: 300px;
    font-size: 1rem;
    line-height: 1.6;
    padding: 1.5rem;
}

.secondary-counters {
    margin-top: 2rem;
}

.word-frequency {
    margin-top: 3rem;
    width: 100%;
}

.word-combinations {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
    margin-bottom: 1rem;
    width: 100%;
}

.combination-header {
    display: flex;
    background: var(--surface-hover);
    padding: 0.25rem;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
}

.combination-btn {
    background: none;
    border: none;
    color: var(--secondary);
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    font-weight: 500;
    width: 100%;
    text-align: center;
    flex: 1;
}

.combination-btn.active {
    background: var(--accent);
    color: var(--primary);
}

.combination-content {
    display: none;
    padding: 0.75rem;
    width: 100%;
}

.combination-content.active {
    display: block;
    width: 100%;
}

.phrase-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border);
    width: 100%;
}

.phrase-item:last-child {
    border-bottom: none;
}

.phrase-text {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.phrase-stats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phrase-count {
    background: var(--accent);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 1.5rem;
    text-align: center;
}

.phrase-percentage {
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 500;
    min-width: 3.5rem;
    text-align: right;
}

.word-frequency h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.frequency-grid {
    width: 100%;
}

.frequency-box {
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: all 0.3s ease;
}

.frequency-box:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.frequency-count {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 500;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.frequency-value {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 700;
}

.frequency-percentage {
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 500;
}

/* Responsive Design for Tools Page */
@media (max-width: 992px) {
    .tools-grid-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .tools-content {
        order: 1;
    }

    body:not(.tools-home) .tools-sidebar {
        display: none;
    }
    
    .tools-home .tools-sidebar {
        order: 2;
    }

    .tools-toggle {
        display: block;
    }

    .tools-list {
        display: none;
    }

    .tools-list.show {
        display: block;
    }

    .welcome-section {
        margin-bottom: 1.5rem;
    }

    .welcome-section h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }

    .welcome-section p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .counter-group {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
        font-size: 0.875rem;
    }

    .counter-box {
        padding: 0.625rem;
        min-width: 0;
        width: 100%;
    }

    .counter-box .counter-value {
        font-size: 1.125rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .counter-box label {
        font-size: 0.625rem;
        letter-spacing: 0.3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .tool-section {
        padding: 1.5rem;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tool-card.featured {
        padding: 1.5rem;
        gap: 1rem;
    }

    .tool-card.featured h3 {
        font-size: 1.25rem;
    }

    .tool-card.featured p {
        font-size: 0.875rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .welcome-section h1 {
        font-size: 2rem;
    }
    
    .tool-preview-image {
        height: 300px;
    }
}

/* Article Styles */
.article-container {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 1rem;
}

.article-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.main-content {
    background: var(--surface);
    border-radius: 1rem;
    border: 1px solid var(--border);
    padding: 2rem;
}

.article-meta {
    margin-bottom: 2rem;
}

.article-meta h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.article-category {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.meta-info {
    display: flex;
    gap: 1rem;
    color: var(--secondary);
    font-size: 0.875rem;
    margin-top: 1rem;
}

.meta-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-info svg {
    color: var(--accent);
    position: relative;
    top: -1px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--surface);
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    background: var(--surface-hover);
    color: var(--primary);
    border-color: var(--accent);
}

.share-btn svg {
    color: var(--accent);
}

/* Article Text */
.article-text {
    color: var(--secondary);
    line-height: 1.8;
}

.article-text p {
    margin-bottom: 1.5rem;
}

.article-text h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
}

/* Table of Contents */
.table-of-contents {
    background: var(--surface-hover);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.toc-header h3 {
    color: var(--primary);
    font-size: 1.25rem;
    margin: 0;
}

.toc-toggle {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.875rem;
}

.toc-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-nav li {
    margin-bottom: 0.75rem;
}

.toc-nav a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.875rem;
}

.toc-nav a:hover {
    color: var(--accent);
}

.toc-nav a.active {
    color: var(--accent);
    font-weight: 500;
}

.toc-nav.hidden {
    display: none;
}

/* Related Posts */
.related-posts {
    margin: 4rem 0;
    text-align: left;
}

.related-posts .section-header {
    margin-bottom: 4rem;
}

.related-posts .section-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.related-posts .section-header p {
    color: var(--secondary);
    font-size: 1.125rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* FAQ Styles */
.faq-section {
  margin: 4rem 0;
  position: relative;
  z-index: 1;
}

.faq-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.section-title {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  color: var(--primary);
}

.section-title + p {
  text-align: center;
  color: var(--secondary);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.faq-categories {
  position: sticky;
  top: 100px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-right: 2rem;
  border-right: 1px solid var(--border);
}

.faq-categories .category {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 1rem;
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-categories .category svg {
  color: var(--accent);
  width: 18px;
  height: 18px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.faq-categories .category:hover {
  background: var(--surface-hover);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(165, 169, 254, 0.1);
}

.faq-categories .category:hover svg {
  opacity: 1;
}
.faq-categories .category.active {
  background: rgba(165, 169, 254, 0.1);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(165, 169, 254, 0.15);
}
.faq-categories .category.active svg {
  opacity: 1;
}

.faq-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 2rem;
}

.faq-group {
  display: none;
}

.faq-group.active {
  display: block;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.3s ease;
  gap: 1rem;
}

.faq-question h3 {
  font-size: 1rem;
  color: var(--primary);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
  flex: 1;
}

.faq-question svg {
  color: var(--accent);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  display: none;
  animation: fadeIn 0.3s ease;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1.5rem;
}

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

.faq-item.active .faq-question svg {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-grid {
        grid-template-columns: 1fr 3fr;
    }

    #right-sidebar {
        display: none;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    main {
        margin-top: 80px;
    }

    .tools-grid-layout {
        gap: 2rem;
    }

    .tools-sidebar {
        margin-top: 1rem;
        position: static;
        max-height: none;
        overflow-y: visible;
    }

    .tools-container {
        margin-top: 20px !important;
    }

    .header-container {
        flex-direction: row;
        padding: 0 1rem;
        height: 50px;
    }

  .faq-container {
      grid-template-columns: 1fr;
      gap: 1rem;
    }

    .faq-categories {
      display: flex;
      flex-wrap: wrap;
      gap: 0.75rem;
      padding-right: 0;
      border-right: none;
      position: static;
    }

    .faq-categories .category {
      flex: 1 1 auto;
      min-width: calc(33.333% - 0.75rem);
      padding: 0.75rem 1rem;
      justify-content: center;
}

    .tools-hero {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }

    .hero-content {
        padding: 0 1rem;
    }

    .header-right {
        width: 100%;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--surface);
        padding: 1rem;
        border-top: 1px solid var(--border);
        display: none;
        flex-direction: column;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.8s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.6s ease;
        pointer-events: none;
    }

    .nav-menu.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .menu-toggle {
        display: flex;
    }

    .tools-grid {
        grid-template-columns: 1fr;
    }

    .search-container {
        left: 0;
        right: 0;
        padding: 0 1rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    #left-sidebar {
        display: none;
    }

    .article-image {
        height: 300px;
    }

    .article-meta h1 {
        font-size: 2rem;
    }

    .meta-info {
        flex-direction: column;
        gap: 0.5rem;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }

    .header-container {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1rem;
        white-space: nowrap;
    }

    .tool-image {
        height: 200px;
    }

    .footer {
        height: 80px;
    }
}