@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

:root {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --accent-color: #3b82f6;
    --card-bg-color: #2a2a2a;
    --border-color: #444;
}

.vk-widget-container {
    font-family: 'Nunito', sans-serif;
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-width: 350px; /* Adjust as needed */
    margin: 20px auto;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    color: var(--text-color);
    text-align: left; /* Left align all text */
}

.vk-widget-header {
    position: relative;
    height: 120px; /* Height for the header background */
    background-image: url('images/header.webp');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vk-widget-logo {
    position: absolute;
    z-index: 2; /* Ensure logo is above the overlay */
    bottom: -30px; /* Overlap with the content below */
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--card-bg-color); /* Border to stand out */
    background-color: var(--card-bg-color); /* Placeholder background */
    background-image: url('images/logo.webp');
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.vk-widget-content {
    padding: 40px 20px 20px 20px; /* Top padding adjusted for logo overlap */
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box; /* Fix button overflow */
}

.vk-widget-title {
    color: var(--accent-color);
    font-size: 1.2em; /* Reduced font size for PC */
    margin-bottom: 5px;
}

.vk-widget-description {
    font-size: 0.95em;
    line-height: 1.4;
    color: var(--text-color);
}

.vk-widget-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}

.vk-widget-button:hover {
    background-color: #2563eb; /* Darker shade of accent color */
}

.vk-subscribe-button {
    display: block;
    /* width: 100%; */ /* Remove width to let it fill naturally */
    padding: 12px 25px; /* Increase padding */
    margin: 15px auto 0 auto; /* Adjust margin */
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em; /* Increase font size */
    text-transform: uppercase;
    text-align: center;
    border-radius: 8px; /* Match container radius */
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
    transition: background-color 0.3s ease;
}

.vk-subscribe-button:hover {
    background-color: #2563eb;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .vk-widget-container {
        max-width: 95%;
        margin: 10px auto;
    }

    .vk-widget-header {
        height: 100px;
    }

    .vk-widget-logo {
        width: 70px;
        height: 70px;
        bottom: -25px;
    }

    .vk-widget-content {
        padding: 35px 15px 15px 15px;
    }

    .vk-widget-title {
        font-size: 1.3em;
    }

    .vk-widget-description {
        font-size: 0.9em;
    }

    .vk-widget-button {
        padding: 10px 20px;
        font-size: 1em;
    }
}
