:root {
    --bg-dark: #121212;
    --bg-darker: #0d0d0d;
    --text: #ffffff;
    --accent: #4c9aff;
    --border: #2d2d2d;
    --hover: #1e1e1e;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 20px;
    min-height: 100vh;
}

/* Левое меню */
.sidebar {
    width: fit-content;
    background-color: var(--bg-darker);
    border-radius: 12px;
    padding: 20px 15px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 8px;
    margin-bottom: 30px;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo span {
    color: var(--accent);
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    cursor: pointer;
    margin-bottom: 8px;
}

.menu-item:hover,
.menu-item.active {
    background-color: var(--hover);
}

.menu-item.active {
    cursor: auto;
}

.menu-item img {
    width: 24px;
    height: 24px;
    filter: invert(74%) sepia(56%) saturate(5971%) hue-rotate(192deg) brightness(100%) contrast(103%);
}

.menu-item .badge {
    background-color: #555;
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

/* Основное содержимое */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-header {
    background-image: url("../assets/brobackground.png");
    background-size: cover;
    background-position: center;
    /* Centers the image within the div */
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    overflow: hidden;
    margin: 0 auto 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.add-button {
    position: absolute;
    bottom: 10px;
    right: 20px;
    width: 36px;
    height: 36px;
    background-color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.profile-name {
    color: #fff;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
    padding: 0px;
    margin-bottom: 2px;
}

.profile-username {
    color: #fff;
    text-decoration: none;
}

.profile-info {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 12px;
    margin-bottom: 20px;
}

.profile-info span {
    width: fit-content;
    height: fit-content;
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 4px;
    padding-right: 8px;
    background-color: #2d2d2d;
    border-radius: 14px;
    display: flex;
    align-items: center;
    align-content: center;
    text-align: center;
    gap: 5px;
}

.publish-btn {
    background-color: #2d2d2d;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    width: fit-content;
    max-width: 350px;

    transition: background 0.2s;
}

.publish-btn img {
    width: 24px;
    height: 24px;
    object-fit: cover;
}

.publish-btn:hover {
    background-color: #3a3a3a;
}

.section {
    background-color: var(--bg-darker);
    border-radius: 12px;
    padding: 20px;
}

.section-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tabs {
    display: flex;
    gap: 15px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.tab.active {
    background-color: var(--accent);
    color: black;
    font-weight: bold;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.upload-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: #2d2d2d;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    justify-content: center;
    transition: background 0.2s;
}

.upload-btn:hover {
    background-color: #3a3a3a;
}

.show-all {
    text-align: right;
    margin-top: 10px;
    color: var(--accent);
    cursor: pointer;
    font-weight: bold;
}

.cta-section {
    background: linear-gradient(0deg, #284664, #4c92b5);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-text {
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.tg-button {
    background-color: #0088cc;
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s;
    width: fit-content;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.tg-qr {
    background-color: transparent;
    margin: 15px 30px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
    
}

.tg-qr img {
    max-width: 66%;
    border-radius: 32px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.tg-button:hover {
    background-color: #0077b3;
}

.try-button {
    color: var(--accent);
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.try-button img {
    width: 16px;
    height: 16px;
    object-fit: cover;
}

.post {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post span {
    font-size: 1.1rem;
}

.post-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-img {
    padding: 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 12px;
    background-color: #1e1e1e;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.post-img img {
    max-height: 600px;
    height: auto;
    width: 100%;
    object-fit: contain;
}

.post-text {
    display: flex;
    gap: 8px;
    text-align: left;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 1024px) {


    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }

    .profile-header {
        padding: 15px;
    }

    .avatar {
        width: 100px;
        height: 100px;
    }

    .profile-name {
        font-size: 1.5rem;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .profile-info {
        flex-direction: column;
        gap: 5px;
    }

    .cta-title {
        font-size: 1.5rem;
    }
}