:root {
    --bg-color: #f0f2f5;
    --container-bg: #ffffff;
    --text-color: #000000;
    --text-secondary: #686c72;
    --button-bg: #40a7e3;
    --button-hover: #3897d3;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --pattern-color: rgba(0, 0, 0, 0.03);
    --border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-color: #18222d;
    --container-bg: #242f3d;
    --text-color: #ffffff;
    --text-secondary: #b1b5bb;
    --button-bg: #40a7e3;
    --button-hover: #3897d3;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --pattern-color: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    width: 30%;
    background-color: var(--pattern-color);
    background-image: url('../images/pattern.svg');
    background-repeat: repeat;
    background-size: auto;
    z-index: -1;
}

body::before {
    left: 0;
}

body::after {
    right: 0;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--container-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 0 20px var(--shadow-color);
    position: relative;
    z-index: 1;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 24px;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.theme-toggle:hover {
    background-color: var(--shadow-color);
}

.channel-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 30px 0;
    overflow: hidden;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    background-color: transparent;
    position: relative;
}

.channel-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
    outline: none;
    border: none;
    display: block;
    background-color: var(--container-bg);
}

.channel-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-color);
}

.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
    padding: 0 40px;
}

.separator-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--text-secondary) 20%,
        var(--text-secondary) 80%,
        transparent
    );
}

.telegram-icon {
    width: 24px;
    height: 24px;
    margin: 0 15px;
    fill: var(--button-bg);
}

.channel-description {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    text-align: center;
    padding: 0 20px;
}

.telegram-button {
    background-color: var(--button-bg);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.2s;
    margin-top: 20px;
    margin-bottom: 20px;
}

.telegram-button:hover {
    background-color: var(--button-hover);
}

img {
    outline: none;
    border: none;
    -webkit-tap-highlight-color: transparent;
}

.footer {
    margin-top: 3rem;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.copyright {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

.copyright a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s ease;
    opacity: 0.9;
}

.copyright a:hover {
    color: var(--button-bg);
    opacity: 1;
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .channel-logo {
        width: 100px;
        height: 100px;
        margin: 20px 0;
    }

    .channel-title {
        font-size: 22px;
    }

    .channel-description {
        font-size: 15px;
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .footer {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
}
