/* public/css/style.css */

.isg-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    direction: rtl;
}

/* סגנון הסקר */
.isg-survey-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.isg-survey-header {
    text-align: center;
    margin-bottom: 40px;
}

.isg-survey-header h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.isg-description {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.isg-question {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.isg-question:last-of-type {
    border-bottom: none;
}

.isg-question-title {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.isg-question-number {
    display: inline-block;
    width: 28px;
    height: 28px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-size: 14px;
    margin-left: 10px;
}

.isg-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.isg-answer-option {
    position: relative;
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.isg-answer-option:hover {
    background: #e3f2fd;
    border-color: #2196F3;
    transform: translateX(-5px);
}

.isg-answer-option.selected {
    background: #e8f5e9;
    border-color: #4CAF50;
}

.isg-answer-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.isg-radio-custom {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid #999;
    border-radius: 50%;
    margin-left: 12px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.isg-answer-option input[type="radio"]:checked ~ .isg-radio-custom {
    border-color: #4CAF50;
    background: #4CAF50;
}

.isg-answer-option input[type="radio"]:checked ~ .isg-radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.isg-answer-text {
    flex: 1;
    font-size: 16px;
    color: #333;
}

.isg-submit-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 30px auto 0;
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.isg-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

.isg-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* סגנון קופסאות המתנה */
.isg-gift-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.isg-gift-header {
    text-align: center;
    margin-bottom: 30px;
}

.isg-gift-header h2 {
    color: white;
    font-size: 26px;
    margin-bottom: 10px;
}

.isg-boxes-counter {
    color: rgba(255,255,255,0.9);
    font-size: 18px;
    font-weight: 600;
}

.isg-gift-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 600px) {
    .isg-gift-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
}

.isg-gift-box {
    position: relative;
    aspect-ratio: 1;
    background: white;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.isg-gift-box:hover:not(.opened) {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.isg-gift-box.opening {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

.isg-box-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
}

.isg-gift-icon {
    font-size: 60px;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.isg-box-number {
    font-size: 20px;
    font-weight: bold;
    color: #667eea;
}

.isg-box-result {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    text-align: center;
}

.isg-result-icon {
    font-size: 70px;
    margin-bottom: 10px;
}

.isg-result-text {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.isg-box-result.won {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border-radius: 12px;
}

.isg-box-result.lost {
    background: #f5f5f5;
    color: #666;
    border-radius: 12px;
}

.isg-gift-box.opened {
    cursor: default;
}

.isg-prize-result {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
    animation: prizeAppear 0.5s ease;
    position: relative;
    overflow: hidden;
}

.isg-prize-result::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 215, 0, 0.3) 50%, 
        transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes prizeAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.isg-prize-message h2 {
    color: #f5576c;
    margin: 0 0 15px 0;
    font-size: 32px;
    animation: bounce 1s ease infinite;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.isg-prize-message p {
    color: #666;
    font-size: 18px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* מערכת תגובות */
.isg-comments-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.isg-comments-title {
    font-size: 24px;
    color: #1a1a1a;
    margin: 0 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.isg-comment-form-wrapper {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.isg-comment-form input,
.isg-comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 12px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.isg-comment-form input:focus,
.isg-comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.isg-comment-form textarea {
    resize: vertical;
    min-height: 80px;
}

.isg-comment-submit {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.isg-comment-submit:hover {
    background: #5568d3;
    transform: translateY(-1px);
}

.isg-comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.isg-comment {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.isg-comment:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.isg-comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.isg-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    margin-left: 12px;
}

.isg-comment-meta {
    flex: 1;
}

.isg-comment-author {
    display: block;
    color: #1a1a1a;
    font-size: 15px;
    margin-bottom: 2px;
}

.isg-comment-date {
    color: #999;
    font-size: 13px;
}

.isg-comment-text {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.isg-comment-actions {
    display: flex;
    gap: 15px;
}

.isg-like-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.isg-like-btn:hover:not(.liked) {
    background: #e3f2fd;
    border-color: #2196F3;
}

.isg-like-btn.liked {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
    cursor: default;
}

.isg-like-btn.animated {
    animation: likeAnimation 0.3s ease;
}

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

.isg-like-icon {
    font-size: 16px;
}

.isg-like-count {
    font-weight: 600;
}

.isg-no-comments {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-size: 15px;
}

/* מערכת שיתוף */
.isg-share-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    text-align: center;
}

.isg-share-section h3 {
    color: #2c3e50;
    font-size: 22px;
    margin: 0 0 10px 0;
}

.isg-share-section > p {
    color: #555;
    font-size: 16px;
    margin-bottom: 20px;
}

/* פרוגרס בר */
.isg-progress-container {
    width: 100%;
    height: 40px;
    background: rgba(255,255,255,0.8);
    border-radius: 20px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.isg-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50 0%, #8BC34A 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.5s ease;
    min-width: 60px;
}

.isg-progress-text {
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.isg-progress-info {
    color: #333;
    font-size: 15px;
    font-weight: 600;
    margin: 10px 0 20px 0;
}

.isg-progress-info span {
    color: #4CAF50;
    font-size: 18px;
}

/* כפתור שיתוף */
.isg-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    margin: 10px 0;
}

.isg-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.isg-whatsapp-icon {
    font-size: 24px;
}

/* קישור להעתקה */
.isg-share-link {
    display: flex;
    gap: 10px;
    margin: 20px auto;
    max-width: 500px;
}

.isg-share-link input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    direction: ltr;
    text-align: left;
    background: white;
}

.isg-copy-btn {
    background: #2196F3;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.isg-copy-btn:hover {
    background: #1976D2;
    transform: translateY(-1px);
}

.isg-share-note {
    color: #666;
    font-size: 14px;
    margin-top: 15px;
    font-style: italic;
}

/* סעיף הושלם */
.isg-completed-section {
    margin-top: 30px;
    padding: 30px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border-radius: 12px;
    text-align: center;
}

.isg-success-icon {
    font-size: 60px;
    margin-bottom: 15px;
    animation: successPop 0.6s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.isg-completed-section h3 {
    color: #155724;
    font-size: 24px;
    margin: 0 0 15px 0;
}

.isg-completed-section p {
    color: #155724;
    font-size: 16px;
    line-height: 1.6;
}

.isg-completed-date {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid rgba(21, 87, 36, 0.2);
    font-size: 14px;
    font-style: italic;
}

/* טופס פרטי זוכה */
.isg-details-form {
    margin: 25px auto;
    max-width: 450px;
    text-align: right;
}

.isg-form-row {
    margin-bottom: 20px;
}

.isg-form-row label {
    display: block;
    color: #155724;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

.isg-form-row input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #c3e6cb;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    direction: rtl;
}

.isg-form-row input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.isg-submit-details-btn {
    width: 100%;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.isg-submit-details-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
}

.isg-submit-details-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.isg-details-sent {
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.isg-winner-info {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    text-align: right;
}

.isg-winner-info p {
    margin: 8px 0;
    color: #155724;
    font-size: 15px;
}

.isg-winner-info strong {
    color: #0d4620;
}

/* Responsive */
@media (max-width: 768px) {
    .isg-container {
        padding: 15px;
    }
    
    .isg-survey-section,
    .isg-gift-section,
    .isg-comments-section {
        padding: 20px;
    }
    
    .isg-survey-header h2 {
        font-size: 24px;
    }
    
    .isg-question-title {
        font-size: 16px;
    }
    
    .isg-answer-text {
        font-size: 14px;
    }
}