@import url('https://fonts.googleapis.com/css2?family=Russo+One&family=Orbitron:wght@400;500;600;700;800;900&family=Play:wght@400;700&family=Exo+2:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    /* Modern Color Scheme with Deep Blue */
    --bg: #ffffff;
    --bg-secondary: #f7f8fa;
    --surface: rgba(255, 255, 255, 0.95);
    --surface-hover: rgba(255, 255, 255, 0.98);
    --border: rgba(88, 101, 242, 0.08);
    --border-light: rgba(88, 101, 242, 0.04);
    --text: #2e3338;
    --text-secondary: #4f545c;
    --text-muted: #96989d;
    --accent: #5865f2;
    --accent-hover: #4752c4;
    --accent-light: rgba(88, 101, 242, 0.1);
    --deep-blue: #1e3a8a;
    --deep-blue-light: #2563eb;
    --deep-blue-dark: #1e40af;
    --royal-blue: #4169e1;
    --purple: #9b59b6;
    --purple-light: #a66bbe;
    --blue: #5865f2;
    --blue-light: #7289da;
    --danger: #ed4245;
    --success: #3ba55c;
    --gradient-primary: linear-gradient(90deg, #1e3a8a 0%, #2563eb 25%, #4169e1 50%, #5865f2 75%, #9b59b6 100%);
    --gradient-text: linear-gradient(90deg, #1e40af 0%, #2563eb 35%, #4169e1 60%, #7289da 100%);
    --gradient-deep-blue: linear-gradient(135deg, #1e3a8a 0%, #4169e1 100%);
    --gradient-instagram: linear-gradient(45deg, #1e3a8a 0%, #5865f2 25%, #833ab4 50%, #c13584 75%, #e1306c 100%);
    --gradient-subtle: linear-gradient(180deg, rgba(30, 58, 138, 0.05) 0%, transparent 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 20px rgba(88, 101, 242, 0.3);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Play', 'Exo 2', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    letter-spacing: 0.01em;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern gradient background with deep blue */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at top left, rgba(30, 58, 138, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at center, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(155, 89, 182, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(30, 64, 175, 0.02) 100%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px 24px;
    position: relative;
    z-index: 1;
}

.header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 32px;
    align-items: center;
    min-height: 56px;
    padding: 0 32px;
    border-radius: 28px;
    backdrop-filter: blur(20px) saturate(180%);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    flex-wrap: wrap;
    max-width: 1200px;
    width: calc(100% - 32px);
}

.header-logo {
    display: flex;
    align-items: center;
    height: 42px;
    position: relative;
    transition: var(--transition);
}

.header-logo-img {
    height: 100%;
    width: auto;
    filter: brightness(0.2);
    opacity: 0.85;
    transition: var(--transition);
}

.header-logo:hover .header-logo-img {
    opacity: 1;
    transform: translateX(2px);
}

.header nav {
    display: flex;
    gap: 32px;
    font-size: 14px;
    flex-wrap: wrap;
}

.header a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Play', 'Exo 2', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.02em;
    transition: var(--transition);
    position: relative;
}

.header a:hover {
    color: var(--text);
}

.header nav a::after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition);
}

.header nav a:hover::after,
.header nav a.active::after {
    transform: scaleX(1);
}

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

.header-actions {
    margin-left: auto;
    display: flex;
    gap: 12px;
    align-items: center;
}

.twitter-follow-container {
    display: inline-flex;
    align-items: center;
    height: 28px;
}

.header-actions .twitter-follow-button {
    vertical-align: middle;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0;
    overflow: hidden;
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.lang-toggle span {
    padding: 6px 12px;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
}

.lang-toggle span.active {
    background: var(--gradient-primary);
    color: white;
}

.lang-toggle span:not(.active) {
    color: var(--text-secondary);
}

.lang-toggle:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

/* Menu Button */
.menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.menu-button:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.menu-button:active {
    transform: scale(0.95);
}

.menu-icon {
    width: 20px;
    height: 20px;
}

/* Dropdown Menu */
.dropdown-menu {
    position: fixed;
    top: 80px;
    right: 20px;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    max-height: 70vh;
    overflow-y: auto;
}

.dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    padding: 8px 0;
}

.dropdown-section {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
}

.dropdown-section:last-child {
    border-bottom: none;
}

.dropdown-title {
    padding: 8px 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: var(--bg-secondary);
}

.dropdown-item {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    position: relative;
}

.dropdown-item:hover {
    background: var(--accent-light);
    color: var(--accent);
    padding-left: 20px;
}

.dropdown-item.dropdown-tool {
    padding-left: 24px;
    font-size: 13px;
}

.dropdown-item.dropdown-tool:hover {
    padding-left: 28px;
    background: linear-gradient(90deg, rgba(30, 58, 138, 0.08) 0%, transparent 100%);
}

/* Arrow indicator for dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 30px;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    transform: rotate(45deg);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Russo One', 'Orbitron', 'Noto Sans JP', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    background: linear-gradient(90deg, #2563eb 0%, #4169e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    background: var(--gradient-deep-blue);
    color: white;
    padding: 12px 28px;
    border-radius: 12px;
    font-family: 'Play', 'Exo 2', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25);
}


.button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.35);
    background: var(--gradient-primary);
}

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

.button.primary {
    background: var(--gradient-instagram);
    color: white;
    border: none;
}

.button.primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(131, 58, 180, 0.4);
}

.button.github {
    background: linear-gradient(135deg, #24292e 0%, #40464d 100%);
    color: white;
    border: none;
}

.button.github:hover {
    background: linear-gradient(135deg, #1a1e22 0%, #24292e 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(36, 41, 46, 0.4);
}

.button.twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #14171A 100%);
    color: white;
    border: none;
}

.button.twitter:hover {
    background: linear-gradient(135deg, #1a91da 0%, #14171A 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

.card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px) saturate(180%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}


.card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.input {
    width: 100%;
    border: 2px solid rgba(30, 58, 138, 0.15);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 15px;
    transition: all var(--transition);
    font-family: 'Play', 'Exo 2', sans-serif;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.input:focus {
    outline: none;
    border-color: var(--deep-blue-light);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 2px 8px rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

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

.select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235865f2' d='M6 9L2 5h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 44px;
    background-color: rgba(255, 255, 255, 0.9);
}

.tag {
    display: inline-flex;
    align-items: center;
    border: none;
    background: var(--gradient-deep-blue);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: -0.01em;
    box-shadow: 0 2px 8px rgba(30, 58, 138, 0.2);
}

.tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
    background: var(--gradient-primary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.hero {
    margin: 0 calc(-50vw + 50%) 60px;
    padding: 80px 20px 50px;
    text-align: center;
    position: relative;
    background: 
        linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), 
        url('../assets/img_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid rgba(0, 180, 216, 0.1);
    width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(30, 58, 138, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 70% 50%, rgba(65, 105, 225, 0.06) 0%, transparent 40%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Logo removed from hero section */

.hero h1 {
    margin-bottom: 16px;
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 800px;
    margin: 24px auto 0;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.search-section {
    margin: 48px auto 40px;
    position: relative;
    max-width: 700px;
}

.search-section .input {
    padding-left: 52px;
    font-size: 16px;
    height: 56px;
    border-radius: 28px;
    border: 2px solid rgba(88, 101, 242, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-section .input:hover {
    border-color: rgba(88, 101, 242, 0.2);
    box-shadow: 0 12px 32px rgba(88, 101, 242, 0.1);
}

.search-section::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='url(%23gradient)'%3E%3Cdefs%3E%3ClinearGradient id='gradient' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' style='stop-color:%235865f2;stop-opacity:1' /%3E%3Cstop offset='100%25' style='stop-color:%239b59b6;stop-opacity:1' /%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.search-section .input:focus {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(88, 101, 242, 0.15);
}

.filters {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.filters .select {
    flex: 1;
    min-width: 200px;
    height: 48px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.filters .select:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.1);
}

.tool-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    text-align: left;
}


.tool-card h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: left !important;
    display: block;
    text-indent: 0 !important;
    white-space: normal;
    position: relative;
    left: 0 !important;
}

/* Fix for PC display */
.tool-thumbnail + h3 {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Remove any whitespace before h3 */
.tool-card h3::before {
    content: '';
    display: none;
}

/* Ensure h3 starts from the left edge */
@media (min-width: 769px) {
    .tool-card h3 {
        margin-left: -1px !important;
        text-indent: 0 !important;
    }
}

.tool-card:hover h3 {
    /* Removed transform effect */
}

.tool-card-summary {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
    flex: 1;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tool-card-meta {
    display: flex;
    gap: 16px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.tool-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tool-card-actions .button {
    flex: 1;
    min-width: 90px;
    font-size: 12px;
    padding: 10px 20px;
}

.loading {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.loading::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 20px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.page-header {
    margin: 0 calc(-50vw + 50%) 40px;
    padding: 80px 20px 50px;
    text-align: center;
    position: relative;
    background: linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.85)), url('../assets/img_background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--border);
    width: 100vw;
    box-sizing: border-box;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
}

.contact-info {
    display: grid;
    gap: 24px;
    margin-top: 32px;
}

.contact-item {
    padding: 24px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: var(--surface);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.contact-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text);
}

.contact-item p {
    font-size: 14px;
    margin-bottom: 16px;
}

.tool-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 32px;
    margin-bottom: 32px;
}

.tool-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-secondary);
    margin: 20px 0;
}

.tool-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.tool-screenshots {
    position: relative;
    margin: 32px 0;
}

.screenshot-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 4px;
    scroll-snap-type: x mandatory;
}

.screenshot-carousel img {
    flex: 0 0 auto;
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    scroll-snap-align: start;
}

.tool-content {
    line-height: 1.8;
    color: var(--text-secondary);
}

.tool-content h1,
.tool-content h2,
.tool-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--text);
}

.tool-content code {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
    font-size: 0.9em;
    color: var(--accent);
}

.tool-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    margin: 20px 0;
}

.tool-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text);
}

.related-tools {
    margin-top: 60px;
}

.footer {
    margin-top: 100px;
    padding: 48px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
    position: relative;
    min-height: 120px;
}

.footer-logo {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    background: url('./logo.png') no-repeat center;
    background-size: contain;
    opacity: 0.08;
    transition: var(--transition);
}

.footer-logo:hover {
    opacity: 0.15;
    transform: rotate(5deg) scale(1.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer a {
    color: var(--text-secondary);
    font-weight: 500;
}

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

/* Tool thumbnail */
.tool-thumbnail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--gradient-subtle);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.tool-domain-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-right: 8px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.tool-icon {
    font-size: 2rem;
    line-height: 1;
}

.tool-category {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--surface);
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid var(--border-light);
}

/* Cyber accents */
.cyber-line {
    position: absolute;
    height: 1px;
    background: var(--gradient-cyber);
    opacity: 0.2;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(-100vh); }
    100% { transform: translateY(100vh); }
}


/* Focus states */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Page transition */
@keyframes pageTransition {
    0% { 
        opacity: 0;
        background: rgba(255,255,255,0.9);
    }
    50% {
        opacity: 0.5;
        background: rgba(255,255,255,0.5);
    }
    100% { 
        opacity: 1;
        background: transparent;
    }
}

.page-transition {
    animation: pageTransition 0.2s ease-out;
}

/* Animations */

/* Mobile responsiveness */
@media (max-width: 768px) {
    .footer-content {
        font-size: 10px;
    }
    
    .footer a {
        font-size: 11px;
    }
    
    /* Navy background fill for entire top area on mobile */
    body::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100px; /* Increased height to cover more area */
        background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #4169e1 100%);
        z-index: 998; /* Below header but above content */
        pointer-events: none;
    }
    
    /* Hide any UI.js generated header elements on mobile */
    .header {
        display: none !important;
    }
    
    .header-logo {
        height: 32px;
        margin-bottom: 4px;
        flex-shrink: 0;
        align-self: flex-start;
    }
    
    .header-logo-img {
        height: 32px;
    }
    
    .header-actions {
        position: absolute;
        right: 12px;
        top: 6px;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
    
    .header-actions .twitter-follow-button {
        display: none !important;
    }
    
    .header nav {
        display: flex;
        gap: 12px;
        justify-content: flex-start;
        padding: 0;
        margin: 0;
        width: 100%;
        padding-left: 0;
    }
    
    .header nav a {
        padding: 2px 8px;
        font-size: 11px;
        white-space: nowrap;
        display: block;
        min-width: fit-content;
    }
    
    nav a.active {
        color: var(--corporate-blue);
        font-weight: 600;
        border-bottom: 2px solid var(--corporate-blue);
    }
    
    .header nav a::after {
        display: none;
    }
    
    .lang-toggle {
        padding: 3px 4px;
        font-size: 10px;
    }
    
    .lang-toggle span {
        padding: 2px 4px;
    }
    
    .menu-button {
        width: 32px;
        height: 32px;
        padding: 0;
        border-radius: 6px;
    }
    
    .menu-icon {
        width: 18px;
        height: 18px;
    }
    
    .dropdown-menu {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 0;
        border-top: 1px solid var(--border);
        max-height: calc(100vh - 56px);
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .dropdown-title {
        font-size: 10px;
        padding: 6px 12px;
    }
    
    .dropdown-item {
        font-size: 13px;
        padding: 8px 12px;
    }
    
    .dropdown-item.dropdown-tool {
        padding-left: 20px;
        font-size: 12px;
    }
    
    .dropdown-item.dropdown-tool:hover {
        padding-left: 24px;
    }
    
    .hero, .page-header {
        padding: 60px 20px 40px;
        background-position: center 30%;
        background-size: cover;
    }
    
    .hero {
        background: 
            linear-gradient(rgba(255,255,255,0.88), rgba(255,255,255,0.88)), 
            url('../assets/img_background.png');
        background-size: auto 150%;
        background-position: center 25%;
        background-repeat: no-repeat;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    body::before {
        top: 48px;
    }
    
    .container {
        padding-top: 64px;
    }
    
    body {
        padding-top: 0; /* Remove padding since navy background covers top */
        position: relative;
    }
    
    /* Add navy background to body itself on mobile */
    body {
        background: linear-gradient(to bottom, 
            #1e3a8a 0%, 
            #2563eb 50px, 
            #4169e1 80px, 
            var(--bg) 100px, 
            var(--bg) 100%);
    }
    
    .playground-intro {
        padding: 24px 32px;
        margin: 32px 24px;
    }
    
    .playground-intro p {
        font-size: 14px;
    }
    
    .search-section {
        margin: 32px 16px;
    }
    
    .filters {
        padding: 16px;
        margin: 24px 0;
    }
    
    .grid {
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filters .select {
        width: 100%;
    }
    
    .tool-actions .button {
        width: 100%;
    }
    
    .search-section .input {
        font-size: 16px;
    }
}