/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

.logo-link {
    text-decoration: none;
    color: white;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-link.active {
    border-bottom: 2px solid white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Bots Section */
.bots-section {
    padding: 4rem 0;
}

.bots-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: #333;
}

.bots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.bot-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.bot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.bot-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.bot-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.5rem;
}

.bot-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.bot-type {
    color: #666;
    font-size: 0.9rem;
}

.bot-status {
    margin-left: auto;
}

.status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.online {
    background: #d4edda;
    color: #155724;
}

.status.offline {
    background: #f8d7da;
    color: #721c24;
}

.bot-description {
    margin-bottom: 1.5rem;
}

.bot-description p {
    color: #666;
    line-height: 1.5;
}

.bot-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bot-stats .stat {
    text-align: center;
}

.bot-stats .stat-number {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}

.bot-stats .stat-label {
    font-size: 0.8rem;
    color: #666;
}

.bot-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #1e7e34;
    transform: translateY(-2px);
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background: #e0a800;
    transform: translateY(-2px);
}

.btn-channel {
    background: #17a2b8;
    color: white;
    margin: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-channel:hover {
    background: #138496;
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    background: white;
    padding: 4rem 0;
}

.about-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #333;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

.about-text ul {
    list-style: none;
    padding: 0;
}

.about-text li {
    padding: 0.5rem 0;
    color: #666;
}

.about-features {
    display: grid;
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.feature i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.feature p {
    color: #666;
}

/* Bot Page Specific Styles */
.bot-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
}

.bot-hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.bot-avatar-large {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.bot-info-large h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.bot-status-large .status {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.bot-details {
    padding: 3rem 0;
}

.bot-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.bot-description-card,
.bot-stats-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.bot-description-card h3,
.bot-stats-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.bot-features {
    list-style: none;
    padding: 0;
}

.bot-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bot-features i {
    color: #667eea;
    width: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item .stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: #666;
}

.bot-actions-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

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

.bot-share-section {
    padding: 2rem 0;
    background: white;
}

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

.channels-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.action-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

.action-card p {
    margin-bottom: 1.5rem;
    color: #666;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.qr-code {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-share {
    background: #6c757d;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-share:hover {
    background: #545b62;
}

.bot-info-section {
    padding: 3rem 0;
}

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

.info-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
}

.info-card h4 {
    margin-bottom: 1rem;
    color: #333;
}

.info-card p {
    color: #666;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h5 {
    margin-bottom: 1rem;
    color: #fff;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-section p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
    color: #ccc;
}

/* Error Pages */
.error-page {
    text-align: center;
    padding: 4rem 0;
}

.error-page h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dc3545;
}

.error-page p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .bots-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .bot-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .bot-details-grid {
        grid-template-columns: 1fr;
    }
    
    .bot-actions-large {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .bot-actions {
        flex-direction: column;
    }
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.page-link {
    display: inline-block;
    padding: 0.75rem 1rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-weight: 500;
}

.page-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.page-link.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* QR код */
.qr-code {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.qr-code img {
    max-width: 200px;
    height: auto;
    border-radius: 8px;
}
