/**
 * Hide Password - CSS Styles
 */

/* Container */
.whp-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Button Wrapper */
.whp-button-wrapper {
    margin-bottom: 15px;
}

/* Reveal Button */
.whp-reveal-button {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.whp-reveal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.whp-reveal-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.whp-reveal-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

/* Countdown */
.whp-countdown {
    padding: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 8px;
    margin: 15px 0;
    animation: whp-fadeIn 0.3s ease;
}

.whp-countdown-text {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    display: block;
    animation: whp-pulse 1s ease infinite;
}

/* Password Display */
.whp-password-display {
    padding: 20px;
    background: linear-gradient(135deg, #e0f7fa 0%, #80deea 100%);
    border-radius: 8px;
    border: 2px solid #00acc1;
    animation: whp-fadeIn 0.3s ease;
}

.whp-password-label {
    font-size: 14px;
    font-weight: 600;
    color: #00695c;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.whp-password-value {
    font-size: 24px;
    font-weight: 700;
    color: #004d40;
    padding: 15px;
    background: #fff;
    border-radius: 6px;
    margin: 10px 0;
    word-break: break-all;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Copy Button */
.whp-copy-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(17, 153, 142, 0.3);
}

.whp-copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(17, 153, 142, 0.4);
}

.whp-copy-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

.whp-copy-button.whp-copied {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e063 100%);
}

/* Hide Button */
.whp-hide-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 5px 0;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(235, 51, 73, 0.3);
}

.whp-hide-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 51, 73, 0.4);
}

/* Error Message */
.whp-error {
    padding: 15px;
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
    border-radius: 4px;
    margin: 15px 0;
    font-weight: 600;
}

/* Copy Protection */
.whp-no-copy {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Animations */
@keyframes whp-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes whp-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.whp-pulse {
    animation: whp-pulse 0.5s ease 2;
}

/* Responsive */
@media (max-width: 600px) {
    .whp-container {
        margin: 15px;
        padding: 15px;
    }

    .whp-reveal-button {
        padding: 12px 24px;
        font-size: 14px;
    }

    .whp-password-value {
        font-size: 18px;
        padding: 12px;
    }

    .whp-copy-button,
    .whp-hide-button {
        padding: 8px 16px;
        font-size: 12px;
        margin: 5px 2px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .whp-container {
        background: #1e1e1e;
        color: #e0e0e0;
    }

    .whp-password-value {
        background: #2d2d2d;
        color: #80deea;
    }

    .whp-password-label {
        color: #80deea;
    }
}

/* Loading Spinner (optional enhancement) */
@keyframes whp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.whp-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: whp-spin 1s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}

/* Success Check Animation */
@keyframes whp-checkmark {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.whp-copied .dashicons-yes {
    animation: whp-checkmark 0.3s ease;
}

/* Hover Effects for Password Display */
.whp-password-display {
    position: relative;
    overflow: hidden;
}

.whp-password-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: whp-shine 3s infinite;
}

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