/*
Theme Name: Hello Elementor Child
Theme URI: https://stridewithsr.com
Description: Child theme for hello-elementor
Author: Stride with SR
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

@import url('../hello-elementor/style.css');

/* Child theme customizations */

/* Latest Post Floating Popup styles */
.latest-post-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99999;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(237, 182, 0, 0.4);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.02);
    width: 340px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.3s ease;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    pointer-events: auto;
}

.latest-post-popup.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.latest-post-popup.hidden {
    display: none;
}

.latest-post-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.latest-post-popup-close:hover {
    color: #111;
    background-color: rgba(0, 0, 0, 0.05);
}

.latest-post-popup-link {
    text-decoration: none !important;
    color: inherit;
    display: block;
}

.latest-post-popup-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 14px;
}

.latest-post-popup-image {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.latest-post-popup-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-post-popup-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 12px;
}

.latest-post-popup-badge-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.latest-post-popup-badge {
    background: #EDB600;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.8px;
    line-height: 1.2;
}

.latest-post-pulse {
    width: 6px;
    height: 6px;
    background-color: #EDB600;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(237, 182, 0, 0.7);
    animation: latest-post-pulse-ring 1.8s infinite;
}

@keyframes latest-post-pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(237, 182, 0, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(237, 182, 0, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(237, 182, 0, 0);
    }
}

.latest-post-popup-title {
    margin: 0;
    font-family: 'Times New Roman', serif;
    font-size: 14px;
    font-weight: bold;
    color: #111;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-post-popup-cta {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #EDB600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.latest-post-popup:hover {
    border-color: rgba(237, 182, 0, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 3px 10px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px) scale(1.01);
}

.latest-post-popup:hover .latest-post-popup-cta {
    color: #000;
}

/* Mobile responsive styles */
@media (max-width: 480px) {
    .latest-post-popup {
        bottom: 20px;
        right: 15px;
        left: 15px;
        width: auto;
    }
}
