/* ----------------------------------------------------------
   GLOBAL THEME (LIGHT + DARK)
---------------------------------------------------------- */

:root {
    --bg: #f5f5f5;
    --text: #222;
    --box: #ffffff;

    /* Accents */
    --blue: #0078ff;
    --blue-dark: #005ec7;

    --paypal: #0070BA;
    --paypal-dark: #005C99;
}

.dark {
    --bg: #1a1a1a;
    --text: #eee;
    --box: #222;
}

body {
    font-family: "Tahoma", sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    transition: 0.3s;
}



/* ----------------------------------------------------------
   MAIN AREA
---------------------------------------------------------- */

main {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

#editor {
    width: 100%;
    height: 200px;
    font-size: 22px;
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #9993;
    background: var(--box);
    color: var(--text);
    direction: rtl;
    unicode-bidi: plaintext;
	min-height: 200px;
}

.section-title {
    margin-top: 30px;
    font-size: 20px;
    font-weight: bold;
}

/* ----------------------------------------------------------
   KEYBOARD BUTTONS
---------------------------------------------------------- */

.key {
    width: 50px;
    height: 50px;
    margin: 4px;
    font-size: 22px;
    background: var(--box);
    border: 2px solid #aaa3;
    border-radius: 8px;
    cursor: pointer;
}

#keyboard {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
}


/* Unified small button style (Arabic tools + punctuation) */
.insert {
    width: 50px;
    height: 50px;
    margin: 4px;
    font-size: 22px;
    background: var(--box);
    border: 2px solid #aaa3;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ----------------------------------------------------------
   ACTION BUTTONS
---------------------------------------------------------- */

.action {
    padding: 12px 20px;
    margin-right: 10px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    background: var(--blue);
    color: white;
    transition: 0.25s;
}

.action:hover {
    background: var(--blue-dark);
}

/* ----------------------------------------------------------
   SUPPORT SECTION (PAYPAL + KO-FI)
---------------------------------------------------------- */

.support-box {
    background: var(--box);
    border-radius: 18px;
    padding: 25px;
    margin-top: 30px;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    animation: fadeUp 0.6s ease;
}

.support-text {
    font-size: 17px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.support-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

/* Ko-fi */
.kofi-img {
    height: 50px;
    border-radius: 12px;
    transition: 0.3s;
}
.kofi-img:hover {
    transform: scale(1.06);
}

/* PayPal Button */
.paypal-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0070ba;
    color: white;
    padding: 10px 22px;  /* same as Ko-fi */
    border-radius: 12px; /* EXACT same rounded shape */
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.18);
    transition: 0.25s ease;
}

.paypal-btn:hover {
    background: #005c99;
    transform: translateY(-2px);
}

.paypal-logo {
    width: 20px; /* match Ko-fi icon size */
    height: auto;
}





/* ----------------------------------------------------------
   SHARE SECTION
---------------------------------------------------------- */

.share-box {
    background: var(--box);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid #ddd;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.share-btn {
    padding: 12px 18px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: 0.25s;
}

/* Platforms */
.share-btn.whatsapp { background: #25D366; }
.share-btn.facebook { background: #1877F2; }
.share-btn.twitter { background: #000; }

.share-btn:hover {
    transform: scale(1.05);
}

/* ----------------------------------------------------------
   ANIMATIONS
---------------------------------------------------------- */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ----------------------------------------------------------
   FOOTER
---------------------------------------------------------- */

footer {
    text-align: center;
    padding: 20px;
    background: var(--box);
    margin-top: 40px;
}

/* ==========================================================
   GLOBAL NAVIGATION (FOR ALL PAGES)
========================================================== */

.main-nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    font-weight: 600;
    color: var(--text);
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.2s;
}

.main-nav a:hover {
    background: #00000010;
}

.main-nav a.active {
    background: var(--blue);
    color: #fff;
}

/* Make header consistent everywhere */
header {
    padding: 15px 20px;
    background: var(--box);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #8884;
    gap: 15px;
    flex-wrap: wrap;
}

/* ==========================================================
   SEO CONTENT (TEXT BLOCKS UNDER TOOL)
========================================================== */

.seo-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 25px;
    background: var(--box);
    border-radius: 14px;
    line-height: 1.8;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.seo-content h1 {
    font-size: 28px;
    margin-bottom: 15px;
}

.seo-content h2 {
    font-size: 22px;
    margin-top: 25px;
}

.seo-content ul {
    padding-left: 20px;
}

.seo-content li {
    margin-bottom: 8px;
}

/* ==========================================================
   GENERIC PAGE CONTENT (ABOUT / CONTACT / PRIVACY / TERMS)
========================================================== */

.page-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: var(--box);
    border-radius: 14px;
    line-height: 1.8;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.page-content h1 {
    font-size: 30px;
    margin-bottom: 20px;
}

.page-content h2 {
    margin-top: 25px;
    font-size: 22px;
}

/* ==========================================================
   FORMS (CONTACT PAGE)
========================================================== */

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form input,
form textarea {
    font-size: 16px;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #ccc;
    background: var(--box);
    color: var(--text);
}

form button {
    width: fit-content;
}

/* ==========================================================
   FOOTER LINKS
========================================================== */

footer a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    margin: 0 6px;
}

footer a:hover {
    text-decoration: underline;
}

/* ==========================================================
   MOBILE FIX
========================================================== */

@media (max-width: 600px) {
    .main-nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    header {
        justify-content: center;
        text-align: center;
    }
}


/* ===== HERO HEADER ===== */
.hero-header {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.hero-content {
  max-width: 900px;
  margin: auto;
}

.hero-header h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero-tagline {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 25px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.hero-features span {
  background: rgba(255,255,255,0.12);
  padding: 8px 14px;
  border-radius: 20px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 12px 26px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.hero-btn.primary {
  background: #ffcc00;
  color: #000;
}

.hero-btn.primary:hover {
  background: #ffd633;
}

.hero-btn.secondary {
  border: 2px solid #fff;
  color: #fff;
}

.hero-btn.secondary:hover {
  background: #fff;
  color: #000;
}

/* Mobile */
@media (max-width: 600px) {
  .hero-header h1 {
    font-size: 2.2rem;
  }
}
html {
  scroll-behavior: smooth;
}
.seo-content p a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.seo-content p a:hover {
  text-decoration: underline;
}

