/**
 * استایل Share-Lock
 * 
 * @package Sepra Membership
 * @since 2.0.0
 */

/* ========================================
   Container
======================================== */
.sepra-sharelock-container {
    margin: 30px 0;
    padding: 0;
}

.sepra-sharelock-box {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 40px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    text-align: center;
    color: white;
}

/* ========================================
   Icon
======================================== */
.sepra-sharelock-icon {
    margin-bottom: 20px;
    animation: sepra-lock-pulse 2s ease-in-out infinite;
}

.sepra-sharelock-icon svg {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes sepra-lock-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========================================
   Title & Description
======================================== */
.sepra-sharelock-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.sepra-sharelock-description {
    margin: 0 0 30px 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   Share Buttons
======================================== */
.sepra-sharelock-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.sepra-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.sepra-share-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
}

.sepra-share-btn:active {
    transform: translateY(0);
}

.sepra-share-btn svg {
    width: 20px;
    height: 20px;
}

/* رنگ‌های اختصاصی شبکه‌ها */
.sepra-share-twitter:hover { background: #1DA1F2; border-color: #1DA1F2; }
.sepra-share-facebook:hover { background: #1877F2; border-color: #1877F2; }
.sepra-share-telegram:hover { background: #0088cc; border-color: #0088cc; }
.sepra-share-whatsapp:hover { background: #25D366; border-color: #25D366; }
.sepra-share-linkedin:hover { background: #0077B5; border-color: #0077B5; }

/* ========================================
   Stats
======================================== */
.sepra-sharelock-stats {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.sepra-sharelock-stats .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ========================================
   Loader
======================================== */
.sepra-sharelock-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.95);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.sepra-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: sepra-spin 0.8s linear infinite;
}

@keyframes sepra-spin {
    to { transform: rotate(360deg); }
}

.sepra-sharelock-loader p {
    margin-top: 15px;
    color: white;
    font-size: 14px;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 600px) {
    .sepra-sharelock-box {
        padding: 30px 20px;
    }

    .sepra-sharelock-title {
        font-size: 20px;
    }

    .sepra-sharelock-description {
        font-size: 14px;
    }

    .sepra-sharelock-buttons {
        flex-direction: column;
    }

    .sepra-share-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   RTL Support
======================================== */
[dir="rtl"] .sepra-share-btn {
    flex-direction: row-reverse;
}

/* ========================================
   Dark Mode Support
======================================== */
@media (prefers-color-scheme: dark) {
    .sepra-sharelock-box {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }
}

/* ========================================
   Success State
======================================== */
.sepra-sharelock-box.unlocked {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    animation: sepra-unlock 0.6s ease-out;
}

@keyframes sepra-unlock {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.sepra-sharelock-box.unlocked .sepra-sharelock-icon svg {
    animation: sepra-unlock-icon 0.6s ease-out;
}

@keyframes sepra-unlock-icon {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
