/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
}

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

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    color: #4CAF50;
    margin-bottom: 10px;
}

.tagline {
    color: #888;
    font-size: 1.1rem;
}

.seed-notice {
    color: #ffeb3b;
    font-size: 1rem;
    margin-top: 10px;
    font-weight: bold;
}

/* Search Section */
.search-section {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-input {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    color: #e0e0e0;
    border-radius: 4px;
}

.search-btn {
    padding: 12px 30px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.search-btn:hover {
    background-color: #45a049;
}

/* Results Section - Compact List View */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.torrent-item {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 10px 15px;
    transition: all 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 20px;
}

.torrent-item:hover {
    background-color: #45a049;
    border-color: #5cbf60;
    transform: translateX(5px);
}

/* Compact single-line layout */
.torrent-title {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    color: #4CAF50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.torrent-item:hover .torrent-title {
    color: white;
}

.torrent-info {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 0.85rem;
    color: #888;
}

.torrent-item:hover .torrent-info {
    color: #e0e0e0;
}

.category-tag {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.75rem;
}

.torrent-item:hover .category-tag {
    background-color: #2a2a2a;
}

.torrent-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.magnet-btn, .torrent-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 5px 10px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.magnet-btn {
    background-color: #4CAF50;
    color: white;
}

.torrent-btn {
    background-color: #2196F3;
    color: white;
}

.torrent-item:hover .magnet-btn,
.torrent-item:hover .torrent-btn {
    transform: scale(1.1);
}

.details-btn {
    background-color: transparent;
    color: #888;
    border: 1px solid #444;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85rem;
}

.torrent-item:hover .details-btn {
    border-color: white;
    color: white;
}

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

.modal-dialog {
    background-color: #2a2a2a;
    max-width: 800px;
    margin: 50px auto;
    border-radius: 8px;
    border: 1px solid #444;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #444;
}

.modal-header h2 {
    color: #4CAF50;
}

.close-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 28px;
    cursor: pointer;
}

.modal-content {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Loading message */
.loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

/* No results message */
.no-results {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 1.2rem;
}

/* Hash display in modal */
.hash-info {
    background-color: #1a1a1a;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

/* Responsive design */
@media (max-width: 768px) {
    .torrent-item {
        flex-wrap: wrap;
        padding: 15px;
    }
    
    .torrent-title {
        flex: 100%;
        margin-bottom: 5px;
    }
    
    .torrent-info {
        flex: 100%;
        margin-bottom: 5px;
    }
    
    .torrent-actions {
        flex: 100%;
    }
}

/* SHA256 for SEO - barely visible */
.sha256-tiny {
    font-size: 1px;
    color: #1a1a1a;
    opacity: 0.1;
    margin-left: 5px;
    display: inline-block;
    max-width: 100px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: super;
    font-family: monospace;
    letter-spacing: -0.5px;
}

/* Make it slightly more visible on hover for debugging */
.torrent-item:hover .sha256-tiny {
    font-size: 6px;
    opacity: 0.3;
    color: #333;
}

/* Security notice styling */
.security-notice {
    font-size: 0.9rem;
    color: #4CAF50;
    margin-top: 5px;
    opacity: 0.8;
}
