/* ============================================
   PTV Toolkits - Light Engineering UI
   Clean, Bright, Professional
   ============================================ */

:root {
    /* Light Color Palette */
    --bg-canvas: #ffffff;
    --bg-primary: #f6f8fa;
    --bg-secondary: #ffffff;
    --bg-tertiary: #eaeef2;
    --bg-overlay: #f3f4f6;

    /* Border Colors - Soft but visible */
    --border-default: #d0d7de;
    --border-muted: #dce1e6;
    --border-subtle: #e8ecf0;

    /* Text Colors - Darker for readability */
    --text-primary: #131619;
    --text-secondary: #424a53;
    --text-muted: #656d76;
    --text-link: #0969da;

    /* Accent Colors */
    --accent-primary: #1a7f37;
    --accent-primary-hover: #2da44e;
    --accent-emphasis: #0969da;
    --accent-attention: #bf8700;
    --accent-danger: #d1242f;
    --accent-done: #8250df;

    /* Functional Colors */
    --success: #1a7f37;
    --success-bg: #dafbe1;
    --warning: #bf8700;
    --warning-bg: #fff8c5;
    --danger: #d1242f;
    --danger-bg: #ffebe9;
    --info: #0969da;
    --info-bg: #ddf4ff;

    /* Shadows - Soft and subtle */
    --shadow-sm: 0 1px 3px rgba(31, 35, 40, 0.06), 0 1px 2px rgba(31, 35, 40, 0.04);
    --shadow-md: 0 4px 12px rgba(31, 35, 40, 0.08), 0 2px 4px rgba(31, 35, 40, 0.04);
    --shadow-lg: 0 8px 24px rgba(31, 35, 40, 0.12), 0 4px 8px rgba(31, 35, 40, 0.06);

    /* Spacing */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 64px;
    --topbar-height: 56px;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    /* Transitions */
    --transition-fast: 80ms cubic-bezier(0.33, 1, 0.68, 1);
    --transition-normal: 150ms cubic-bezier(0.33, 1, 0.68, 1);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

#app {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   Sidebar - Clean Light Navigation
   ============================================ */
/* ============================================
   Modern Sidebar
   ============================================ */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--bg-primary);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    transition: width var(--transition-normal);
    z-index: 100;
    overflow: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    min-height: 64px;
    background: var(--bg-primary);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.9;
}

.logo-icon {
    font-size: 16px;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #0969da 0%, #2563eb 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 2px 8px rgba(9, 105, 218, 0.25);
}

.logo-icon svg {
    width: 18px;
    height: 18px;
}

.logo-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.toggle-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.toggle-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-default);
}

.toggle-btn svg {
    width: 16px;
    height: 16px;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 8px 12px;
    overflow-y: auto;
    background: var(--bg-primary);
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--border-default);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--border-muted);
}

/* Sidebar Search */
.sidebar-search {
    padding: 0 12px 16px;
    background: var(--bg-primary);
}

.search-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 10px 36px 10px 36px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: 13px;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    background: var(--bg-primary);
    border-color: var(--accent-emphasis);
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.12);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-icon svg {
    width: 14px;
    height: 14px;
}

.search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 50%;
    font-size: 10px;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.search-clear svg {
    width: 12px;
    height: 12px;
}

.search-clear:hover {
    background: var(--accent-emphasis);
    color: white;
}

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 200;
    max-height: 360px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    border-bottom: 1px solid var(--border-subtle);
}

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

.search-result-item:hover {
    background: var(--bg-secondary);
}

.search-result-icon {
    font-size: 14px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, rgba(9, 105, 218, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-emphasis);
}

.search-result-icon svg {
    width: 16px;
    height: 16px;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.search-result-group {
    font-size: 11px;
    color: var(--text-muted);
}

.search-no-results {
    padding: 24px 14px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* Navigation Items */
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    margin-bottom: 2px;
    white-space: nowrap;
    font-size: 14px;
    position: relative;
    text-decoration: none;
}

.nav-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(9, 105, 218, 0.1) 0%, rgba(37, 99, 235, 0.1) 100%);
    color: var(--accent-emphasis);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: linear-gradient(180deg, #0969da 0%, #2563eb 100%);
    border-radius: 0 3px 3px 0;
}

.nav-icon {
    font-size: 16px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
}

.nav-text {
    font-size: 14px;
}

/* Navigation Groups */
.nav-group {
    margin-bottom: 4px;
}

.nav-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    white-space: nowrap;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nav-group-header:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.nav-group-header .nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow {
    margin-left: auto;
    font-size: 10px;
    transition: transform var(--transition-fast);
    opacity: 0.5;
}

.nav-arrow svg {
    width: 12px;
    height: 12px;
}

.nav-arrow.expanded {
    transform: rotate(180deg);
}

.nav-group-items {
    padding-left: 4px;
    margin-top: 4px;
    margin-bottom: 8px;
    border-left: 1px solid var(--border-subtle);
    margin-left: 22px;
}

.nav-item.sub-item {
    padding: 8px 12px 8px 16px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 1px;
    border-radius: var(--radius-sm);
}

.nav-item.sub-item:hover {
    background: var(--bg-secondary);
}

.nav-item.sub-item.active {
    background: linear-gradient(135deg, rgba(9, 105, 218, 0.08) 0%, rgba(37, 99, 235, 0.08) 100%);
    color: var(--accent-emphasis);
}

.nav-item.sub-item.active::before {
    left: -5px;
    height: 16px;
    width: 2px;
}

.nav-item.sub-item .nav-icon {
    width: 18px;
    height: 18px;
    font-size: 14px;
}

.nav-item.sub-item .nav-icon svg {
    width: 16px;
    height: 16px;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.version {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

/* Sidebar Collapsed State Adjustments */
.sidebar.collapsed .logo-icon {
    width: 32px;
    height: 32px;
}

.sidebar.collapsed .nav-item,
.sidebar.collapsed .nav-group-header {
    justify-content: center;
    padding: 10px;
}

.sidebar.collapsed .nav-icon {
    margin: 0;
}

.sidebar.collapsed .nav-group-items {
    display: none;
}

/* ============================================
   Main Content Area
   ============================================ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-normal);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

.top-bar {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    height: var(--topbar-height);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-muted);
    z-index: 50;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.current-time {
    font-size: 12px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    background: var(--bg-primary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
}

.bmc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #FFDD00;
    color: #000000;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.bmc-btn:hover {
    background: #e5c700;
    box-shadow: 0 2px 8px rgba(255, 221, 0, 0.35);
    transform: translateY(-1px);
}

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

.bmc-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ============================================
   Mobile Menu Button & Backdrop
   ============================================ */
.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.mobile-menu-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.mobile-menu-btn svg {
    width: 18px;
    height: 18px;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar-backdrop.active {
    opacity: 1;
}

body.sidebar-open {
    overflow: hidden;
}

.content-area {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

/* ============================================
   Home Page - Dashboard
   ============================================ */
.welcome-section {
    padding: 32px;
    background: linear-gradient(135deg, var(--accent-emphasis) 0%, var(--accent-done) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    color: white;
}

.welcome-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.welcome-section p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

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

.tool-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-default);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

.tool-card:hover {
    border-color: var(--border-default);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tool-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tool-card-icon {
    font-size: 20px;
    width: 44px;
    height: 44px;
    background: var(--info-bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-emphasis);
}

.tool-card-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.tool-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.tool-card-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
    text-decoration: none;
}

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

/* ============================================
   Shared Timer Components
   ============================================ */

/* Timer Display */
.timer-display {
    position: relative;
    width: 340px;
    height: 340px;
    margin: 0 auto 36px;
}

.timer-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-ring-bg {
    fill: none;
    stroke: var(--bg-tertiary);
    stroke-width: 6;
}

.timer-ring-progress {
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.5s ease;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.timer-minutes,
.timer-seconds,
.timer-hours {
    font-size: 48px;
    font-weight: 300;
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1;
    letter-spacing: -0.02em;
}

.timer-separator {
    font-size: 42px;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1;
    font-family: var(--font-mono);
}

/* Timer Controls */
.timer-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.timer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
}

.timer-btn.primary {
    background: var(--accent-primary);
    color: white;
    min-width: 130px;
    border-color: var(--accent-primary);
}

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

.timer-btn.primary:disabled {
    background: var(--bg-tertiary);
    border-color: var(--border-default);
    color: var(--text-muted);
    cursor: not-allowed;
}

.timer-btn.secondary {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-color: var(--border-default);
}

.timer-btn.secondary:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-default);
}

/* ============================================
   Shared Settings Components
   ============================================ */

/* Settings Toggles */
.settings-toggles {
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.toggle-setting {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    margin-bottom: 12px;
}

.toggle-setting:last-child {
    margin-bottom: 0;
}

.toggle-setting input[type="checkbox"] {
    display: none;
}

.toggle-slider {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--border-default);
    border-radius: 12px;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.toggle-setting input[type="checkbox"]:checked + .toggle-slider {
    background: var(--accent-primary);
}

.toggle-setting input[type="checkbox"]:checked + .toggle-slider::after {
    transform: translateX(20px);
}

.toggle-label {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ============================================
   Shared History Components
   ============================================ */
.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.history-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.clear-history-btn {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
}

.clear-history-btn:hover {
    background: var(--danger-bg);
    border-color: var(--accent-danger);
    color: var(--accent-danger);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-primary);
    transition: all var(--transition-fast);
}

.history-item:hover {
    background: var(--bg-tertiary);
}

.history-icon {
    font-size: 20px;
    width: 42px;
    height: 42px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-default);
    margin-top: 2px;
}

.history-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.history-time-details {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.history-time-range {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    background: var(--bg-tertiary);
    padding: 4px 10px;
    border-radius: 4px;
}

.history-duration {
    font-size: 13px;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-weight: 600;
    background: var(--success-bg);
    padding: 4px 10px;
    border-radius: 4px;
}

.history-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}

.history-empty p {
    margin: 0;
    font-size: 14px;
    color: var(--text-primary);
}

.history-empty .empty-hint {
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}


/* SEO Content Sections */
.seo-content {
    margin-top: 32px;
    padding: 0 24px 24px;
}

.seo-section {
    margin-bottom: 24px;
}

.seo-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.seo-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.seo-section p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.related-tools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.related-tool-card {
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    text-decoration: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.related-tool-card:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.related-tool-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.related-tool-desc {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.4;
}
