/*
 * Plugin: Signup Signin
 * Complete styles for the [ss_account_panel] shortcode
 * Professional, modern design with orange accent (#E76B38)
 */

.ss-account-panel {
    max-width: 420px;
    margin: 30px auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    border: 1px solid #e8e8e8;
}

.ss-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.ss-greeting-icon {
    font-size: 2em;
}

.ss-account-panel h2 {
    margin: 0;
    font-size: 1.8em;
    color: #333;
    font-weight: 600;
}

/* ====================== USER INFO (LOGGED IN) ====================== */
.ss-user-info {
    text-align: center;
    margin-bottom: 30px;
}

.ss-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 16px;
    border: 3px solid #f0f0f0;
}

.ss-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ss-welcome-message {
    font-size: 1.2em;
    color: #E76B38;
    font-weight: 600;
    margin: 0;
}

.ss-section {
    margin-bottom: 28px;
}

.ss-section h3 {
    font-size: 1.2em;
    color: #444;
    margin-bottom: 14px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.ss-account-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ss-account-panel li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dotted #eee;
    font-size: 0.95em;
}

.ss-label {
    font-weight: 600;
    color: #555;
    min-width: 80px;
}

.ss-edit-profile a {
    color: #E76B38;
    text-decoration: none;
    font-weight: 600;
}

.ss-edit-profile a:hover {
    text-decoration: underline;
}

.ss-logout-button {
    display: block;
    width: 100%;
    background-color: #E76B38;
    color: #ffffff;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none !important; 
    transition: background-color 0.3s ease;
}

.ss-logout-button:hover {
    background-color: #D35C2E;
}

/* ====================== TABS (LOGGED OUT) ====================== */
.ss-tabs {
    display: flex;
    margin: 0 0 30px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.ss-tab-button {
    flex: 1;
    padding: 16px;
    background: #f0f0f0;
    border: none;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #555;
}

.ss-tab-button.active {
    background: #E76B38;
    color: #ffffff;
}

.ss-tab-button:hover:not(.active) {
    background: #e0e0e0;
}

.ss-tab-content {
    display: none;
}

.ss-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* ====================== LOGIN FORM ====================== */
#ss_loginform {
    margin: 0;
    padding: 0;
}

#ss_loginform label {
    display: block;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
    font-size: 1em;
}

#ss_loginform input[type="text"],
#ss_loginform input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    background-color: #f9f9f9;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

#ss_loginform input[type="text"]:focus,
#ss_loginform input[type="password"]:focus {
    outline: none;
    border-color: #E76B38;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(231, 107, 56, 0.1);
}

#ss_loginform .login-remember {
    margin: 20px 0;
}

#ss_loginform .login-remember label {
    font-weight: normal;
    font-size: 0.95em;
    color: #666;
}

#ss_loginform input#ss_wp-submit {
    width: 100%;
    background-color: #E76B38;
    color: #ffffff;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#ss_loginform input#ss_wp-submit:hover {
    background-color: #D35C2E;
}

.ss-forgot-link {
    text-align: center;
    margin-top: 20px;
}

.ss-forgot-link a {
    color: #E76B38;
    text-decoration: none;
    font-weight: 600;
}

.ss-forgot-link a:hover {
    text-decoration: underline;
}

/* ====================== REGISTER FORM ====================== */
.ss-register-form p {
    margin-bottom: 20px;
}

.ss-register-form label {
    display: block;
    font-weight: 600;
    color: #444;
    margin-bottom: 8px;
}

.ss-register-form input[type="text"],
.ss-register-form input[type="email"],
.ss-register-form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    background: #f9f9f9;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.ss-register-form input:focus {
    outline: none;
    border-color: #E76B38;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(231, 107, 56, 0.1);
}

.ss-register-button {
    width: 100%;
    background: #E76B38 !important;
    color: #fff !important;
    padding: 14px;
    border: none !important;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ss-register-button:hover {
    background: #D35C2E;
}

/* ====================== MESSAGES ====================== */
.ss-success {
    background: #d4edda;
    color: #155724;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.ss-error {
    background: #f8d7da;
    color: #721c24;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}



/* ==================== EDIT PROFILE MODAL ==================== */

.ss-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px); /* Subtle blur for modern feel */
    animation: fadeInBackdrop 0.3s ease-out;
    justify-content: center;
    align-items: center;
    overflow-y: auto; /* Allow scrolling if modal is too tall */
    padding: 20px;
    box-sizing: border-box;
}

.ss-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 520px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    max-height: 90vh; /* Limit height on small screens */
    overflow-y: auto; /* Internal scroll for long forms */
    animation: slideUp 0.4s ease-out;
    padding: 40px 30px;
    box-sizing: border-box;
}

.ss-modal-close {
    position: absolute;
    top: 18px;
    right: 24px;
    font-size: 32px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}

.ss-modal-close:hover {
    color: #E76B38;
    background-color: #f5f5f5;
}

/* Modal Header */
.ss-modal-content h3 {
    margin: 0 0 24px 0;
    font-size: 26px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

/* Messages (success/error) */
#ss-modal-messages {
    margin-bottom: 20px;
    text-align: center;
    min-height: 24px;
}

#ss-modal-messages .success {
    color: #2e7d32;
    font-weight: 600;
    font-size: 16px;
}

#ss-modal-messages .saving {
    color: #E76B38;
    font-weight: 600;
}

#ss-modal-messages .error {
    color: #d32f2f;
}

#ss-modal-messages ul {
    margin: 10px 0;
    padding-left: 20px;
    text-align: left;
}

/* Form Styling */
#ss-edit-profile-form label {
    display: block;
    margin: 20px 0 8px;
    font-weight: 600;
    color: #444;
    font-size: 15px;
}

#ss-edit-profile-form .description {
    font-weight: normal;
    color: #777;
    font-size: 13px;
}

.ss-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.ss-input:focus {
    outline: none;
    border-color: #E76B38;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(231, 107, 56, 0.15);
}

.ss-input::placeholder {
    color: #aaa;
}

/* Password section divider */
#ss-edit-profile-form hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 30px 0;
}

/* Submit Button */
.ss-save-profile-btn {
    background: #E76B38 !important;
    color: white !important;
    padding: 14px 32px !important;
    border: none !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    width: 100% !important;
    margin-top: 20px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(231, 107, 56, 0.3) !important;
}

.ss-save-profile-btn:hover {
    background: #d45a2a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 107, 56, 0.4);
}

.ss-save-profile-btn:active {
    transform: translateY(0);
}

/* Edit Profile Trigger Button (in account panel) */
.ss-edit-profile-btn {
    background: #E76B38 !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s !important;
}

.ss-edit-profile-btn:hover {
    background: #d45a2a;
    transform: translateY(-1px);
}

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

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

/* Responsive Adjustments */
@media (max-width: 600px) {
    .ss-modal-content {
        padding: 30px 20px;
        margin: 10px;
        border-radius: 14px;
        max-width: 95%;
    }

    .ss-modal-content h3 {
        font-size: 24px;
    }

    .ss-input {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .ss-save-profile-btn {
        padding: 16px !important;
        font-size: 17px !important;
    }
}

@media (max-width: 380px) {
    .ss-modal-content {
        padding: 25px 15px;
    }

    .ss-modal-close {
        top: 12px;
        right: 16px;
    }
}