/* Base Layout */
.sef-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: #333;
    line-height: 1.6;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}

.sef-header {
    margin-bottom: 40px;
    text-align: center;
}

.sef-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #4285F4, #9B72CB, #D96570);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.sef-description {
    font-size: 1.1rem;
    color: #5f6368;
    max-width: 600px;
    margin: 0 auto;
}

/* Login Button - The "Hero" Element */
.sef-login-area {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.sef-login-btn {
    display: inline-block;
    text-decoration: none;
    padding: 14px 40px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff !important;
    background: linear-gradient(135deg, #1A73E8 0%, #8E24AA 100%);
    border-radius: 50px;
    box-shadow: 0 10px 20px -5px rgba(26, 115, 232, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.sef-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px -5px rgba(26, 115, 232, 0.5);
    color: #fff;
    text-decoration: none;
}

.sef-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px -4px rgba(26, 115, 232, 0.4);
}

/* Modal Styling */
.sef-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sef-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.sef-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.sef-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.sef-modal.active .sef-modal-content {
    transform: translateY(0);
}

.sef-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #5f6368;
}

.sef-modal-content h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #202124;
}

.sef-modal-content p {
    color: #5f6368;
    margin-bottom: 24px;
}

/* WP Login Form Styling inside Modal */
.sef-modal-content .login-username,
.sef-modal-content .login-password {
    margin-bottom: 16px;
    text-align: left;
}

.sef-modal-content .login-username label,
.sef-modal-content .login-password label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #3c4043;
    display: block;
    margin-bottom: 4px;
}

.sef-modal-content input[type="text"],
.sef-modal-content input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e8eaed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.sef-modal-content input[type="text"]:focus,
.sef-modal-content input[type="password"]:focus {
    border-color: #1a73e8;
    outline: none;
}

.sef-modal-content .login-submit {
    margin-top: 24px;
}

.sef-modal-content input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #1a73e8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.sef-modal-content input[type="submit"]:hover {
    background: #1557b0;
}

.sef-modal-content .login-remember {
    text-align: left;
    margin-top: 12px;
    font-size: 0.85rem;
}


/* Comments Area */
.sef-comments-area {
    margin-top: 40px;
    border-top: 1px solid #f1f3f4;
    padding-top: 40px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-body {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    position: relative;
    border: 1px solid #e8eaed;
}

.comment-author cite {
    font-style: normal;
    font-weight: 600;
    font-size: 1rem;
    color: #202124;
}

.comment-meta {
    font-size: 0.85rem;
    color: #9aa0a6;
    margin-bottom: 12px;
    display: none;
    /* Hide date/time */
}

.comment-content p {
    margin: 0;
    color: #3c4043;
}

/* Reply Link */
.reply a {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.85rem;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

/* Comment Form */
#respond {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    margin-top: 40px;
    border: 1px solid #e8eaed;
}

#reply-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: block;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e8eaed;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: #fcfcfc;
    box-sizing: border-box;
}

.comment-form-comment textarea:focus {
    border-color: #1a73e8;
    outline: none;
    background: #fff;
}

/* Simple Elegant Forum - Single Topic Style */

.sef-container {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    max-width: 800px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Header */
.sef-topic-header {
    padding: 30px;
    border-bottom: 1px solid #eee;
    background: #fdfdfd;
    border-radius: 8px 8px 0 0;
}

.sef-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.sef-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

.sef-content {
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

/* Discussion Area */
.sef-discussion-area {
    padding: 30px;
}

.sef-comments-title {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
    display: inline-block;
}

.sef-comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sef-comment-item {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 25px;
}

.sef-comment-item:last-child {
    border-bottom: none;
}

.sef-comment-avatar img {
    border-radius: 50%;
    margin-right: 15px;
}

.sef-comment-body {
    flex: 1;
}

.sef-comment-meta {
    margin-bottom: 8px;
    font-size: 14px;
}

.sef-comment-meta strong {
    color: #333;
    margin-right: 5px;
}

.sef-date {
    color: #999;
    font-size: 12px;
}

.sef-comment-text {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.sef-comment-text p {
    margin: 0 0 10px 0;
}

/* Author Highlight */
.sef-is-author .sef-comment-avatar img {
    box-shadow: 0 0 0 2px #0073aa;
    padding: 2px;
}

/* Action Area */
.sef-respond-area {
    margin-top: 40px;
    background: #fafafa;
    padding: 20px;
    border-radius: 6px;
}

.sef-btn-primary {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.2s;
}

.sef-btn-primary:hover {
    background: #555;
}

.sef-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-top: 5px;
}

/* Modal */
.sef-modal {
    display: none;
    /* hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    /* centering */
    justify-content: center;
    /* centering */
}

/* When active, we use inline style to set display:flex, but we can keep this class if needed */
.sef-modal.active {
    display: flex !important;
}

.sef-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    /* Behind content */
}

.sef-modal-content {
    position: relative;
    background: white;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 2;
    /* In front of overlay */
}

.sef-modal-close {
    position: absolute;
    right: 15px;
    top: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.sef-error {
    color: #dc3232;
    margin-top: 10px;
    font-size: 14px;
}

.sef-success {
    color: #46b450;
    margin-top: 10px;
    font-size: 14px;
}

.form-submit input[type="submit"] {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.form-submit input[type="submit"]:hover {
    background: #1557b0;
}

/* Responsive */
@media (max-width: 600px) {
    .sef-container {
        padding: 16px;
    }

    .sef-header h2 {
        font-size: 2rem;
    }
}

/* Hide Akismet Privacy Notice */
.akismet_comment_form_privacy_notice {
    display: none !important;
}

/* Hide Default WP Reply Title (Duplicate) */
.sef-container #reply-title,
.sef-container .comment-reply-title {
    display: none !important;
}