/**
 * Yoowan Elementor Addon - Base Styles
 */

/* Base widget styles */
.yoowan-elementor-widget {
    position: relative;
    overflow: hidden;
}

/* Common button styles */
.yoowan-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007bff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    line-height: 1.4;
}

.yoowan-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.yoowan-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* Common title styles */
.yoowan-title {
    margin: 0 0 15px 0;
    font-weight: 600;
    line-height: 1.3;
    color: #333333;
}

.yoowan-title h1,
.yoowan-title h2,
.yoowan-title h3,
.yoowan-title h4,
.yoowan-title h5,
.yoowan-title h6 {
    margin: 0;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

/* Common description styles */
.yoowan-description {
    margin: 0 0 20px 0;
    line-height: 1.6;
    color: #666666;
}

/* Common container styles */
.yoowan-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Common grid styles */
.yoowan-grid {
    display: grid;
    gap: 20px;
}

.yoowan-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.yoowan-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.yoowan-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Common responsive styles */
@media (max-width: 768px) {
    .yoowan-grid-2,
    .yoowan-grid-3,
    .yoowan-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .yoowan-button {
        width: 100%;
        padding: 10px 20px;
    }
    
    .yoowan-container {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .yoowan-button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Loading animation */
.yoowan-loading {
    position: relative;
    overflow: hidden;
}

.yoowan-loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: yoowan-loading 1.5s infinite;
}

@keyframes yoowan-loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Fade in animation */
.yoowan-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.yoowan-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Common utility classes */
.yoowan-text-center {
    text-align: center;
}

.yoowan-text-left {
    text-align: left;
}

.yoowan-text-right {
    text-align: right;
}

.yoowan-mb-0 {
    margin-bottom: 0;
}

.yoowan-mb-1 {
    margin-bottom: 10px;
}

.yoowan-mb-2 {
    margin-bottom: 20px;
}

.yoowan-mb-3 {
    margin-bottom: 30px;
}

.yoowan-mt-0 {
    margin-top: 0;
}

.yoowan-mt-1 {
    margin-top: 10px;
}

.yoowan-mt-2 {
    margin-top: 20px;
}

.yoowan-mt-3 {
    margin-top: 30px;
}
