/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #0a0a0f;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(28, 58, 173, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(128, 0, 128, 0.1) 0%, transparent 20%);
}

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

/* Header Styles */
header {
    text-align: center;
    padding: 40px 20px;
    border-bottom: 1px solid rgba(100, 100, 255, 0.2);
    margin-bottom: 40px;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #6a5af9, #d66efd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(106, 90, 249, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
}

.onion-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #8a2be2;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    top: 4px;
}

.onion-icon:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid #fff;
    border-radius: 50%;
    top: 0;
    left: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 0.4; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* Main Content */
main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

section {
    background-color: rgba(20, 20, 30, 0.8);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(100, 100, 255, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #8a8aff;
    display: flex;
    align-items: center;
}

h2:before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 30px;
    background-color: #6a5af9;
    margin-right: 15px;
    border-radius: 4px;
}

/* Torrent Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 20px;
}

@media (max-width: 1100px) {
    .links-grid {
        grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    }
}

@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
    }
}

.torrent-link {
    background-color: rgba(30, 30, 45, 0.9);
    border-radius: 10px;
    padding: 25px;
    border-left: 4px solid #6a5af9;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.torrent-link:hover {
    background-color: rgba(40, 40, 60, 0.9);
    border-left-color: #d66efd;
}

.torrent-link:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
}

.torrent-link:hover:before {
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.site-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #aaaaff;
    display: flex;
    align-items: center;
}

.site-name:before {
    content: '➤';
    margin-right: 10px;
    color: #6a5af9;
}

.onion-url {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    margin: 15px 0;
    border: 1px solid rgba(100, 100, 255, 0.2);
    color: #b0b0ff;
    position: relative;
    padding-left: 40px;
}

.onion-url:before {
    content: '🧅';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

/* Button Styles */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.copy-btn, .launch-btn {
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    flex: 1;
    justify-content: center;
}

.copy-btn {
    background-color: #6a5af9;
    color: white;
}

.copy-btn:hover {
    background-color: #5a4ae9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 90, 249, 0.4);
}

.copy-btn:active {
    transform: scale(0.98);
}

.copy-btn.copied {
    background-color: #2ecc71;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}

.launch-btn {
    background-color: #27ae60;
    color: white;
}

.launch-btn:hover {
    background-color: #219653;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.4);
}

.launch-btn:active {
    transform: scale(0.98);
}

.copy-icon, .launch-icon {
    transition: transform 0.3s;
}

.copy-btn:hover .copy-icon,
.launch-btn:hover .launch-icon {
    transform: scale(1.1);
}

.note {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(30, 30, 50, 0.6);
    border-radius: 8px;
    border-left: 4px solid #ffaa00;
    font-size: 0.95rem;
    color: #ccc;
}

/* Stats Section */
.stats {
    margin-top: 30px;
    padding: 20px;
    background-color: rgba(30, 30, 50, 0.4);
    border-radius: 8px;
    border-left: 4px solid #9b59b6;
    font-size: 0.95rem;
    color: #ccc;
}

.stats h4 {
    color: #9b59b6;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.stats ul {
    list-style-type: none;
    padding-left: 10px;
}

.stats li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.stats li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
}

/* Footer */
footer {
    margin-top: 60px;
    text-align: center;
    padding: 30px;
    border-top: 1px solid rgba(100, 100, 255, 0.2);
    color: #888;
    font-size: 0.9rem;
}

.warning {
    color: #ff6666;
    margin-top: 10px;
    font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    section {
        padding: 20px;
    }
    
    .torrent-link {
        padding: 20px;
    }
    
    .links-grid {
        gap: 15px;
    }
    
    .button-group {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .site-name {
        font-size: 1.3rem;
    }
    
    .onion-url {
        font-size: 0.9rem;
        padding: 12px 12px 12px 40px;
    }
    
    .copy-btn, .launch-btn {
        padding: 14px 20px;
    }
}
