/* Blog-specific styling for enhanced reading experience */

/* Blog content card */
#blog_content_card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    padding-left: 20px;
    padding-right: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease-out;
}

/* Blog layout container */
#blog_layout_container {
    display: flex;
    gap: 40px;
}

/* Blog text section */
#blog_text_section {
    flex: 1;
}

/* Enhanced typography */
#blog_content_card h3 {
    font-size: 32px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.3;
}

#blog_content_card h4 {
    font-size: 24px;
    font-weight: 600;
    color: #34495e;
    margin-top: 35px;
    margin-bottom: 15px;
    line-height: 1.4;
}

#blog_content_card p {
    font-size: 18px;
    line-height: 1.7;
    color: #2c3e50;
    margin-bottom: 20px;
    text-align: justify;
}

#blog_content_card b {
    font-weight: 600;
    color: #2c3e50;
}

/* Floating flags sidebar */
#floating_flags_sidebar {
    width: 5%;
    margin-top: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 40px;
}

.floating_flag {
    font-size: 28px;
    opacity: 0.7;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.floating_flag.visible {
    opacity: 1;
    transform: scale(1.1);
}

/* Mobile and tablet flags positioning */
@media screen and (max-width: 1200px) {
    .floating_flag {
        font-size: 24px;
    }
    
    #floating_flags_sidebar {
        gap: 35px;
    }
}

@media screen and (max-width: 900px) {
    #floating_flags_sidebar { 
        display: none;
    }
    #blog_layout_container {
        gap: 15px;
    }
    
    #blog_text_section {
        flex: 4;
    }
    
    #floating_flags_sidebar {
        width: 15%;
        flex: 1;
        margin-top: 20px;
        gap: 20px;
        padding: 10px 5px;
    }
    
    .floating_flag {
        font-size: 18px;
    }
}

/* Social sharing section */
#social_sharing_section {
    margin-top: 40px;
    margin-bottom: 50px;
    padding-top: 30px;
    padding-bottom: 30px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

#social_sharing_title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
}

#social_buttons_container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.social_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    flex: 1;
    min-width: 50px;
}

.social_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social_button_twitter {
    background-color: #1da1f2;
}

.social_button_facebook {
    background-color: #4267b2;
}

.social_button_linkedin {
    background-color: #0077b5;
}

.social_button_copy {
    background-color: #6c757d;
    position: relative;
}

.social_button_copy.copied {
    background-color: #28a745;
}

.social_button_copy.copied::after {
    content: "Copied!";
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

/* Social button icons */
.social_button i {
    margin-right: 0;
    font-size: 20px;
}

/* Reading experience improvements */
#blog_text_content {
    max-width: none;
    font-family: var(--sp_fonts_lang);
}

/* Mobile responsiveness */
@media screen and (max-width: 900px) {
    /* Override parent content div constraints for better mobile experience */
    #content_div_1 {
        width: 98% !important;
        padding-left: 1% !important;
        padding-right: 1% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    #blog_content_card {
        padding: 15px;
        margin: 5px 0;
        border-radius: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    #blog_content_card h3 {
        font-size: 28px;
        margin-bottom: 25px;
    }
    
    #blog_content_card h4 {
        font-size: 22px;
        margin-top: 30px;
    }
    
    #blog_content_card p {
        font-size: 16px;
        line-height: 1.6;
        text-align: left;
    }
    
    
    #social_buttons_container {
        gap: 15px;
        max-width: 300px;
    }
    
    .social_button {
        width: 45px;
        height: 45px;
        min-width: 45px;
        padding: 12px;
    }
    
    .social_button i {
        font-size: 18px;
    }
}

/* Tablet responsiveness */
@media screen and (max-width: 1200px) and (min-width: 901px) {
    #blog_content_card {
        padding: 35px;
    }
    
    #blog_content_card h3 {
        font-size: 30px;
    }
    
    #blog_content_card p {
        font-size: 17px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styles for accessibility */
.social_button:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}
