/* ==========================================================================
   TempMailX Custom Styles (How It Works, Stats, Blog, Dark Mode, FAQ & Footer)
   ========================================================================== */

/* --- HOW IT WORKS SECTION --- */
.tmx-hiw {
    max-width: 1200px;
    margin: 48px auto 0;
    padding: 0 20px;
}

.tmx-hiw-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 36px;
    letter-spacing: -0.02em;
}

.dark .tmx-hiw-title {
    color: #f3f4f6 !important;
}

.tmx-hiw-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.tmx-hiw-step {
    flex: 1;
    min-width: 220px;
    max-width: 320px;
    text-align: center;
    padding: 28px 16px;
    position: relative;
}

.tmx-hiw-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    font-weight: 800;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.tmx-hiw-stitle {
    font-weight: 700;
    font-size: 17px;
    color: #111827;
    margin-bottom: 8px;
}

.dark .tmx-hiw-stitle {
    color: #f3f4f6 !important;
}

.tmx-hiw-sdesc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
}

.dark .tmx-hiw-sdesc {
    color: #9ca3af !important;
}

.tmx-hiw-arrow {
    display: none;
    position: absolute;
    right: -28px;
    top: 40px;
    color: #d1d5db;
    font-size: 24px;
}

@media(min-width: 768px) {
    .tmx-hiw-arrow {
        display: block;
    }
}

/* --- STATS COUNTER --- */
.tmx-stats {
    max-width: 1200px;
    margin: 64px auto 0;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.tmx-stat {
    flex: 1;
    min-width: 180px;
    text-align: center;
    padding: 28px 16px;
    background: #f9fafb;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    transition: transform .3s;
}

.dark .tmx-stat {
    background: #151725 !important;
    border-color: #2A2E3E !important;
}

.tmx-stat:hover {
    transform: translateY(-4px);
}

.tmx-stat-num {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tmx-stat-label {
    font-size: 14px;
    color: #6b7280;
    margin-top: 4px;
    font-weight: 600;
}

.dark .tmx-stat-label {
    color: #9ca3af !important;
}

/* --- BLOG GRID --- */
#wp-posts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.wp-post-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}

.dark .wp-post-card {
    background: #1f2937;
    border-color: #374151;
}

.wp-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.wp-post-img-container {
    width: 100%;
    height: 190px;
    overflow: hidden;
    position: relative;
}

.wp-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-post-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .wp-post-card {
        width: calc(50% - 15px);
    }
}

@media (min-width: 1024px) {
    .wp-post-card {
        width: calc(33.333% - 20px);
    }
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 36px;
    border-radius: 100px;
    font-weight: 600;
    border: 2px solid #3b82f6;
    color: #3b82f6;
    transition: all 0.3s;
}

.view-all-btn:hover {
    background: #3b82f6;
    color: #fff !important;
}

/* --- SCROLL TO TOP & FOOTER EFFECTS --- */
#scrollTopBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

footer a {
    transition: color .2s ease, padding-left .2s ease !important;
}

footer a:hover {
    color: #60a5fa !important;
    padding-left: 4px !important;
}

html.dark table thead tr {
    background: #374151 !important;
}

html.dark table td,
html.dark table th {
    border-color: #4b5563 !important;
    color: #e5e7eb !important;
}

html.dark table tbody tr {
    background: #1f2937 !important;
}

html.dark table tbody tr:hover {
    background: #374151 !important;
}

html.dark #tmx-compare-title {
    color: #ffffff !important;
}

/* --- DARK MODE GLOBAL STYLES --- */
html.dark body {
    background-color: #111827 !important;
    color: #e5e7eb !important;
}

html.dark .card,
html.dark .bg-white,
html.dark .bg-gray-50,
html.dark .bg-gray-100,
html.dark .bg-gray-200,
html.dark .navbar,
html.dark header,
html.dark .messages-list,
html.dark .messages-list > li,
html.dark table,
html.dark tr,
html.dark td,
html.dark th {
    background-color: #1f2937 !important;
    color: #e5e7eb !important;
    border-color: #374151 !important;
}

html.dark input,
html.dark select,
html.dark textarea,
html.dark .form-control {
    background-color: #374151 !important;
    color: #fff !important;
    border-color: #4b5563 !important;
}

html.dark .mantis-theme > .container h1,
html.dark .mantis-theme > .container h2,
html.dark .mantis-theme > .container h3,
html.dark .mantis-theme > .container h4,
html.dark .mantis-theme > .container h5,
html.dark .mantis-theme > .container h6 {
    color: #f3f4f6 !important;
}

html.dark .mantis-theme > .container p,
html.dark .mantis-theme > .container li,
html.dark .ql-editor p,
html.dark .ql-editor li {
    color: #d1d5db !important;
}

html.dark .nav-link,
html.dark .navbar a {
    color: #e5e7eb !important;
}

html.dark .nav-link:hover,
html.dark .navbar a:hover {
    color: #60a5fa !important;
}

html.dark .btn-white {
    background-color: #374151 !important;
    color: #fff !important;
    border: 1px solid #4b5563 !important;
}

html.dark #counter {
    background-color: #374151 !important;
    color: #ffffff !important;
    border-color: #4b5563 !important;
}

html.dark #counter .filler {
    background-color: rgba(59, 130, 246, 0.5) !important;
}

html.dark #counter .text {
    color: #ffffff !important;
    font-weight: bold !important;
    position: relative;
    z-index: 10;
}

html.dark .subject,
html.dark .from {
    color: #93c5fd !important;
}

html.dark .max-w-logo {
    filter: brightness(0) invert(1) !important;
    transition: filter 0.3s ease;
}

html.dark .cf-turnstile {
    filter: invert(1) hue-rotate(180deg);
}

html.dark .messages-list li:hover,
html.dark tr:hover,
html.dark .cursor-pointer:hover,
html.dark .hover\:bg-gray-50:hover,
html.dark .hover\:bg-gray-100:hover,
html.dark .hover\:bg-gray-200:hover {
    background-color: #374151 !important;
    transition: background-color 0.2s ease;
}

html.dark .wp-post-card h3 {
    color: #f3f4f6 !important;
}

html.dark .wp-post-card p {
    color: #9ca3af !important;
}

html.dark .view-all-btn {
    color: #3b82f6 !important;
    border-color: #3b82f6 !important;
}

html.dark .view-all-btn:hover {
    background: #3b82f6 !important;
    color: #fff !important;
}

/* --- FAQ ACCORDION STYLES FIX (ANA SAYFA & ALL PAGES PERFECT ALIGNMENT) --- */
details.tmx-faq-details,
.ql-editor details.tmx-faq-details {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 16px !important;
    margin-bottom: 14px !important;
    padding: 0 !important;
    overflow: hidden !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

html.dark details.tmx-faq-details,
.dark details.tmx-faq-details,
html.dark .ql-editor details.tmx-faq-details,
.dark .ql-editor details.tmx-faq-details {
    background: #1f2937 !important;
    border-color: #374151 !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25) !important;
}

summary.tmx-faq-summary,
.ql-editor summary.tmx-faq-summary {
    font-weight: 700 !important;
    font-size: 1.05rem !important;
    color: #111827 !important;
    padding: 18px 24px !important;
    cursor: pointer !important;
    list-style: none !important;
    list-style-type: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    user-select: none !important;
    box-sizing: border-box !important;
}

html.dark summary.tmx-faq-summary,
.dark summary.tmx-faq-summary,
html.dark .ql-editor summary.tmx-faq-summary,
.dark .ql-editor summary.tmx-faq-summary {
    color: #f3f4f6 !important;
}

summary.tmx-faq-summary::-webkit-details-marker,
summary.tmx-faq-summary::marker {
    display: none !important;
    content: "" !important;
}

summary.tmx-faq-summary::after,
.ql-editor summary.tmx-faq-summary::after {
    content: "+" !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #2563eb !important;
    margin-left: 12px !important;
    transition: transform 0.25s ease !important;
}

html.dark summary.tmx-faq-summary::after,
.dark summary.tmx-faq-summary::after,
html.dark .ql-editor summary.tmx-faq-summary::after,
.dark .ql-editor summary.tmx-faq-summary::after {
    color: #60a5fa !important;
}

details[open].tmx-faq-details summary.tmx-faq-summary::after {
    content: "−" !important;
}

details[open].tmx-faq-details {
    border-color: #2563eb !important;
}

html.dark details[open].tmx-faq-details,
.dark details[open].tmx-faq-details {
    border-color: #60a5fa !important;
}

.tmx-faq-answer,
.ql-editor .tmx-faq-answer {
    padding: 18px 24px 22px 24px !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
    color: #4b5563 !important;
    border-top: 1px solid rgba(229, 231, 235, 0.7) !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

html.dark .tmx-faq-answer,
.dark .tmx-faq-answer,
html.dark .ql-editor .tmx-faq-answer,
.dark .ql-editor .tmx-faq-answer {
    color: #d1d5db !important;
    border-top-color: #374151 !important;
}

/* ==========================================================================
   TMX BUTTON SYSTEM (BULLETPROOF LIGHT & DARK MODE)
   ========================================================================== */

/* MAVİ DOLGULU ANA BUTON (User Guide & CTA) */
.ql-editor a.tmx-primary-btn,
html.dark .ql-editor a.tmx-primary-btn,
a.tmx-primary-btn,
html.dark a.tmx-primary-btn,
.dark a.tmx-primary-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 14px 32px !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: 2px solid #2563eb !important;
    color: #ffffff !important;
    background: #2563eb !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin: 6px !important;
}

.ql-editor a.tmx-primary-btn:hover,
html.dark .ql-editor a.tmx-primary-btn:hover,
a.tmx-primary-btn:hover,
html.dark a.tmx-primary-btn:hover,
.dark a.tmx-primary-btn:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

/* ŞEFFAF KENARLIKLI BUTON */
.ql-editor a.tmx-outline-btn,
a.tmx-outline-btn {
    display: inline-flex !important;
    align-items: center !important;
    padding: 14px 32px !important;
    border-radius: 100px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: 2px solid #2563eb !important;
    color: #2563eb !important;
    background: transparent !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin: 6px !important;
}

.ql-editor a.tmx-outline-btn:hover,
a.tmx-outline-btn:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}

html.dark .ql-editor a.tmx-outline-btn,
html.dark a.tmx-outline-btn,
.dark a.tmx-outline-btn {
    border-color: #60a5fa !important;
    color: #60a5fa !important;
    background: transparent !important;
}

html.dark .ql-editor a.tmx-outline-btn:hover,
html.dark a.tmx-outline-btn:hover,
.dark a.tmx-outline-btn:hover {
    background: #60a5fa !important;
    color: #111827 !important;
}

/* --- HOMEPAGE SPECIFIC FEATURE CARDS GRID (FORCE 3-COLUMN HORIZONTAL GRID) --- */
ul.tmx-home-grid,
.tmx-home-grid,
.ql-editor ul.tmx-home-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 32px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

ul.tmx-home-grid li,
.tmx-home-grid li,
.ql-editor ul.tmx-home-grid li {
    flex: 1 1 calc(33.333% - 14px) !important;
    min-width: 240px !important;
    list-style: none !important;
    list-style-type: none !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 20px !important;
    padding: 24px 18px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.3s ease, border-color 0.3s ease !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* MADDELERİN BAŞINDAKİ NOKTALARI GİZLER */
ul.tmx-home-grid li::before,
.tmx-home-grid li::before,
ul.tmx-home-grid li::marker,
.tmx-home-grid li::marker {
    display: none !important;
    content: "" !important;
}

html.dark ul.tmx-home-grid li,
html.dark .tmx-home-grid li,
.dark ul.tmx-home-grid li,
.dark .tmx-home-grid li {
    background: #1f2937 !important;
    border-color: #374151 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

ul.tmx-home-grid li:hover,
.tmx-home-grid li:hover {
    transform: translateY(-5px) !important;
    border-color: #3b82f6 !important;
}
/* --- HOMEPAGE FEATURE CARDS (.tmx-box) & DARK MODE HEADINGS FIX --- */
.tmx-box {
    flex: 1 1 240px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.tmx-box:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
}

/* GECE MODU (DARK MODE) KUTU VE BEYAZ BAŞLIK DÜZELTMESİ */
html.dark .tmx-box,
.dark .tmx-box {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

html.dark article h1,
html.dark article h2,
html.dark article h3,
html.dark article strong,
.dark article h1,
.dark article h2,
.dark article h3,
.dark article strong {
    color: #ffffff !important;
}

html.dark .tmx-box span,
.dark .tmx-box span {
    color: #9ca3af !important;
}