/**
 * Customizer Section Shortcuts Styling
 * 
 * Styles for the edit icons that appear on sections in Customizer preview
 *
 * @package Paws_And_Care
 * @since 3.0.1
 */

/* Section shortcut button - positioned in each section */
.customizer-section-shortcut {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000;

    /* Button styling */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;

    /* Colors */
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #ffffff;

    /* Effects */
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;

    /* Ensure visibility */
    opacity: 0.9;
}

.customizer-section-shortcut:hover {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
}

.customizer-section-shortcut:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.customizer-section-shortcut:active {
    transform: scale(1.05);
}

.customizer-section-shortcut i {
    font-size: 16px;
    line-height: 1;
}

/* Animation pulse effect on hover */
.customizer-section-shortcut::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.customizer-section-shortcut:hover::before {
    opacity: 0.4;
    transform: scale(1.5);
}

/* Make sections position relative for proper button positioning */
.slider-section,
.about-section,
.services-section,
.portfolio-section,
.testimonials-section,
.pricing-section,
.blog-section,
.team-section,
.cta-section,
.clients-section {
    position: relative;
}

/* Adjust for sections with different backgrounds */
.cta-section .customizer-section-shortcut,
.slider-section .customizer-section-shortcut {
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    color: #6366f1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-section .customizer-section-shortcut:hover,
.slider-section .customizer-section-shortcut:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Tooltip-like title display */
.customizer-section-shortcut[title]:hover::after {
    content: attr(title);
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px 12px;
    background: #1f2937;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Screen reader text (hidden but accessible) */
.customizer-section-shortcut .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .customizer-section-shortcut {
        width: 36px;
        height: 36px;
        top: 10px;
        right: 10px;
    }

    .customizer-section-shortcut i {
        font-size: 14px;
    }
}