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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(to bottom, #09090b 0%, #000000 50%, #09090b 100%);
    color: #cbd5e1;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
}

h1 {
    font-size: 3.75rem;
    line-height: 1;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.125rem;
}

@media (max-width: 640px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.5rem; }
}

/* Container */
.container {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-narrow {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header/Search Section */
.header-section {
    padding: 5rem 0;
}

.logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
}

.logo-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.logo-icon-wrapper {
    position: relative;
}

.logo-icon {
    width: 4rem;
    height: 4rem;
}

.logo-glow {
    position: absolute;
    inset: 0;
    filter: blur(1.5rem);
    background: #a855f7;
    opacity: 0.3;
    z-index: -1;
}

.site-title {
    font-size: 3.75rem;
    color: #f1f5f9;
    letter-spacing: -0.025em;
    line-height: 1;
}

.site-subtitle {
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.65rem;
    margin-top: 0.25rem;
    text-align: right;
}

@media (max-width: 640px) {
    .logo-icon { width: 3rem; height: 3rem; }
    .site-title { font-size: 2.25rem; }
    .site-subtitle { font-size: 0.55rem; }
}

.tagline {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

@media (max-width: 640px) {
    .tagline { font-size: 1rem; }
}

/* Search Form */
.search-form {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    color: #94a3b8;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1rem 7rem 1rem 3rem;
    background: rgba(24, 24, 27, 0.7);
    border: 2px solid #27272a;
    border-radius: 0.75rem;
    color: #f1f5f9;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}

.search-input::placeholder {
    color: #64748b;
}

.search-input:focus {
    background: rgba(24, 24, 27, 0.9);
    border-color: #a855f7;
}

.search-button {
    position: absolute;
    right: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: #9333ea;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 0.875rem;
}

.search-button:hover {
    background: #a855f7;
}

@media (max-width: 640px) {
    .search-icon { left: 0.75rem; width: 1rem; height: 1rem; }
    .search-input { padding: 0.75rem 5rem 0.75rem 2.5rem; font-size: 0.875rem; }
    .search-button { padding: 0.375rem 1rem; font-size: 0.75rem; }
}

.security-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.security-notice svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

/* Compact Search Header */
.compact-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(9, 9, 11, 0.8);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #27272a;
    padding: 0.75rem 0;
}

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

.compact-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.3s;
}

.compact-logo:hover {
    opacity: 0.8;
}

.compact-logo-icon {
    width: 1.75rem;
    height: 1.75rem;
    position: relative;
}

.compact-logo-text {
    color: #f1f5f9;
    font-size: 1.25rem;
    font-weight: 600;
}

.compact-search-form {
    flex: 1;
    max-width: 42rem;
}

.compact-search-input {
    width: 100%;
    padding: 0.625rem 3.5rem 0.625rem 2.5rem;
    background: #18181b;
    border: 1px solid #3f3f46;
    border-radius: 0.5rem;
    color: #f1f5f9;
    font-size: 0.875rem;
    outline: none;
}

.compact-search-input:focus {
    border-color: #a855f7;
}

.compact-search-icon {
    position: absolute;
    left: 0.75rem;
    width: 1rem;
    height: 1rem;
    color: #64748b;
    pointer-events: none;
}

.compact-search-button {
    position: absolute;
    right: 0.375rem;
    padding: 0.25rem 1rem;
    background: #27272a;
    color: #e2e8f0;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background 0.3s;
}

.compact-search-button:hover {
    background: #3f3f46;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    color: #cbd5e1;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s;
    text-decoration: none;
}

.action-button:hover {
    color: #a855f7;
}

.action-button.danger:hover {
    color: #ef4444;
}

@media (max-width: 768px) {
    .action-buttons { display: none; }
    .compact-logo-text { display: none; }
}

/* Info Section */
.info-section {
    padding-bottom: 2rem;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.feature-card {
    background: rgba(24, 24, 27, 0.4);
    border: 1px solid #27272a;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.3s;
}

.feature-card:hover {
    background: rgba(24, 24, 27, 0.6);
    border-color: #3f3f46;
}

.feature-icon {
    width: 2rem;
    height: 2rem;
    color: #475569;
    margin-bottom: 1rem;
}

.feature-title {
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.feature-description {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Ad Space */
.ad-space {
    background: rgba(24, 24, 27, 0.3);
    border: 1px solid #27272a;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 5rem;
    transition: background 0.3s;
}

.ad-space:hover {
    background: rgba(24, 24, 27, 0.4);
}

.ad-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.ad-title {
    font-size: 1.125rem;
    color: #c084fc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
    font-weight: 400;
}

.ad-title:hover {
    color: #d8b4fe;
    text-decoration: underline;
}

.ad-url {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.ad-description {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* Steps Section */
.steps-section {
    margin-bottom: 5rem;
}

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

.section-title {
    color: #f1f5f9;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: #94a3b8;
    font-size: 1rem;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.step-card {
    background: rgba(24, 24, 27, 0.4);
    border: 1px solid #27272a;
    border-radius: 0.75rem;
    padding: 1.5rem;
    position: relative;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(24, 24, 27, 0.7);
    border: 2px solid #3f3f46;
    color: #cbd5e1;
    margin-bottom: 1rem;
    font-weight: 600;
}

.step-title {
    color: #f1f5f9;
    margin-bottom: 0.5rem;
}

.step-description {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.6;
}

.step-link {
    color: #a855f7;
    text-decoration: underline;
    transition: color 0.3s;
}

.step-link:hover {
    color: #c084fc;
}

/* Categories */
.categories-section {
    margin-bottom: 5rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.category-button {
    background: rgba(24, 24, 27, 0.4);
    border: 1px solid #27272a;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
    text-align: center;
    text-decoration: none;
    display: block;
}

.category-button:hover {
    background: rgba(24, 24, 27, 0.6);
    border-color: #3f3f46;
    color: #f1f5f9;
}

/* Warning Section */
.warning-section {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 5rem;
    display: flex;
    gap: 1rem;
}

.warning-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #ef4444;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.warning-title {
    color: #fca5a5;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.warning-content {
    color: #e2e8f0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.warning-list {
    list-style: disc;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    color: #94a3b8;
}

.warning-list li {
    margin-bottom: 0.25rem;
}

/* Organizations */
.organizations-section {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    text-align: center;
}

.organizations-label {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.organizations-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.org-link {
    color: #475569;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

.org-link:hover {
    color: #a855f7;
}

/* Search Results */
.results-page {
    padding: 1.5rem 0 2rem;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #27272a;
    padding-bottom: 0.75rem;
}

.filter-tab {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.875rem;
    cursor: pointer;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    text-decoration: none;
}

.filter-tab:hover {
    color: #e2e8f0;
}

.filter-tab.active {
    color: #f1f5f9;
    border-bottom-color: #a855f7;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-item {
    padding-bottom: 1.5rem;
}

.result-title {
    font-size: 1.125rem;
    color: #c084fc;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
    font-weight: 400;
}

.result-title:hover {
    color: #d8b4fe;
    text-decoration: underline;
}

.result-url {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.result-description {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.6;
}

.load-more-wrapper {
    margin-top: 2rem;
    text-align: center;
}

.load-more-button {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    color: #94a3b8;
    background: rgba(24, 24, 27, 0.4);
    border: 1px solid #27272a;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.load-more-button:hover {
    color: #e2e8f0;
    background: rgba(24, 24, 27, 0.6);
    border-color: #3f3f46;
}

.no-results {
    text-align: center;
    padding: 4rem 1rem;
}

.no-results-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: #475569;
}

.no-results-title {
    color: #cbd5e1;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.no-results-text {
    color: #94a3b8;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    border-top: 1px solid #27272a;
    margin-top: 5rem;
}

.footer-content {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.footer-menu {
    margin-bottom: 2rem;
    border-bottom: 1px solid #27272a;
    padding-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.footer-link {
    color: #64748b;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    transition: color 0.3s;
    text-decoration: none;
}

.footer-link:hover {
    color: #a855f7;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-section h3 {
    color: #e2e8f0;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.footer-copyright {
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
    padding-top: 1rem;
}

/* Content Pages */
.content-page {
    max-width: 48rem;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.content-page h1 {
    font-size: 2.25rem;
    color: #f1f5f9;
    margin-bottom: 1.5rem;
}

.content-page h2 {
    font-size: 1.5rem;
    color: #f1f5f9;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-page p {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.content-page ul {
    color: #94a3b8;
    line-height: 1.8;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-page a {
    color: #a855f7;
    text-decoration: underline;
}

.content-page a:hover {
    color: #c084fc;
}

.back-link {
    display: inline-block;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.back-link:hover {
    color: #a855f7;
}

/* Utilities */
.hidden {
    display: none;
}

@media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-info { grid-template-columns: 1fr; }
    .warning-section { flex-direction: column; }
}
