/**
 * Softech Addons for Elementor - Frontend Global Styles
 * 
 * @package Softech_Addons_for_Elementor
 * @since 1.0.0
 */

/* Reset for SITS widgets */
.sitsel-widget,
[class*="sitsel-"] {
    box-sizing: border-box;
}

.sitsel-widget *,
[class*="sitsel-"] * {
    box-sizing: border-box;
}

/* Common utility classes */
.sitsel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.sitsel-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.sitsel-col {
    padding: 0 15px;
}

/* Text alignment utilities */
.sitsel-text-left {
    text-align: left;
}

.sitsel-text-center {
    text-align: center;
}

.sitsel-text-right {
    text-align: right;
}

/* Spacing utilities */
.sitsel-mb-0 { margin-bottom: 0; }
.sitsel-mb-10 { margin-bottom: 10px; }
.sitsel-mb-20 { margin-bottom: 20px; }
.sitsel-mb-30 { margin-bottom: 30px; }
.sitsel-mb-40 { margin-bottom: 40px; }

.sitsel-mt-0 { margin-top: 0; }
.sitsel-mt-10 { margin-top: 10px; }
.sitsel-mt-20 { margin-top: 20px; }
.sitsel-mt-30 { margin-top: 30px; }
.sitsel-mt-40 { margin-top: 40px; }

/* Common button styles */
.sitsel-button {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.sitsel-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sitsel-button:active {
    transform: translateY(0);
}

/* Loading state */
.sitsel-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.sitsel-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: sitsel-spin 1s linear infinite;
}

@keyframes sitsel-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Hide elements */
.sitsel-hidden {
    display: none !important;
}

/* Clearfix */
.sitsel-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive images */
.sitsel-img-responsive {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Overlay styles */
.sitsel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* Fade animations */
.sitsel-fade-in {
    animation: sitselFadeIn 0.5s ease-in;
}

@keyframes sitselFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.sitsel-fade-out {
    animation: sitselFadeOut 0.5s ease-out;
}

@keyframes sitselFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Slide animations */
.sitsel-slide-up {
    animation: sitselSlideUp 0.5s ease-out;
}

@keyframes sitselSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Accessibility */
.sitsel-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles */
.sitsel-button:focus,
.sitsel-link:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Responsive breakpoints */
@media (max-width: 1024px) {
    .sitsel-container {
        max-width: 960px;
    }
}

@media (max-width: 768px) {
    .sitsel-container {
        max-width: 720px;
    }
    
    .sitsel-row {
        margin: 0 -10px;
    }
    
    .sitsel-col {
        padding: 0 10px;
    }
}

@media (max-width: 576px) {
    .sitsel-container {
        max-width: 100%;
    }
    
    .sitsel-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

