/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Apply Playfair Display to all front-end elements of the plugin */
.pm-unified-container, .pm-unified-container *,
.pm-login-form, .pm-login-form *,
.pm-challenges-list, .pm-challenges-list *,
.pm-login-status, .pm-login-status * {
    font-family: 'Playfair Display', serif !important;
}

/* Login Form Styles */
.pm-login-form {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pm-login-form h2 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
    font-size: 24px;
}

.pm-login-form p {
    margin-bottom: 20px;
}

.pm-login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.pm-login-form input[type="text"],
.pm-login-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.pm-login-form input[type="text"]:focus,
.pm-login-form input[type="password"]:focus {
    outline: none;
    border-color: #C65D47;
}

.pm-login-form input[type="checkbox"] {
    margin-right: 8px;
}

.pm-submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #C65D47;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pm-submit-btn:hover {
    background-color: #A94A38;
}

/* Login Status Styles */
.pm-login-status {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    background: #F3F6FA;
    border-radius: 8px;
    text-align: center;
}

.pm-login-status p {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.pm-logout-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #f44336;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pm-logout-btn:hover {
    background-color: #da190b;
}

/* Challenges List Styles */
.pm-challenges-list {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
}

.pm-challenges-list h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 28px;
}

.pm-challenge {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.pm-challenge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.pm-challenge h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #C65D47;
    font-size: 22px;
}

.pm-challenge p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Upload Form Styles */
.pm-upload-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.pm-upload-form label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #555;
}

.pm-upload-form input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #fafafa;
    cursor: pointer;
}

.pm-upload-form input[type="file"]:hover {
    border-color: #C65D47;
    background: #f5f5f5;
}

/* Submission Status Styles */
.pm-submission-status {
    margin-top: 20px;
    padding: 20px;
    background: #F3E6E2;
    border-radius: 4px;
    text-align: center;
}

.pm-success {
    color: #8B3E2E;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.pm-submitted-photo {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Error Messages */
.pm-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #c62828;
}

/* Upload Message */
.pm-upload-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: 4px;
    display: none;
}

.pm-upload-message.success {
    display: block;
    background: #F3E6E2;
    color: #8B3E2E;
    border-left: 4px solid #8B3E2E;
}

.pm-upload-message.error {
    display: block;
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

/* Unified Interface Styles */
.pm-unified-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 20px;
}

.pm-forms-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.pm-form-section {
    flex: 1;
    min-width: 320px;
    max-width: 450px;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.pm-form-section h2 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    color: #333;
    font-size: 24px;
}

.pm-form-section p {
    margin-bottom: 20px;
}

.pm-form-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.pm-form-section input[type="text"],
.pm-form-section input[type="email"],
.pm-form-section input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.pm-form-section input[type="text"]:focus,
.pm-form-section input[type="email"]:focus,
.pm-form-section input[type="password"]:focus {
    outline: none;
    border-color: #C65D47;
}

.pm-form-section input[type="checkbox"] {
    margin-right: 8px;
}

.pm-register-form {
    border-top: 3px solid #C65D47;
}

.pm-login-form.pm-form-section {
    border-top: 3px solid #C65D47;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pm-login-status {
        margin: 20px;
    }

    .pm-challenges-list {
        margin: 20px;
        padding: 10px;
    }

    .pm-challenge {
        padding: 15px;
    }

    .pm-challenge h3 {
        font-size: 20px;
    }

    .pm-challenges-list h2 {
        font-size: 24px;
    }

    .pm-unified-container {
        margin: 20px;
        padding: 10px;
    }

    .pm-forms-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .pm-form-section {
        min-width: 100%;
        padding: 20px;
    }

    .pm-form-section h2 {
        font-size: 20px;
    }
}