:root {
    /* ===== Colors ===== */
    --bg-color: #f5f6fa;
    --text-color: #1a1a1a;
    --heading-color: #111;
    --subtitle-color: #555;
    --paragraph-color: #444;
    --card-bg: #ffffff;
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --border-color: #e5e7eb;
    --copy-bg: #f7f7f7;
    --copy-hover: #e5e7eb;
    --textarea-border: #ddd;
    --ad-bg: #f1f1f1;
    --footer-muted: #555;
    --scrollbar-thumb: rgba(0,0,0,0.3);
    --focus-shadow: rgba(79,70,229,0.2);

    /* ===== Shadows ===== */
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.05);

    /* ===== Spacing ===== */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --gap-sm: 0.5rem;
    --gap-md: 1rem;
    --gap-lg: 2rem;

    /* ===== Typography ===== */
    --font-family: 'Inter', sans-serif;
    --font-size-base: 1.1rem;
    --font-size-lg: 1.6rem;
    --heading-size: 3.2rem;
}

.dark-theme {
    --bg-color: #1a1a1a;
    --text-color: #f5f5f5;
    --heading-color: #ffffff;
    --subtitle-color: #cccccc;
    --paragraph-color: #bbbbbb;
    --card-bg: #2a2a2a;
    --primary-color: #6c63ff;
    --primary-hover: #5a52d5;
    --border-color: #444444;
    --copy-bg: #3a3a3a;
    --copy-hover: #4a4a4a;
    --textarea-border: #555555;
    --ad-bg: #2e2e2e;
    --footer-muted: #aaaaaa;
    --scrollbar-thumb: rgba(255,255,255,0.3);
    --focus-shadow: rgba(108,99,255,0.2);
}


/* ===== Base Styles ===== */
body {
    margin: 0;
    font-family: var(--font-family);
    background: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    max-width: 1150px;
    margin: auto;
    padding: 30px 10px;
}

h1.header {
    font-size: var(--heading-size);
    font-weight: 400;
    text-align: center;
    color: var(--heading-color);
    margin: 0;
    margin-bottom: 1rem;
    font-family: "Lobster", sans-serif;
    font-style: normal;
}
.gradient-text {
    background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    #ee0979 40%,
    #00c3ff 80%,
    var(--primary-hover) 100%
  );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
p.subtitle {
    text-align: center;
    color: var(--subtitle-color);
    font-size: 1rem;
    margin-bottom: 2rem;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
}

/* ===== Layout Wrapper ===== */
.page-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px;
}

/* ===== Ads ===== */
.ad-left, .ad-right {
    width: 160px;
    background: var(--ad-bg);
    display: flex;
    justify-content: center;
    align-items: center;
}

.ad-mobile-top {
    display: none;
    margin-bottom: 10px;
    background: var(--ad-bg);
    padding: 10px;
    text-align: center;
}

/* ===== Generator Layout ===== */
.generator-wrapper {
    display: flex;
    gap: var(--gap-md);
}

/* ===== Textarea ===== */
textarea {
    flex: 0 0 50%;
    padding: 12px;
    font-size: var(--font-size-base);
    border: 1px solid var(--textarea-border);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    box-shadow: var(--shadow-md);
    transition: border-color 0.2s ease;
    resize: none;
    min-height: 120px;
    max-height: 450px;
    height: 450px;
    box-sizing: border-box;
    color: var(--text-color);
}

textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--focus-shadow);
}

/* ===== Output Section ===== */
.output-section::-webkit-scrollbar-button {
    display: none;
}

.output-section {
    flex: 1;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
    padding-top: 5px;
    height: 450px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
    box-sizing: border-box;
}

/* ===== Style Block ===== */
.style-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    font-family: unset;
}

.style-text {
    flex: 1;
    font-size: var(--font-size-base);
    word-break: break-word;
    margin-right: 0.5rem;
    white-space: pre-wrap;
}

/* ===== Copy Button ===== */
/* Copy button — styled like primary button, with SVG */
.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 48px;
    height: 40px;
    padding: 0.45rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    background: transparent;
    border: 2px solid rgba(79,70,229,0.12);
    border-radius: 10px;
    box-shadow: none;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease, color 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.copy-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    fill: currentColor;
}

.copy-btn:hover {
    background: rgba(79,70,229,0.06);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(79,70,229,0.06);
    color: var(--primary-hover);
}

.copy-btn:active {
    transform: translateY(-1px);
    box-shadow: none;
}

.copy-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(79,70,229,0.06);
    border-radius: 10px;
}

/* visual state when copied */
.copy-btn.copied {
    background: var(--copy-hover);
    color: var(--text-color);
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

/* responsive tweak */
@media (max-width: 780px) {
    .copy-btn {
        min-width: 44px;
        padding: 0.45rem;
        height: 38px;
    }
}

/* ===== Share Section ===== */
.share-section{
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.2rem 2rem;
    margin-top: var(--gap-lg);
    line-height: 1.6;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;

}

.share-text {
  font-size: var(--font-size-lg);
  font-family: "Lobster", sans-serif;
  font-weight: 200;
  font-style: normal;
  margin: 0;

}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.share-btn svg {
    width: 30px;
    height: 30px;

}

.share-btn:hover {
    transform: scale(1.1);
}

  /* Platform colors */
.facebook   { background: #3b5998; }
.twitter    { background: #000000; }
.whatsapp   { background: #25d366; }
.linkedin   { background: #0077b5; }
.reddit     { background: #ff4500; }
.telegram   { background: #0088cc; }
.pinterest  { background: #bd081c; }
.email      { background: #7c7c7c; }

/* ===== Article Styling ===== */
.site-article {
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem 2rem;
    margin-top: var(--gap-lg);
    line-height: 1.6;
}

.site-article h2,
.site-article h3 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.site-article h2 {
    font-size: 1.5rem;
}

.site-article h3 {
    font-size: 1.2rem;
    margin-top: 1.2rem;
}

.site-article p {
    margin-bottom: 1rem;
    color: var(--paragraph-color);
}

.site-article ul {
    padding-left: 1.2rem;
    margin: 0.5rem 0 1rem;
}

.site-article ul li {
    margin-bottom: 0.4rem;
}
.site-article a {
    position: relative;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-article a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.site-article a:hover {
    color: var(--primary-hover);
}

.site-article a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}
/* ===== Footer Styling ===== */
.footer {
  background: var(--bg-color);
  color: var(--text-color);
  padding: var(--gap-lg) 0;
  font-family: var(--font-family);
  border-top: 1px solid var(--border-color);
}

.footer-container {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.footer-text {
  font-size: 0.9rem;
  margin: 0;
}

.footer-text b {
  color: var(--primary-color);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--footer-muted);
  margin: 5px 0 0;
}

.footer-links {
  margin-top: var(--gap-sm);
}

.footer-links a {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-hover);
}

/* ===== Mobile adjustments ===== */

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .ad-left, .ad-right {
        display: none;
    }
    .ad-mobile-top {
        display: block;
    }
}

@media (max-height: 720px) {
    textarea{
        height: 350px;
    }
    .output-section{
        height: 350px;
    }

}

@media (max-width: 1360px) {
    .share-section {
        flex-direction: column;
    }
    .share-text {
        margin-bottom: 1rem;
        text-align: center;
    }
}


@media (max-width: 780px) {
    .generator-wrapper {
        flex-direction: column;
    }
    textarea {
        flex: 1 1 100%;
        height: auto;
        min-height: 80px;
        max-height: none;
    }
    .output-section {
        flex: 1 1 100%;
        height: auto;
        overflow-y: visible;
    }
    .site-article {
        padding: 1rem;
    }
}

/* 404 page — centered, professional, only 404 big */
.not-found {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    box-sizing: border-box;
    width: 100%;
}

.not-found .not-found-card {
    width: 100%;
    max-width: 820px;
    padding: 3rem 2rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

/* huge faint background 404, only on this page */
.not-found .not-found-card::before {
    content: "404";
    position: absolute;
    inset: 0;
    display: block;
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 18rem;
    line-height: 1;
    text-align: center;
    color: var(--primary-color);
    opacity: 0.035;
    transform: translateY(-8%);
    pointer-events: none;
    user-select: none;
}

/* Visible heading smaller than watermark but prominent */
.not-found .not-found-card h1 {
    position: relative;
    margin: 0;
    font-size: 2.6rem;
    z-index: 2;
    color: var(--heading-color);
    text-align: center;
}

/* subtle supporting text */
.not-found .not-found-card .muted {
    z-index: 2;
    margin: 0;
    color: var(--subtitle-color);
    max-width: 640px;
}

/* request path code styling */
.not-found .not-found-card code {
    background: var(--copy-bg);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    color: var(--text-color);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
    font-size: 0.95rem;
    display: inline-block;
    margin-top: 0.25rem;
    z-index: 2;
}

/* buttons centered */
.not-found .buttons {
    display: flex;
    gap: 0.8rem;
    z-index: 2;
    margin-top: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* reuse existing button styles but ensure size */
.not-found .home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-width: 150px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(79,70,229,0.16);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, opacity 0.14s ease;
    -webkit-tap-highlight-color: transparent;
}

.not-found .home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(79,70,229,0.18);
    opacity: 0.98;
}

.not-found .home-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79,70,229,0.14);
}

.not-found .home-btn:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(79,70,229,0.12);
    border-radius: 10px;
}

/* Secondary / ghost style */
.not-found .home-btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid rgba(79,70,229,0.12);
    border-radius: 10px;
    box-shadow: none;
    font-weight: 600;
}

.not-found .home-btn.secondary:hover {
    background: rgba(79,70,229,0.06);
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(79,70,229,0.06);
}

.not-found .home-btn.secondary:active {
    transform: translateY(-1px);
}

.not-found .home-btn.secondary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(79,70,229,0.06);
}

/* keep buttons responsive and centered */
@media (max-width: 780px) {
    .not-found .home-btn {
        min-width: 44%;
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
    }
}

/* Toast (bottom-center) — make slightly bigger and more prominent */
.toast-container {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
    pointer-events: none;
}

.site-toast {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;         /* increased */
    max-width: 92vw;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.9rem 1.1rem;   /* increased */
    border-radius: 14px;      /* slightly larger radius */
    box-shadow: 0 12px 30px rgba(7,10,25,0.12); /* stronger shadow */
    transform: translateY(14px);
    opacity: 0;
    transition: transform .28s cubic-bezier(.2,.9,.2,1), opacity .28s ease;
    pointer-events: auto;
    font-family: var(--font-family);
    font-size: 1rem;          /* slightly larger text */
}

/* visible state */
.site-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* icon */
.site-toast .toast-icon {
    width: 20px;              /* larger icon */
    height: 20px;
    display: block;
    color: var(--primary-color);
    flex: 0 0 20px;
}

/* text */
.site-toast .toast-text {
    line-height: 1.25;
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

/* small screens adjust */
@media (max-width: 520px) {
    .site-toast {
        padding: 0.7rem 0.9rem;
        border-radius: 12px;
        min-width: 220px;
        font-size: 0.95rem;
    }
    .site-toast .toast-icon { width: 18px; height: 18px; }
    .site-toast .toast-text { white-space: normal; }
}

/* =========================
   Contact Form Styling
   ========================= */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--bg-secondary, #1e1e1e); /* use your dark secondary bg */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #f1f1f1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid #333;
    border-radius: 8px;
    background: var(--bg-input, #2a2a2a);
    color: var(--text-primary, #f1f1f1);
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent, #4cafef);
    box-shadow: 0 0 6px var(--accent, #4cafef);
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form small {
    display: block;
    margin-top: -0.8rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: #aaa;
}

.contact-form button {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: var(--accent, #4cafef);
    color: #fff;
    transition: background 0.25s ease-in-out, transform 0.15s ease-in-out;
}

.contact-form button:hover {
    background: var(--accent-hover, #3b8edb);
    transform: translateY(-2px);
}

.contact-form button:active {
    transform: translateY(0);
}