/**
 * סגנונות חזית האתר
 */

/* Container ראשי */
.ttfc-post-reactions {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ttfc-post-reactions.align-left {
    text-align: left;
}

.ttfc-post-reactions.align-center {
    text-align: center;
}

.ttfc-post-reactions.align-right {
    text-align: right;
}

/* Wrapper לכפתורים */
.reactions-wrapper {
    display: inline-flex;
    gap: 15px;
    margin-bottom: 15px;
}

/* כפתורי תגובה */
.reaction-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    outline: none;
    position: relative;
    overflow: hidden;
}

.reaction-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.reaction-button.loading {
    opacity: 0.6;
    pointer-events: none;
}

.reaction-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.reaction-button.animate {
    animation: pulse 0.6s ease;
}

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

/* אייקונים */
.reaction-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
}

.reaction-icon svg {
    width: 100%;
    height: 100%;
}

/* מונים */
.reaction-count {
    font-weight: 600;
    min-width: 20px;
}

/* סטטיסטיקות */
.reactions-stats {
    margin-top: 15px;
}

.percentage-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.percentage-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
    transition: width 0.5s ease;
    border-radius: 4px;
}

.percentage-text {
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* סגנון מודרני */
.style-modern .reaction-button {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.style-modern .reaction-button:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.style-modern .like-button.active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.style-modern .dislike-button.active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* סגנון קלאסי */
.style-classic .reaction-button {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: none;
}

.style-classic .reaction-button:hover {
    background: #f5f5f5;
    border-color: #999;
}

.style-classic .reaction-button.active {
    background: #333;
    color: white;
    border-color: #333;
}

/* סגנון אימוג'י */
.style-emoji .reaction-button {
    background: transparent;
    border: none;
    font-size: 32px;
    padding: 5px 10px;
}

.style-emoji .reaction-icon {
    width: auto;
    height: auto;
    font-size: 32px;
}

.style-emoji .reaction-count {
    font-size: 18px;
    color: #333;
}

.style-emoji .reaction-button:hover {
    transform: scale(1.2);
}

.style-emoji .reaction-button.active {
    filter: drop-shadow(0 0 10px rgba(255, 204, 0, 0.8));
}

/* סגנון מינימליסטי */
.style-minimal .reaction-button {
    background: transparent;
    border: 1px solid #e0e0e0;
    padding: 8px 16px;
    border-radius: 4px;
}

.style-minimal .reaction-button:hover {
    border-color: #666;
    background: rgba(0,0,0,0.02);
}

.style-minimal .reaction-button.active {
    border-color: #333;
    background: #333;
    color: white;
}

/* סגנון שטוח */
.style-flat .reaction-button {
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    box-shadow: none;
    padding: 12px 24px;
}

.style-flat .reaction-button:hover {
    background: #e0e0e0;
}

.style-flat .like-button.active {
    background: #4CAF50;
    color: white;
}

.style-flat .dislike-button.active {
    background: #f44336;
    color: white;
}

/* גדלים */
.size-small .reaction-button {
    padding: 6px 12px;
    font-size: 14px;
}

.size-small .reaction-icon {
    width: 18px;
    height: 18px;
}

.size-large .reaction-button {
    padding: 14px 28px;
    font-size: 18px;
}

.size-large .reaction-icon {
    width: 28px;
    height: 28px;
}

/* ערכות צבעים */
.color-blue .reaction-button.active {
    background: #2196F3;
    border-color: #2196F3;
}

.color-green .reaction-button.active {
    background: #4CAF50;
    border-color: #4CAF50;
}

.color-red .reaction-button.active {
    background: #f44336;
    border-color: #f44336;
}

.color-purple .reaction-button.active {
    background: #9C27B0;
    border-color: #9C27B0;
}

.color-dark .reaction-button {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

.color-dark .reaction-button:hover {
    background: #34495e;
    border-color: #34495e;
}

.color-dark .reaction-button.active {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* הודעות */
.ttfc-pr-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    max-width: 300px;
}

.ttfc-pr-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.ttfc-pr-notification.success {
    background: #4CAF50;
    color: white;
}

.ttfc-pr-notification.error {
    background: #f44336;
    color: white;
}

/* RTL Support */
body.rtl .reactions-wrapper {
    direction: rtl;
}

body.rtl .reaction-button {
    flex-direction: row-reverse;
}

body.rtl .ttfc-pr-notification {
    right: auto;
    left: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .ttfc-post-reactions {
        padding: 15px;
        margin: 20px 0;
    }
    
    .reactions-wrapper {
        flex-direction: column;
        width: 100%;
    }
    
    .reaction-button {
        width: 100%;
        justify-content: center;
    }
    
    .ttfc-pr-notification {
        right: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }
}

@media (max-width: 480px) {
    .reaction-button {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .reaction-icon {
        width: 20px;
        height: 20px;
    }
}

