/* Contact Buttons Container */
.svs-contact-buttons {
    position: fixed;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.svs-contact-buttons.bottom-right {
    bottom: 30px;
    right: 30px;
}

.svs-contact-buttons.bottom-left {
    bottom: 30px;
    left: 30px;
}

/* Contact Button Base */
.svs-contact-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: visible;
}

.svs-contact-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.6s, height 0.6s, top 0.6s, left 0.6s;
}

.svs-contact-btn:hover::before {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.svs-contact-btn:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.svs-contact-btn:active {
    transform: scale(1.05);
}

/* Contact Label (shown on hover on the left side) */
.svs-contact-label {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    z-index: 99999;
}

.svs-contact-label::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #764ba2;
}

/* Show label on hover */
.svs-contact-btn:hover .svs-contact-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    pointer-events: auto;
}

/* Bottom-left position: label appears on the right */
.svs-contact-buttons.bottom-left .svs-contact-btn {
    flex-direction: row-reverse;
}

.svs-contact-buttons.bottom-left .svs-contact-label {
    right: auto;
    left: 70px;
    transform: translateY(-50%) translateX(-10px);
    flex-direction: row-reverse;
}

.svs-contact-buttons.bottom-left .svs-contact-btn:hover .svs-contact-label {
    transform: translateY(-50%) translateX(0);
}

.svs-contact-buttons.bottom-left .svs-contact-label::after {
    right: auto;
    left: -8px;
    border: 6px solid transparent;
    border-left-color: transparent;
    border-right-color: #764ba2;
}

/* WhatsApp */
.svs-contact-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.svs-contact-btn.whatsapp:hover {
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.svs-contact-btn.whatsapp .svs-contact-label {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.svs-contact-btn.whatsapp .svs-contact-label::after {
    border-left-color: #128C7E;
}

.svs-contact-buttons.bottom-left .svs-contact-btn.whatsapp .svs-contact-label::after {
    border-left-color: transparent;
    border-right-color: #128C7E;
}

/* Email */
.svs-contact-btn.email {
    background: linear-gradient(135deg, #4285F4 0%, #1A73E8 100%);
}

.svs-contact-btn.email:hover {
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.5);
}

.svs-contact-btn.email .svs-contact-label {
    background: linear-gradient(135deg, #4285F4 0%, #1A73E8 100%);
}

.svs-contact-btn.email .svs-contact-label::after {
    border-left-color: #1A73E8;
}

.svs-contact-buttons.bottom-left .svs-contact-btn.email .svs-contact-label::after {
    border-left-color: transparent;
    border-right-color: #1A73E8;
}

/* Phone */
.svs-contact-btn.phone {
    background: linear-gradient(135deg, #CA4246 0%, #9B2C2F 100%);
}

.svs-contact-btn.phone:hover {
    box-shadow: 0 8px 25px rgba(202, 66, 70, 0.5);
}

.svs-contact-btn.phone .svs-contact-label {
    background: linear-gradient(135deg, #CA4246 0%, #9B2C2F 100%);
}

.svs-contact-btn.phone .svs-contact-label::after {
    border-left-color: #9B2C2F;
}

.svs-contact-buttons.bottom-left .svs-contact-btn.phone .svs-contact-label::after {
    border-left-color: transparent;
    border-right-color: #9B2C2F;
}

/* Custom Button */
.svs-contact-btn.custom {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.svs-contact-btn.custom:hover {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
}

.svs-contact-btn.custom .svs-contact-label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.svs-contact-btn.custom .svs-contact-label::after {
    border-left-color: #764ba2;
}

.svs-contact-buttons.bottom-left .svs-contact-btn.custom .svs-contact-label::after {
    border-left-color: transparent;
    border-right-color: #764ba2;
}

/* Back to Top Button */
.svs-contact-btn.back-to-top {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.svs-contact-btn.back-to-top:hover {
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.5);
}

.svs-contact-btn.back-to-top .svs-contact-label {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.svs-contact-btn.back-to-top .svs-contact-label::after {
    border-left-color: #495057;
}

.svs-contact-buttons.bottom-left .svs-contact-btn.back-to-top .svs-contact-label::after {
    border-left-color: transparent;
    border-right-color: #495057;
}

/* SVG Icons */
.svs-contact-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
    position: relative;
    z-index: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .svs-contact-buttons {
        gap: 10px;
    }

    .svs-contact-buttons.bottom-right,
    .svs-contact-buttons.bottom-left {
        bottom: 20px;
    }

    .svs-contact-buttons.bottom-right {
        right: 20px;
    }

    .svs-contact-buttons.bottom-left {
        left: 20px;
    }

    .svs-contact-btn {
        width: 50px;
        height: 50px;
    }

    .svs-contact-label {
        display: none;
    }
}

/* ====================================
   Dark Mode Toggle Button
   ==================================== */
.svs-dark-mode-toggle {
    position: fixed;
    z-index: 99997;
    bottom: 30px;
}

.svs-dark-mode-toggle.bottom-right {
    right: 100px;
}

.svs-dark-mode-toggle.bottom-left {
    left: 100px;
}

.svs-dm-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.svs-dm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.svs-dm-icon {
    font-size: 18px;
}

.svs-dm-label {
    white-space: nowrap;
}

/* Dark Mode Body Class */
body.svs-dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.svs-dark-mode .site-header,
body.svs-dark-mode header,
body.svs-dark-mode footer,
body.svs-dark-mode .main-content {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
}

body.svs-dark-mode a {
    color: #63b3ed;
}

body.svs-dark-mode .svs-dm-btn {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

/* ====================================
   Social Share Buttons
   ==================================== */
.svs-social-share {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99996;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.svs-share-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.svs-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.svs-share-btn:hover {
    transform: scale(1.1);
}

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

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

.svs-share-btn.whatsapp {
    background: #25d366;
}

.svs-share-btn.email {
    background: #ea4335;
}

.svs-share-btn.copy {
    background: #6c757d;
}

/* Mobile Responsive for Social Share */
@media (max-width: 768px) {
    .svs-dark-mode-toggle.bottom-right {
        right: 80px;
    }

    .svs-dark-mode-toggle.bottom-left {
        left: 80px;
    }

    .svs-social-share {
        bottom: 80px;
        padding: 10px 15px;
        gap: 8px;
    }

    .svs-share-label {
        display: none;
    }

    .svs-share-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* ====================================
   Popular Pages Widget
   ==================================== */
.svs-popular-pages {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 99995;
    background: white;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    max-width: 280px;
}

body.svs-dark-mode .svs-popular-pages {
    background: #2d2d2d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.svs-popular-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

body.svs-dark-mode .svs-popular-title {
    color: #e0e0e0;
}

.svs-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.svs-popular-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

body.svs-dark-mode .svs-popular-item {
    border-bottom-color: #444;
}

.svs-popular-item:last-child {
    border-bottom: none;
}

.svs-popular-rank {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

.svs-popular-item:nth-child(1) .svs-popular-rank {
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
}

.svs-popular-item:nth-child(2) .svs-popular-rank {
    background: linear-gradient(135deg, #feca57, #ff9f43);
}

.svs-popular-item:nth-child(3) .svs-popular-rank {
    background: linear-gradient(135deg, #48dbfb, #0abde3);
}

.svs-popular-link {
    flex: 1;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.svs-dark-mode .svs-popular-link {
    color: #e0e0e0;
}

.svs-popular-link:hover {
    color: #007bff;
}

.svs-popular-count {
    font-size: 12px;
    color: #999;
    margin-left: 8px;
    flex-shrink: 0;
}

/* Mobile Responsive for Popular Pages */
@media (max-width: 768px) {
    .svs-popular-pages {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        margin: 20px auto;
        width: calc(100% - 40px);
        max-width: 400px;
    }
}