/**
 * Frontend CSS for Owheel Addon Plugin
 *
 * @package OptinWheelProAddons
 * @since 1.0.0
 */

/* Main container */
.owheel-addon-shortcode {
    max-width: 100%;
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Typography */
.owheel-addon-shortcode h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.owheel-addon-shortcode p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

/* Buttons */
.owheel-addon-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.owheel-addon-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    color: #fff;
}

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

.owheel-addon-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.owheel-addon-button.button-secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
}

.owheel-addon-button.button-secondary:hover {
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

/* Forms */
.owheel-addon-form {
    margin: 20px 0;
}

.owheel-addon-form .form-group {
    margin-bottom: 20px;
}

.owheel-addon-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.owheel-addon-form input,
.owheel-addon-form textarea,
.owheel-addon-form select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.owheel-addon-form input:focus,
.owheel-addon-form textarea:focus,
.owheel-addon-form select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Messages */
.owheel-addon-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    z-index: 9999;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.owheel-addon-message-success {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.owheel-addon-message-error {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.owheel-addon-message-warning {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
}

.owheel-addon-message-info {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

/* Modal */
.owheel-addon-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.owheel-addon-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: owheel-addon-modal-slide-in 0.3s ease;
}

@keyframes owheel-addon-modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.owheel-addon-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.owheel-addon-modal-close:hover {
    color: #333;
}

/* Animations */
.owheel-addon-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.owheel-addon-fade-in.owheel-addon-animated {
    opacity: 1;
    transform: translateY(0);
}

/* Loading spinner */
.owheel-addon-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: owheel-addon-spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes owheel-addon-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cards */
.owheel-addon-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.owheel-addon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.owheel-addon-card h3 {
    margin-top: 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

/* Status indicators */
.owheel-addon-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.owheel-addon-status.active {
    background: #d4edda;
    color: #155724;
}

.owheel-addon-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.owheel-addon-status.pending {
    background: #fff3cd;
    color: #856404;
}

/* Lazy loading */
.owheel-addon-lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.owheel-addon-lazy.loaded {
    opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    .owheel-addon-shortcode {
        padding: 15px;
        margin: 15px 0;
    }

    .owheel-addon-shortcode h3 {
        font-size: 20px;
    }

    .owheel-addon-button {
        width: 100%;
        text-align: center;
    }

    .owheel-addon-modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }

    .owheel-addon-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .owheel-addon-shortcode {
        padding: 10px;
    }

    .owheel-addon-shortcode h3 {
        font-size: 18px;
    }

    .owheel-addon-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .owheel-addon-shortcode {
        background: #1a1a1a;
        border-color: #333;
        color: #e0e0e0;
    }

    .owheel-addon-shortcode h3 {
        color: #fff;
    }

    .owheel-addon-shortcode p {
        color: #ccc;
    }

    .owheel-addon-form input,
    .owheel-addon-form textarea,
    .owheel-addon-form select {
        background: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }

    .owheel-addon-form input:focus,
    .owheel-addon-form textarea:focus,
    .owheel-addon-form select:focus {
        border-color: #667eea;
    }

    .owheel-addon-card {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    .owheel-addon-modal-content {
        background: #1a1a1a;
        color: #e0e0e0;
    }
}

/* Mobile Verification Styles */
.owheel-mobile-verification-container {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: owheel-verification-slide-in 0.3s ease;
}

@keyframes owheel-verification-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.owheel-verification-title {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.owheel-verification-message {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
}

.owheel-code-inputs {
    direction: ltr;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
}

.owheel-code-digit {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.owheel-code-digit:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: scale(1.05);
}

.owheel-code-digit:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.owheel-verification-error {
    text-align: center;
    padding: 10px;
    background-color: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    color: #c33;
    font-size: 14px;
}

.owheel-resend-container {
    text-align: center;
}

.owheel-resend-btn {
    background: #667eea;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.owheel-resend-btn:hover:not(:disabled) {
    background: #5568d3;
    transform: translateY(-2px);
}

.owheel-resend-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.owheel-countdown {
    margin-left: 10px;
    color: #666;
    font-size: 14px;
}

.owheel-verification-buttons {
    text-align: center;
}

.owheel-back-btn {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.owheel-back-btn:hover {
    background: #e5e5e5;
    border-color: #ccc;
}

@media (max-width: 480px) {
    .owheel-mobile-verification-container {
        padding: 20px;
    }

    .owheel-code-digit {
        width: 45px;
        height: 55px;
        font-size: 20px;
    }

    .owheel-code-inputs {
        gap: 8px;
    }
}
