/* Social Card Styling */
.chapter-social-card {
    background: linear-gradient(135deg, #009688 0%, #00796B 100%);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 16px;
    color: white;
}

.chapter-info {
    grid-column: 1;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chapter-number {
    font-size: 0.9em;
    opacity: 0.9;
    font-weight: 500;
    margin-bottom: 8px;
}

.chapter-title {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.chapter-logo {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.chapter-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.chapter-social-links {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    gap: 12px;
    align-items: flex-end;
    justify-content: flex-end;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    font-size: 18px;
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Social Share Buttons */
.social-share-container {
    margin: 32px 0;
    padding: 20px;
    background: var(--md-code-bg-color);
    border-radius: 8px;
    border-left: 4px solid var(--md-primary-fg-color);
}

.social-share-title {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--md-default-fg-color);
}

.share-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: all 0.3s ease;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.share-btn.twitter {
    background: #1DA1F2;
}

.share-btn.facebook {
    background: #1877F2;
}

.share-btn.linkedin {
    background: #0A66C2;
}

.share-btn.email {
    background: #EA4335;
}

/* Comment Section */
.comments-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 2px solid var(--md-default-fg-color--lightest);
}

.comments-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--md-default-fg-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .chapter-social-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        text-align: center;
    }

    .chapter-info {
        grid-column: 1;
        grid-row: 2;
    }

    .chapter-logo {
        grid-column: 1;
        grid-row: 1;
        justify-content: center;
    }

    .chapter-social-links {
        grid-column: 1;
        grid-row: 3;
        justify-content: center;
    }

    .share-buttons {
        justify-content: center;
    }
}