/**
 * 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);
}

/* 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;
    }
}

