/* SEARCH PAGE */

main.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.search-box {
    width: 100%;
    box-sizing: border-box;
    margin: 30px 0;
    background-color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 40px;
    margin-bottom: 50px;
}

.search-box h2 {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 15px;
}

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

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-size: 12px;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field input,
.search-field select {
    padding: 12px 15px;
    background-color: var(--primary);
    color: var(--text-light);
    border: 1px solid var(--border);
    border-radius: 0;
    font-size: 14px;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(var(--glow-orange), 0.4), 0 0 5px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
    transform: translateY(-2px);
}

.search-field input::placeholder {
    color: #666;
}

.search-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.results-table-wrapper {
    overflow-x: auto;
    background-color: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 20px;
}

.torrents-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.torrents-table thead {
    background-color: var(--primary);
    border-bottom: 2px solid var(--accent);
}

.torrents-table th {
    padding: 10px;
    text-align: left;
    color: var(--accent);
    font-weight: bold;
}

.torrents-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 70, 0, 0.1);
    text-align: left;
}

.torrent-row:hover {
    background-color: rgba(255, 70, 0, 0.05);
}

.format-badge {
    background-color: var(--blue);
    color: white;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.torrent-link {
    color: var(--blue);
    text-decoration: none;
    font-weight: bold;
}

.torrent-link:hover {
    text-decoration: underline;
    color: var(--accent);
}

.torrent-meta {
    font-size: 11px;
    color: #999;
    margin-top: 5px;
}

.green {
    color: var(--green);
}

.red {
    color: var(--red);
}

.col-name { width: 35%; }
.col-type { width: 10%; text-align: center; }
.col-version { width: 10%; text-align: center; }
.col-format { width: 10%; text-align: center; }
.col-comments { width: 8%; text-align: center; }
.col-age { width: 8%; text-align: center; }
.col-size { width: 8%; text-align: right; }
.col-completions { width: 8%; text-align: center; }
.col-seeders { width: 7%; text-align: center; }
.col-leechers { width: 7%; text-align: center; }

.pagination {
    margin-top: 30px;
    text-align: center;
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 14px;
}
