/**
 * Editor Shortcodes Styles
 * تنسيقات أدوات المحرر المخصصة
 */

/* =====================================
   Countdown Timer - عداد تنازلي
   ===================================== */
.kora-countdown-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.kora-countdown-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.kora-countdown-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: relative;
    z-index: 1;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px 20px;
    min-width: 70px;
    transition: transform 0.3s;
}

.countdown-item:hover {
    transform: scale(1.05);
}

.countdown-number {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    font-family: 'Cairo', sans-serif;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.countdown-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countdown-separator {
    font-size: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.countdown-target-date {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* =====================================
   Event Box - موعد المناسبة
   ===================================== */
.kora-event-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px 25px;
    margin: 25px 0;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    border: 2px solid #667eea;
}

.event-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.countdown-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.event-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.event-icon svg {
    width: 20px;
    height: 20px;
}

.event-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 18px;
    border-radius: 10px;
    transition: background 0.3s;
}

.event-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.event-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 15px;
}

.event-value {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.event-description {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 15px;
    line-height: 1.8;
}

/* =====================================
   Quote Box - صندوق اقتباس
   ===================================== */
.kora-quote-box {
    border: 2px solid #3498db;
    border-radius: 12px;
    padding: 20px 25px;
    margin: 25px 0;
    background: linear-gradient(135deg, #3498db10 0%, #3498db05 100%);
    position: relative;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.15);
}

.quote-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: #3498db;
}

.quote-icon svg {
    width: 18px;
    height: 18px;
}

.quote-content {
    font-size: 18px;
    font-style: italic;
    line-height: 1.8;
    color: #2c3e50;
    margin-top: 10px;
    padding: 15px 0;
    border-right: 3px solid rgba(52, 152, 219, 0.3);
    padding-right: 15px;
    margin-right: 10px;
}

.quote-author {
    font-size: 15px;
    font-weight: 600;
    margin-top: 15px;
    text-align: left;
}

/* =====================================
   Info Box - صندوق معلومة
   ===================================== */
.kora-info-box,
.kora-success-box,
.kora-warning-box,
.kora-quote-box,
.kora-event-box,
.kora-error-box,
.kora-tip-box,
.kora-note-box {
    border: 2px solid;
    border-radius: 12px;
    padding: 18px 22px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

.kora-info-box {
    border-color: #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(52, 152, 219, 0.03) 100%);
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.12);
}

.kora-success-box {
    border-color: #27ae60;
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.08) 0%, rgba(39, 174, 96, 0.03) 100%);
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.12);
}

.kora-warning-box {
    border-color: #f39c12;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.08) 0%, rgba(243, 156, 18, 0.03) 100%);
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.12);
}

.kora-error-box {
    border-color: #e74c3c;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.08) 0%, rgba(231, 76, 60, 0.03) 100%);
    box-shadow: 0 4px 20px rgba(231, 76, 60, 0.12);
}

.kora-tip-box {
    border-color: #9b59b6;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.08) 0%, rgba(155, 89, 182, 0.03) 100%);
    box-shadow: 0 4px 20px rgba(155, 89, 182, 0.12);
}

.kora-note-box {
    border-color: #34495e;
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.08) 0%, rgba(52, 73, 94, 0.03) 100%);
    box-shadow: 0 4px 20px rgba(52, 73, 94, 0.12);
}

.info-header,
.success-header,
.warning-header,
.error-header,
.tip-header,
.note-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.info-icon,
.success-icon,
.warning-icon,
.error-icon,
.tip-icon,
.note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.info-icon svg,
.success-icon svg,
.warning-icon svg,
.error-icon svg,
.tip-icon svg,
.note-icon svg {
    width: 18px;
    height: 18px;
}

.info-title,
.success-title,
.warning-title,
.error-title,
.tip-title,
.note-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.info-content,
.success-content,
.warning-content,
.error-content,
.tip-content,
.note-content {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

/* =====================================
   Numbered List - ترقيم جمالي
   ===================================== */
.kora-numbered-list {
    margin: 25px 0;
    padding: 0;
}

.kora-numbered-list ol,
.kora-numbered-list ul {
    list-style: none;
    counter-reset: item;
    padding: 0;
}

.kora-numbered-list li {
    counter-increment: item;
    margin-bottom: 15px;
    padding: 18px 25px 18px 60px;
    background: #f8f9fa;
    border-radius: 10px;
    position: relative;
    transition: all 0.3s;
    font-size: 16px;
    line-height: 1.6;
}

.kora-numbered-list li::before {
    content: counter(item);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background: var(--accent-color, #00A859);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.kora-numbered-list li:hover {
    background: #fff;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* مختلف الأنماط للترقيم */
.number-list-classic li::before {
    border-radius: 8px;
}

.number-list-minimal li::before {
    background: transparent;
    color: var(--accent-color, #00A859);
    border: 2px solid var(--accent-color, #00A859);
    font-size: 14px;
}

/* =====================================
   Styled List - تنقيط جمالي
   ===================================== */
.kora-styled-list {
    margin: 25px 0;
    padding: 0;
}

.kora-styled-list ul {
    list-style: none;
    padding: 0;
}

.kora-styled-list li {
    margin-bottom: 12px;
    padding: 15px 25px 15px 45px;
    background: #f8f9fa;
    border-radius: 10px;
    position: relative;
    transition: all 0.3s;
    font-size: 16px;
    line-height: 1.6;
}

.kora-styled-list li::before {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--accent-color, #00A859);
    border-radius: 50%;
}

/* أنماط مختلفة للنقاط */
.styled-list-classic li::before {
    border-radius: 0;
    width: 8px;
    height: 8px;
}

.styled-list-circle li::before {
    border-radius: 50%;
}

.styled-list-square li::before {
    border-radius: 2px;
    width: 10px;
    height: 10px;
}

/* أحجام مختلفة */
.list-size-small li {
    font-size: 14px;
    padding: 12px 20px 12px 40px;
}

.list-size-large li {
    font-size: 18px;
    padding: 20px 30px 20px 50px;
}

.kora-styled-list li:hover,
.kora-numbered-list li:hover {
    background: #fff;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* =====================================
   Text Ads - إعلانات نصية
   ===================================== */
.kora-gold-price-ad,
.kora-weather-ad,
.kora-prayer-ad,
.kora-horoscopes-ad,
.kora-currency-ad {
    margin: 25px 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.kora-gold-price-ad {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    border: 3px solid #FFD700;
    overflow: visible;
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.4), 0 4px 15px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.kora-weather-ad {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border: 3px solid #4A90E2;
    box-shadow: 0 6px 25px rgba(74, 144, 226, 0.35), 0 3px 12px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.kora-prayer-ad {
    background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%);
    border: 3px solid #2ECC71;
    box-shadow: 0 6px 25px rgba(46, 204, 113, 0.35), 0 3px 12px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.kora-horoscopes-ad {
    background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%);
    border: 3px solid #9B59B6;
    box-shadow: 0 6px 25px rgba(155, 89, 182, 0.35), 0 3px 12px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.kora-currency-ad {
    background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
    border: 3px solid #F39C12;
    box-shadow: 0 6px 25px rgba(243, 156, 18, 0.35), 0 3px 12px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.kora-gold-price-ad::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.1) 100%);
    pointer-events: none;
    border-radius: 12px;
}

.kora-gold-price-ad::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 215, 0, 0.3) 50%, rgba(255, 140, 0, 0.2) 100%);
    border-radius: 14px;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.6;
}

.kora-weather-ad::before,
.kora-prayer-ad::before,
.kora-horoscopes-ad::before,
.kora-currency-ad::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.08) 100%);
    pointer-events: none;
    border-radius: 12px;
}

.ad-content {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    position: relative;
}

.kora-gold-price-ad .ad-content {
    padding: 22px 30px;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.ad-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    border-radius: 10px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.kora-gold-price-ad .ad-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.3) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.kora-weather-ad .ad-icon,
.kora-prayer-ad .ad-icon,
.kora-horoscopes-ad .ad-icon,
.kora-currency-ad .ad-icon {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.ad-icon svg {
    width: 28px;
    height: 28px;
    color: #fff;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.kora-gold-price-ad .ad-icon svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.ad-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ad-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 4px;
}


.ad-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.kora-gold-price-ad .ad-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(255, 255, 255, 0.3);
    background: linear-gradient(180deg, #ffffff 0%, #fff8dc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.ad-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.4;
}

.kora-gold-price-ad .ad-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    letter-spacing: 0.3px;
}

.ad-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.kora-gold-price-ad .ad-arrow {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.35) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.28), inset 0 2px 0 rgba(255, 255, 255, 0.65), inset 0 -2px 0 rgba(0, 0, 0, 0.18);
}

.kora-weather-ad .ad-arrow,
.kora-prayer-ad .ad-arrow,
.kora-horoscopes-ad .ad-arrow,
.kora-currency-ad .ad-arrow {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.25) 100%);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.ad-arrow svg {
    width: 22px;
    height: 22px;
    color: #fff;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.kora-gold-price-ad .ad-arrow svg {
    width: 24px;
    height: 24px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

/* Responsive - توافقية */
@media (max-width: 768px) {
    .countdown-item {
        padding: 12px 15px;
        min-width: 55px;
    }
    
    .countdown-number {
        font-size: 28px;
    }
    
    .countdown-label {
        font-size: 12px;
    }
    
    .countdown-separator {
        font-size: 24px;
    }
    
    .kora-event-box,
    .kora-quote-box,
    .kora-info-box,
    .kora-success-box,
    .kora-warning-box {
        padding: 20px;
    }
    
    .quote-content {
        font-size: 16px;
    }
    
    .ad-content {
        padding: 15px 20px;
        gap: 12px;
    }
    
    .kora-gold-price-ad .ad-content {
        padding: 18px 25px;
        gap: 15px;
    }
    
    .ad-icon {
        width: 52px;
        height: 52px;
    }
    
    .kora-gold-price-ad .ad-icon {
        width: 56px;
        height: 56px;
    }
    
    .ad-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .kora-gold-price-ad .ad-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .ad-title {
        font-size: 16px;
    }
    
    .kora-gold-price-ad .ad-title {
        font-size: 18px;
    }
    
    .ad-subtitle {
        font-size: 12px;
    }
    
    .kora-gold-price-ad .ad-subtitle {
        font-size: 13px;
    }
    
    .ad-arrow {
        width: 38px;
        height: 38px;
    }
    
    .kora-gold-price-ad .ad-arrow {
        width: 42px;
        height: 42px;
    }
    
    .ad-arrow svg {
        width: 20px;
        height: 20px;
    }
    
    .kora-gold-price-ad .ad-arrow svg {
        width: 22px;
        height: 22px;
    }
}

