/**
 * Styles Frontend - Savaremus Reputation Booster
 */

/* Pop-up container */
.srb-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    animation: srbFadeIn 0.3s ease-in-out;
}

.srb-popup.active {
    display: flex;
}

.srb-popup-inner {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: srbSlideUp 0.4s ease-out;
}

.srb-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 5px 10px;
    transition: color 0.2s;
}

.srb-popup-close:hover {
    color: #333;
}

/* Formulaire de capture */
.srb-capture-form {
    width: 100%;
}

.srb-form-header {
    text-align: center;
    margin-bottom: 25px;
}

.srb-form-header h3 {
    margin: 0 0 10px 0;
    font-size: 26px;
    color: #2c3e50;
    font-weight: 600;
}

.srb-form-header p {
    margin: 0;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.srb-form-body {
    margin-bottom: 20px;
}

.srb-form-group {
    margin-bottom: 15px;
}

.srb-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.srb-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.srb-button {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.srb-button-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.srb-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.srb-button-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.srb-form-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

.srb-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.srb-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.srb-form-footer {
    text-align: center;
    margin-top: 15px;
}

.srb-form-footer small {
    color: #999;
    font-size: 12px;
}

/* Widget de capture */
.srb-widget {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Page de feedback */
.srb-feedback-page {
    max-width: 600px;
    margin: 50px auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.srb-feedback-page h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.srb-feedback-stars {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 30px 0;
}

.srb-feedback-star {
    font-size: 48px;
    cursor: pointer;
    transition: all 0.2s;
    color: #ddd;
}

.srb-feedback-star:hover,
.srb-feedback-star.active {
    color: #ffd700;
    transform: scale(1.1);
}

.srb-feedback-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    margin: 20px 0;
    resize: vertical;
    box-sizing: border-box;
}

.srb-feedback-textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* QR Code */
.srb-qr-code {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Animations */
@keyframes srbFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive */
@media (max-width: 768px) {
    .srb-popup-inner {
        width: 95%;
        padding: 30px 20px;
    }
    
    .srb-form-header h3 {
        font-size: 22px;
    }
    
    .srb-feedback-star {
        font-size: 36px;
    }
    
    .srb-feedback-page {
        margin: 20px;
        padding: 25px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .srb-popup {
        background: rgba(0, 0, 0, 0.85);
    }
    
    .srb-popup-inner,
    .srb-widget,
    .srb-feedback-page {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .srb-form-header h3,
    .srb-feedback-page h1 {
        color: #ecf0f1;
    }
    
    .srb-input,
    .srb-feedback-textarea {
        background: #34495e;
        color: #ecf0f1;
        border-color: #4a5f7f;
    }
}
