/* Widgets Ésotériques AstroKarmic - Styles */

/* ===== STYLES COMMUNS ===== */
.wea-widget {
    width: 370px;
    max-width: 100%;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.wea-container {
    background: #f5efe8;
    border: 2px solid #9a624a;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(154, 98, 74, 0.1);
    padding: 25px 20px;
    overflow: hidden;
    height: 800px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.wea-container:hover {
    box-shadow: 0 8px 25px rgba(154, 98, 74, 0.25);
    transform: translateY(-2px);
}

.wea-header {
    text-align: center;
    margin-bottom: 20px;
}

.wea-icon {
    font-size: 45px;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

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

.wea-header h2 {
    font-size: 20px;
    color: #6e4636;
    margin: 0 0 8px;
    font-weight: 700;
}

.wea-subtitle {
    font-size: 13px;
    color: #8a6b5c;
    margin: 0;
    line-height: 1.4;
}

.wea-button {
    background: #9a624a;
    color: #f5efe8;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(154, 98, 74, 0.2);
}

.wea-button:hover {
    background: #7d4f3a;
    box-shadow: 0 4px 15px rgba(154, 98, 74, 0.35);
    transform: translateY(-2px);
}

.wea-button:active {
    transform: translateY(0);
}

.wea-button-secondary {
    background: transparent;
    color: #9a624a;
    border: 2px solid #9a624a;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wea-button-secondary:hover {
    background: #9a624a;
    color: #f5efe8;
}

.wea-arrow {
    transition: transform 0.3s ease;
}

.wea-button:hover .wea-arrow {
    transform: translateX(3px);
}

.wea-info-box {
    background: rgba(154, 98, 74, 0.08);
    border-left: 3px solid #9a624a;
    padding: 12px 15px;
    border-radius: 8px;
    margin: 18px 0;
}

.wea-info-box p {
    margin: 0;
    color: #6e4636;
    font-size: 12px;
    line-height: 1.5;
}

.wea-email-capture {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.wea-email-capture input[type="email"] {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #9a624a;
    border-radius: 8px;
    font-size: 13px;
    background: #ffffff;
    color: #6e4636;
    transition: all 0.3s ease;
}

.wea-email-capture input[type="email"]:focus {
    outline: none;
    border-color: #7d4f3a;
    box-shadow: 0 0 0 3px rgba(154, 98, 74, 0.15);
}

.wea-email-capture input[type="email"]::placeholder {
    color: #b5a199;
}

/* ===== 1. ROUE DE LA FORTUNE ===== */
.wea-roue-container {
    position: relative;
    width: 100%;
    max-width: 260px;
    margin: 20px auto;
}

#wea-wheel-canvas {
    width: 100%;
    height: auto;
    display: block;
}

.wea-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: #9a624a;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(154, 98, 74, 0.3);
    transition: all 0.3s ease;
    z-index: 10;
    border: 3px solid #f5efe8;
}

.wea-wheel-center:hover {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 6px 18px rgba(154, 98, 74, 0.45);
}

.wea-wheel-arrow {
    color: #f5efe8;
    font-size: 24px;
    margin-bottom: -3px;
}

.wea-wheel-btn-text {
    color: #f5efe8;
    font-weight: bold;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.wea-wheel-center.spinning {
    pointer-events: none;
    animation: pulse 0.5s infinite;
}

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

.wea-result-box {
    background: #9a624a;
    color: #f5efe8;
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    margin: 18px 0;
    animation: slideIn 0.5s ease-out;
}

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

.wea-result-icon {
    font-size: 40px;
    margin-bottom: 12px;
    animation: bounce 1s ease-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-8px); }
}

.wea-result-box h3 {
    font-size: 18px;
    margin: 10px 0 8px;
    color: #f5efe8;
}

.wea-result-box p {
    margin: 8px 0 15px;
    font-size: 13px;
    opacity: 0.95;
    line-height: 1.4;
}

.wea-retry-btn {
    background: transparent;
    color: #f5efe8;
    border: 2px solid #f5efe8;
    font-size: 13px;
    padding: 10px 18px;
}

.wea-retry-btn:hover {
    background: #f5efe8;
    color: #9a624a;
}

/* ===== 2. ALIGNEMENT COSMIQUE ===== */
.wea-cosmic-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
    flex-direction: column;
}

.wea-cosmic-circle {
    width: 100px;
    height: 100px;
    background: #9a624a;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(154, 98, 74, 0.25);
    animation: rotate 20s linear infinite;
    position: relative;
    border: 3px solid rgba(245, 239, 232, 0.3);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.wea-planet-icon {
    font-size: 40px;
    animation: float 3s ease-in-out infinite;
}

.wea-planet-name {
    color: #f5efe8;
    font-weight: bold;
    font-size: 14px;
    margin-top: 5px;
}

.wea-cosmic-info {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wea-cosmic-phase {
    background: rgba(154, 98, 74, 0.08);
    padding: 10px 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid #9a624a;
}

.wea-label {
    color: #8a6b5c;
    font-size: 12px;
    font-weight: 600;
}

.wea-value {
    color: #6e4636;
    font-weight: 600;
    font-size: 13px;
}

.wea-cosmic-message {
    background: rgba(154, 98, 74, 0.08);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    border-left: 3px solid #9a624a;
}

.wea-cosmic-message h3 {
    color: #9a624a;
    margin: 0 0 10px;
    font-size: 16px;
}

.wea-cosmic-message p {
    margin: 0;
    line-height: 1.5;
    color: #6e4636;
    font-size: 13px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.wea-cosmic-advice {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 15px 0;
}

.wea-advice-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(154, 98, 74, 0.08);
    padding: 10px 12px;
    border-radius: 8px;
}

.wea-advice-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.wea-advice-item span:last-child {
    font-size: 12px;
    line-height: 1.5;
    color: #6e4636;
}

.wea-cosmic-timer {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(154, 98, 74, 0.2);
}

.wea-cosmic-timer small {
    color: #8a6b5c;
    font-size: 11px;
}

#wea-cosmic-countdown {
    color: #9a624a;
    font-weight: 600;
}

/* ===== 3. ANALYSE VIBRATOIRE ===== */
.wea-vibration-step {
    min-height: 340px;
}

.wea-name-input-box {
    text-align: center;
    margin: 20px 0;
}

.wea-name-input-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #6e4636;
    font-size: 15px;
}

.wea-name-input-box input {
    width: 100%;
    max-width: 100%;
    padding: 12px 15px;
    border: 2px solid #9a624a;
    border-radius: 10px;
    font-size: 15px;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 15px;
    background: #ffffff;
    color: #6e4636;
}

.wea-name-input-box input:focus {
    outline: none;
    border-color: #7d4f3a;
    box-shadow: 0 0 0 3px rgba(154, 98, 74, 0.15);
}

.wea-name-input-box input::placeholder {
    color: #b5a199;
}

.wea-examples {
    text-align: center;
    margin-top: 15px;
}

.wea-examples small {
    color: #8a6b5c;
    font-size: 11px;
    line-height: 1.4;
}

.wea-vibration-result {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.wea-vibration-number-display {
    background: #9a624a;
    color: #f5efe8;
    padding: 25px 20px;
    border-radius: 12px;
    text-align: center;
    margin: 18px 0;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(245, 239, 232, 0.3);
}

.wea-vibration-number-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 239, 232, 0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(-25%, -25%); }
    50% { transform: translate(0%, 0%); }
}

.wea-vibration-label {
    font-size: 11px;
    opacity: 0.9;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.wea-vibration-number {
    font-size: 55px;
    font-weight: bold;
    margin: 12px 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.wea-vibration-name {
    font-size: 18px;
    opacity: 0.95;
    font-weight: 600;
}

.wea-vibration-meaning {
    margin: 18px 0;
    text-align: center;
}

.wea-vibration-meaning h3 {
    color: #9a624a;
    font-size: 18px;
    margin: 0 0 10px;
}

.wea-vibration-meaning p {
    font-size: 13px;
    line-height: 1.5;
    color: #6e4636;
}

.wea-vibration-traits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 18px 0;
}

.wea-trait-box {
    padding: 15px;
    border-radius: 10px;
    border-left: 3px solid;
}

.wea-trait-positive {
    background: rgba(73, 157, 104, 0.08);
    border-color: #499d68;
}

.wea-trait-challenge {
    background: rgba(245, 158, 11, 0.08);
    border-color: #f59e0b;
}

.wea-trait-box h4 {
    margin: 0 0 10px;
    font-size: 14px;
}

.wea-trait-positive h4 {
    color: #499d68;
}

.wea-trait-challenge h4 {
    color: #f59e0b;
}

.wea-trait-box p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #6e4636;
}

.wea-vibration-compatibility {
    background: rgba(154, 98, 74, 0.08);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    border-left: 3px solid #9a624a;
}

.wea-vibration-compatibility h4 {
    color: #9a624a;
    margin: 0 0 8px;
    font-size: 14px;
}

.wea-vibration-compatibility p {
    margin: 0;
    color: #6e4636;
    font-size: 12px;
}

.wea-email-capture-full {
    margin-top: 20px;
}

.wea-email-box {
    background: rgba(154, 98, 74, 0.08);
    padding: 18px 15px;
    border-radius: 10px;
    border: 2px dashed #9a624a;
    text-align: center;
}

.wea-email-box h3 {
    color: #9a624a;
    margin: 0 0 8px;
    font-size: 16px;
}

.wea-email-box p {
    margin: 0 0 15px;
    color: #6e4636;
    font-size: 12px;
    line-height: 1.4;
}

.wea-email-form {
    display: flex;
    gap: 8px;
    max-width: 100%;
    margin: 0 auto;
}

.wea-email-form input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #9a624a;
    border-radius: 8px;
    font-size: 13px;
    background: #ffffff;
    color: #6e4636;
}

.wea-email-form input:focus {
    outline: none;
    border-color: #7d4f3a;
    box-shadow: 0 0 0 3px rgba(154, 98, 74, 0.15);
}

.wea-email-form input::placeholder {
    color: #b5a199;
}

/* ===== LOADING STATE ===== */
.wea-button.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.wea-button.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(245, 239, 232, 0.3);
    border-top-color: #f5efe8;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 350px) {
    .wea-widget {
        width: 100%;
        margin: 15px auto;
    }
    
    .wea-container {
        padding: 20px 15px;
        min-height: 380px;
    }
    
    .wea-header h2 {
        font-size: 18px;
    }
    
    .wea-subtitle {
        font-size: 12px;
    }
    
    .wea-cosmic-display {
        gap: 12px;
    }
    
    .wea-cosmic-advice,
    .wea-vibration-traits {
        grid-template-columns: 1fr;
    }
    
    .wea-email-capture,
    .wea-email-form {
        flex-direction: column;
    }
    
    .wea-vibration-number {
        font-size: 45px;
    }
    
    .wea-roue-container {
        max-width: 240px;
    }
    
    .wea-wheel-center {
        width: 60px;
        height: 60px;
    }
    
    .wea-wheel-arrow {
        font-size: 20px;
    }
    
    .wea-wheel-btn-text {
        font-size: 10px;
    }

    .wea-button {
        font-size: 13px;
        padding: 10px 16px;
    }
}

/* ===== NOTIFICATIONS ===== */
.wea-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #9a624a;
    color: #f5efe8;
    padding: 12px 24px;
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(154, 98, 74, 0.3);
    z-index: 10000;
    font-weight: 600;
    font-size: 13px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== ANIMATIONS SUPPLÉMENTAIRES ===== */
.wea-sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.08); }
}

.wea-glow {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 8px rgba(154, 98, 74, 0.25); }
    50% { box-shadow: 0 0 18px rgba(154, 98, 74, 0.5); }
}

/* ===== PAGES DE RÉSULTATS ===== */
.wea-result-page {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px 30px;
    background: #f5efe8;
    border: 2px solid #9a624a;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(154, 98, 74, 0.15);
}

.wea-result-page-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(154, 98, 74, 0.2);
}

.wea-result-page-header h1 {
    color: #6e4636;
    font-size: 32px;
    margin: 0 0 15px;
}

.wea-result-page-header p {
    color: #8a6b5c;
    font-size: 16px;
    margin: 0;
}

.wea-result-content {
    margin: 30px 0;
}

.wea-result-main-display {
    background: #9a624a;
    color: #f5efe8;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(154, 98, 74, 0.3);
}

.wea-result-main-display h2 {
    font-size: 48px;
    margin: 0 0 15px;
    color: #f5efe8;
}

.wea-result-main-display .subtitle {
    font-size: 24px;
    opacity: 0.95;
    margin: 15px 0;
}

.wea-result-main-display .description {
    font-size: 16px;
    line-height: 1.7;
    margin: 20px 0 0;
    opacity: 0.9;
}

.wea-result-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.wea-result-detail-box {
    background: rgba(154, 98, 74, 0.08);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid #9a624a;
}

.wea-result-detail-box h3 {
    color: #9a624a;
    font-size: 20px;
    margin: 0 0 15px;
}

.wea-result-detail-box p {
    color: #6e4636;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.wea-result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 40px 0 20px;
    flex-wrap: wrap;
}

.wea-result-actions .wea-button {
    min-width: 180px;
}

.wea-share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
}

.wea-share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    color: white;
}

.wea-share-btn.facebook { background: #1877f2; }
.wea-share-btn.twitter { background: #1da1f2; }
.wea-share-btn.whatsapp { background: #25d366; }

.wea-share-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.wea-back-link {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(154, 98, 74, 0.2);
}

.wea-back-link a {
    color: #9a624a;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.wea-back-link a:hover {
    color: #7d4f3a;
}

/* Responsive pages de résultats */
@media (max-width: 768px) {
    .wea-result-page {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .wea-result-page-header h1 {
        font-size: 26px;
    }
    
    .wea-result-main-display {
        padding: 35px 25px;
    }
    
    .wea-result-main-display h2 {
        font-size: 36px;
    }
    
    .wea-result-details {
        grid-template-columns: 1fr;
    }
    
    .wea-result-actions {
        flex-direction: column;
    }
    
    .wea-result-actions .wea-button {
        width: 100%;
    }
}
