/* Store Branches Cards Styling */
.store-branch-card {
    background: #FDF5EB;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
}

.store-branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    background: #fff;
}

.store-branch-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.store-branch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.store-branch-card:hover .store-branch-image img {
    transform: scale(1.05);
}

.store-branch-icon {
    font-size: 4rem;
    color: #6c757d;
    opacity: 0.6;
}

.store-branch-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.store-branch-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #EAA636 !important;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-branch-address {
    color: #555 !important;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.store-branch-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: auto;
}

/* Button Base Styles - SAME SIZE FOR ALL BUTTONS */
.store-branch-btn {
    flex: 1;
    min-width: 120px;
    height: 44px;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    box-sizing: border-box;
    line-height: 1;
    background: #EAA636;
    color: #fff;
    border: 2px solid #EAA636;
}

.store-branch-btn:hover {
    background: #b97a1a;
    color: #fff;
    border: 2px solid #b97a1a;
    transform: translateY(-2px);
    text-decoration: none;
}

.store-branch-btn i {
    font-size: 1rem;
    flex-shrink: 0;
}

.store-branch-btn span {
    white-space: nowrap;
}

/* Maps Button */
.store-branch-btn.maps-btn {
    background: #EAA636;
    color: #fff;
    border-color: #EAA636;
}

/* Maps button small circle like badge */
.store-branch-btn.maps-btn {
    flex: 0 0 auto;
    min-width: 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 999px;
}

.store-branch-btn.maps-btn i {
    font-size: 16px;
}

.store-branch-btn.maps-btn:hover {
    background: #b97a1a;
    color: #fff;
    box-shadow: 0 4px 15px rgba(234, 166, 54, 0.3);
    border-color: #b97a1a;
}

/* WhatsApp Button Container */
.admin-avatar-container {
    position: relative;
    display: inline-block;
    flex: 1;
    min-width: 120px;
    overflow: visible;
    padding-right: 10px;
}

/* WhatsApp Button */
.store-branch-btn.whatsapp-btn {
    background: #EAA636;
    color: #fff;
    border-color: #EAA636;
    width: 100%;
    margin-right: 8px;
    justify-content: flex-start;
    padding-left: 0.85rem;
}

.store-branch-btn.whatsapp-btn:hover {
    background: #b97a1a;
    color: #fff;
    box-shadow: 0 4px 15px rgba(234, 166, 54, 0.3);
    border-color: #b97a1a;
}

.store-branch-btn.whatsapp-btn i {
    margin-right: 6px;
}

/* WhatsApp Button with Avatar */
.whatsapp-btn-with-avatar {
    padding-right: 3.2rem !important;
}

/* Admin Avatar - DESKTOP SIZE */
.admin-avatar {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    object-fit: cover;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    right: -23px;
    transform: translateY(-50%);
    z-index: 10;
}

.admin-avatar:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.admin-avatar-placeholder {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 700;
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    z-index: 10;
    transition: all 0.3s ease;
}

.admin-avatar-placeholder:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Social Media Icons */
.store-branch-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.social-btn:hover {
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Shopee SVG Styling */
.social-btn.shopee svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.social-btn.shopee:hover {
    background: #ee4d2d;
    border-color: #ee4d2d;
}

.social-btn.shopee:hover svg {
    transform: scale(1.1);
}

/* Tokopedia SVG Styling */
.social-btn.tokopedia svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.social-btn.tokopedia:hover {
    background: #42b549;
    border-color: #42b549;
}

.social-btn.tokopedia:hover svg {
    transform: scale(1.1);
}

.social-btn.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #dc2743;
}

.social-btn.tiktok:hover {
    background: #000000;
    border-color: #000000;
}

.social-btn.maps:hover {
    background: #4285f4;
    border-color: #4285f4;
}

.social-btn.whatsapp:hover {
    background: #25d366;
    border-color: #25d366;
}

/* Responsive Design */
@media (max-width: 768px) {
    .store-branch-content {
        padding: 1.25rem;
    }
    
    .store-branch-title {
        font-size: 1rem;
    }
    
    .store-branch-address {
        font-size: 0.85rem;
    }
    
    .store-branch-actions {
        flex-direction: row;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .store-branch-btn {
        min-width: 120px;
        width: auto;
        height: 44px;
        padding: 0.6rem 1rem;
        flex: 1;
    }
    
    .admin-avatar-container {
        min-width: 120px;
        width: auto;
        flex: 1;
    }
    
    /* Admin Avatar - TABLET SIZE */
    .admin-avatar,
    .admin-avatar-placeholder {
        width: 75px;
        height: 75px;
        font-size: 13px;
        border-width: 2px;
    }
    
    .whatsapp-btn-with-avatar {
        padding-right: 3rem !important;
    }
    
    /* Shopee SVG - TABLET SIZE */
    .social-btn.shopee svg {
        width: 18px;
        height: 18px;
    }
    
    /* Tokopedia SVG - TABLET SIZE */
    .social-btn.tokopedia svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 576px) {
    .store-branch-content {
        padding: 1.25rem;
    }
    
    .store-branch-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .store-branch-address {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
    }
    
    .store-branch-actions {
        flex-direction: row;
        gap: 0.75rem;
        flex-wrap: wrap;
        margin-top: auto;
    }
    
    .store-branch-btn {
        min-width: 120px;
        height: 44px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        flex: 1;
    }
    
    .store-branch-btn i {
        font-size: 1rem;
    }

    /* WhatsApp font bigger on mobile */
    .store-branch-btn.whatsapp-btn {
        font-size: 1rem;
    }
    .store-branch-btn.whatsapp-btn i {
        font-size: 1.1rem;
    }
    
    .admin-avatar-container {
        min-width: 120px;
        flex: 1;
    }
    
    /* Admin Avatar - MOBILE SIZE */
    .admin-avatar,
    .admin-avatar-placeholder {
        width: 75px;
        height: 75px;
        font-size: 12px;
        border-width: 2px;
    }
    
    .whatsapp-btn-with-avatar {
        padding-right: 2.8rem !important;
    }
    
    .store-branch-social {
        gap: 0.5rem;
        margin-top: 1rem;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
    }
    
    /* Shopee SVG - MOBILE SIZE */
    .social-btn.shopee svg {
        width: 18px;
        height: 18px;
    }
    
    /* Tokopedia SVG - MOBILE SIZE */
    .social-btn.tokopedia svg {
        width: 18px;
        height: 18px;
    }
}

/* Animation */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.store-branch-card {
    animation: slideInLeft 0.8s ease-out;
}

.store-branch-card:nth-child(1) { animation-delay: 0.1s; }
.store-branch-card:nth-child(2) { animation-delay: 0.2s; }
.store-branch-card:nth-child(3) { animation-delay: 0.3s; }
.store-branch-card:nth-child(4) { animation-delay: 0.4s; }

/* Avatar Pulse Animation */
@keyframes avatarPulse {
    0% {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }
    50% {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2), 0 0 0 6px rgba(37, 211, 102, 0.25);
    }
    100% {
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    }
}

.admin-avatar-container:hover .admin-avatar,
.admin-avatar-container:hover .admin-avatar-placeholder {
    animation: avatarPulse 1.5s infinite;
} 