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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #0a0a0a;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ff88;
    text-decoration: none;
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00ff88;
}

.auth-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 1px solid #333;
}

.btn-secondary:hover {
    border-color: #00ff88;
    color: #00ff88;
}

.btn-primary {
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    padding: 8rem 0 4rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 2rem;
}

.search-bar {
    display: flex;
    max-width: 600px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 4px;
    backdrop-filter: blur(10px);
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 1rem;
}

.search-input::placeholder {
    color: #999;
}

.search-btn {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    color: #000;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: scale(1.05);
}

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

.category-chip {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: #ccc;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.category-chip:hover,
.category-chip.active {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border-color: #00ff88;
}

/* Listings Section */
.listings {
    padding: 4rem 0;
    background: #111;
}

.listings h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
}

.tool-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: #000;
    text-decoration: none;
}

.tool-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.tool-description {
    color: #ccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tool-stats {
    margin-bottom: 1rem;
    color: #aaa;
    font-size: 0.9rem;
}

.rating {
    margin-top: 0.5rem;
}

.stars {
    color: #ffa500;
    margin-right: 0.5rem;
}

.tool-price {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    border: 1px solid #00ff88;
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    color: #fff;
}

.close {
    color: #ccc;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #00ff88;
}

.file-input {
    width: 100%;
    padding: 1rem;
    margin: 1rem 0;
    border: 2px dashed #333;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-input:hover {
    border-color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
}

.process-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
}

.keyword-input {
    width: 100%;
    padding: 1rem;
    margin: 1rem 0;
    border: 1px solid #333;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.keyword-input::placeholder {
    color: #999;
}

.keywords-output {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid #00ff88;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    color: #00ff88;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .search-bar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-input {
        border-radius: 50px;
    }
}