* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #0f0f23; color: #fff; line-height: 1.6; }
a { color: #667eea; text-decoration: none; transition: color 0.2s; }
a:hover { color: #8b9ef5; text-decoration: none; }
.container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

header { padding: 40px 0; text-align: center; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); border-bottom: 1px solid #2a2a4a; }
header h1 { font-size: 2.2rem; margin-bottom: 8px; font-weight: 700; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.subtitle { color: #888; font-size: 1rem; }
.breadcrumb { margin-top: 12px; font-size: 0.85rem; color: #666; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #667eea; }

.hero-section { text-align: center; padding: 40px 0; }
.hero-section h2 { font-size: 1.5rem; color: #667eea; margin-bottom: 12px; }
.hero-section p { color: #888; max-width: 600px; margin: 0 auto; }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; padding: 20px 0; }
.tool-card { background: #1a1a2e; border-radius: 12px; padding: 24px; border: 1px solid #2a2a4a; transition: all 0.3s ease; }
.tool-card:hover { border-color: #667eea; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15); }
.tool-card h3 { color: #fff; margin-bottom: 8px; font-size: 1.1rem; }
.tool-card h3 a { color: #fff; }
.tool-card h3 a:hover { color: #667eea; }
.tool-card p { color: #888; font-size: 0.9rem; }
.tool-tag { display: inline-block; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; font-size: 0.7rem; padding: 3px 8px; border-radius: 4px; margin-top: 8px; }

.tool-page { padding: 30px 0; }
.tool-main { background: #1a1a2e; border-radius: 16px; padding: 30px; margin-bottom: 24px; border: 1px solid #2a2a4a; }
.tool-main h2 { color: #667eea; margin-bottom: 20px; font-size: 1.4rem; }
.tool-main textarea { width: 100%; min-height: 150px; background: #0f0f23; border: 1px solid #2a2a4a; color: #fff; padding: 16px; border-radius: 12px; font-family: 'Fira Code', 'Monaco', monospace; font-size: 14px; resize: vertical; margin-bottom: 16px; transition: border-color 0.2s; }
.tool-main textarea:focus { outline: none; border-color: #667eea; }
.tool-main textarea::placeholder { color: #555; }
.btn-group { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.btn { background: #252545; color: #fff; border: 1px solid #3a3a5a; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-size: 0.9rem; font-weight: 500; transition: all 0.2s; }
.btn:hover { background: #2d2d55; border-color: #667eea; }
.btn-primary { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; }
.btn-primary:hover { background: linear-gradient(135deg, #7a8ff0 0%, #8a5cb5 100%); transform: translateY(-1px); }
.btn-secondary { background: #1a1a2e; }
.status { padding: 12px 16px; border-radius: 8px; margin-top: 12px; font-size: 0.9rem; display: none; }
.status.success { background: rgba(16, 185, 129, 0.15); color: #10b981; display: block; }
.status.error { background: rgba(239, 68, 68, 0.15); color: #ef4444; display: block; }

.info-section { background: #1a1a2e; border-radius: 16px; padding: 30px; border: 1px solid #2a2a4a; }
.info-section h3 { color: #667eea; margin: 28px 0 16px; font-size: 1.2rem; }
.info-section h3:first-child { margin-top: 0; }
.info-section h4 { color: #888; margin: 20px 0 12px; font-size: 1rem; }
.info-section p { color: #aaa; margin-bottom: 16px; line-height: 1.7; }
.info-section ul { margin: 12px 0 20px 24px; color: #aaa; }
.info-section li { margin-bottom: 10px; line-height: 1.6; }
.info-section code { background: #0f0f23; padding: 3px 8px; border-radius: 6px; color: #8b9ef5; font-size: 0.9em; font-family: 'Fira Code', monospace; }

.example-box { background: #0f0f23; border-radius: 12px; padding: 20px; margin: 16px 0; border-left: 4px solid #667eea; }
.example-box h4 { color: #667eea; margin-bottom: 12px; font-size: 0.95rem; }
.example-item { background: #1a1a2e; padding: 12px 16px; border-radius: 8px; margin-bottom: 8px; border: 1px solid #2a2a4a; }
.example-item:last-child { margin-bottom: 0; }
.example-item code { display: block; margin-top: 6px; color: #ef4444; }

.related-section { margin-top: 30px; padding-top: 24px; border-top: 1px solid #2a2a4a; }
.related-section h4 { color: #667eea; margin-bottom: 16px; font-size: 1rem; }
.related-section ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.related-section li { background: #0f0f23; padding: 8px 16px; border-radius: 20px; border: 1px solid #2a2a4a; }
.related-section li a { color: #888; font-size: 0.9rem; }
.related-section li:hover { border-color: #667eea; }
.related-section li a:hover { color: #667eea; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }
.feature-item { background: #0f0f23; padding: 20px; border-radius: 12px; text-align: center; }
.feature-item h4 { color: #667eea; margin-bottom: 8px; }
.feature-item p { color: #888; font-size: 0.85rem; }

.about-section { background: #1a1a2e; border-radius: 16px; padding: 30px; margin: 40px 0; border: 1px solid #2a2a4a; }
.about-section h2 { color: #667eea; margin-bottom: 20px; font-size: 1.4rem; }
.about-section h4 { color: #fff; margin: 20px 0 10px; }
.about-section p { color: #888; }

footer { text-align: center; padding: 40px 0; color: #555; font-size: 0.85rem; border-top: 1px solid #1a1a2e; margin-top: 40px; }
footer a { color: #667eea; }

@media (max-width: 768px) {
    header h1 { font-size: 1.6rem; }
    .tools-grid { grid-template-columns: 1fr; }
    .tool-main, .info-section { padding: 20px; }
    .btn { padding: 8px 16px; font-size: 0.85rem; }
    .btn-group { gap: 8px; }
}

/* FAQ Section Styles */
.faq-item { background: #0f0f23; border-radius: 8px; margin-bottom: 10px; border: 1px solid #2a2a4a; }
.faq-item summary { padding: 14px 16px; cursor: pointer; color: #667eea; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: #667eea; }
.faq-item[open] summary::after { content: "-"; }
.faq-item summary:hover { color: #8b9ef5; }
.faq-item p { padding: 0 16px 14px 16px; color: #aaa; line-height: 1.7; margin-top: 0; }
.faq-item[open] summary { border-bottom: 1px solid #2a2a4a; margin-bottom: 10px; padding-bottom: 10px; }

/* Content sections */
.content-block { margin: 20px 0; }
.content-block h4 { color: #667eea; margin: 16px 0 8px; font-size: 1rem; }
.content-block ul { margin: 10px 0 15px 20px; }
.content-block li { margin-bottom: 8px; line-height: 1.6; }

/* Comparison table */
.comparison-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.comparison-table th, .comparison-table td { padding: 10px 14px; text-align: left; border: 1px solid #2a2a4a; }
.comparison-table th { background: #252545; color: #667eea; }
.comparison-table tr:nth-child(even) { background: #0f0f23; }
.comparison-table td { color: #aaa; }
