/* ================== Fonts ================== */
@font-face {
  font-family: 'Baloo Bhaijaan 2';
  src: url('https://quamtex.ir/fonts/webfonts/baloo-bhaijaan-2-arabic-500-normal.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Baloo Bhaijaan 2';
  src: url('https://quamtex.ir/fonts/webfonts/baloo-bhaijaan-2-latin-500-normal.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  font-family: "Baloo Bhaijaan 2", tahoma, sans-serif;
}

body {
  margin: 0;
  background: #eef2f5;
  color: #112548;
}

/* ================== Layout ================== */
.main-container {
  display: flex;
  flex-direction: row;
}

.main-content {
  padding: clamp(-0.125rem, 0.4464285714285714rem + 0.8571428571428572vw, 1.25rem);
  margin: clamp(-0.125rem, -0.0892857142857143rem + 1.4285714285714286vw, 1.25rem);
  background-color: #ffffff;
  border-radius: 20px;
  font-size: clamp(0.938rem, 0.842rem + 0.426vw, 1.188rem);
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: #112548;
  width: 100%;
  height: fit-content;
}

h2 {
  margin-bottom: 20px;
}

h1 {
  font-size: 24px;
  text-align: center;
}
/* ================== Scam Grid ================== */
.bmi2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.scam1 {
  background: #ffffff;
  border-radius: 24px;
  padding: 20px 15px 15px;
  box-shadow: 0 0px 10px rgb(51 63 99 / 28%);
  transition: .3s;
}

.scam1:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}

/* ================== Scam Card Parts ================== */
.bmi3 {
  border: 1px solid #3758911c;
  border-radius: 14px;
  padding: 10px;
  margin: 8px 0;
}

.bmi3 p:first-child {
  font-weight: bold;
  font-size: 14px;
  color: #375891;
}

.bmi5 {
  background: #f7f9fc;
}

.bmi6 a {
  color: #1a4faa;
  text-decoration: none;
}

.bmi6 a:hover {
  text-decoration: underline;
}

/* ================== Vote Buttons ================== */
.scam-actions {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
  margin-top: 10px;
}

.scam-actions button {
  border: none;
  padding: 6px;
  border-radius: 12px;
  font-size: 14px;
  cursor: pointer;
  background: #f0f0f0;
  transition: .2s;
}

.scam-actions button:hover {
  background: #e0e0e0;
}

.like.voted {
  background: #d7f5df;
  color: #1e7f3c;
}

.dislike.voted {
  background: #f8d7da;
  color: #842029;
}

/* ================== Report Button ================== */
.opoo {
  width: 40%;
  height: 44px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(135deg,#112548,#375891);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.opoo:hover { opacity: .9; }

/* ================== Form ================== */
.bmi {
  display: grid;
  margin: 20px 0;
  border-radius: 20px;
  box-shadow: 0  0 20px #0000008e;
  padding: clamp(0.625rem, 0.208rem + 1.667vw, 1.25rem);
  width: 100%;
}

.pop {
  font-size: 1.2rem;
  border: none;
  border-radius: 25px;
  background: linear-gradient(to right, #112548,#112548);
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
  font-family: "Baloo Bhaijaan 2", sans-serif;
  grid-column: span 2;
  justify-self: center;
  width: 40%;
  height: 40px;
  margin-top: 40px;
}

.bmi .textarea:nth-child(1) {
  grid-row: span 3;
  justify-self: center;
  width: 100%;
  margin-top: 40px;
}

button.pop:hover {
  background: linear-gradient(to right,#34236b, #375891);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.712);
}

button.pop:active {
  background: linear-gradient(to right,#34236b, #375891);
  transform: scale(0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.712);
}

h3 {
    font-size: 18px;
    align-self: center;
}

input {
  -moz-appearance: textfield;
  font-size: 16px;
  border:2px solid #112548;
  outline:none;
  height: 46px;
  position:relative;
  bottom:14px;
  border-radius:24px;
  width:220px;
  padding:0 18px;
  margin-top: 25px;
  align-self: center;
  box-shadow: 3px 5px 10px 0px #00000061;
  text-align: center;
  font-family: "Baloo Bhaijaan 2", sans-serif;
  transition: border 0.5s,box-shadow 0.5s,transform 0.5s;
}

input:focus {
  border:2px solid #1a4faa;
  box-shadow: 3px 5px 10px 0px #273751;
  transition: border 0.5s,box-shadow 0.5s,transform 0.5s;
  transform: scale(1.01);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rtl {
  direction: rtl;
}

#weight {
  border-top-left-radius: 20px;
}

#bmi {
  border-top-right-radius: 20px;
}

@media (max-width: 675px) {
  .bmi {
    grid-template-columns: repeat(1 ,1fr);
    grid-template-rows: repeat(5,1fr);
    flex-direction: column;
    display: flex;
  }
    textarea {

        margin-top: 15px;
    }
  button.pop {
    align-content: center;
    align-self: center;
    width: 50%;
  }
}

.right {
  grid-column: 2 / 2;
  margin-top: 15px;
}

textarea {
  top: 30px; 
  max-width: 100%;
  margin: 10px;
  border-radius: 0;
  border-bottom-right-radius: 16px;
  border-top-left-radius: 16px; 
  border: solid 2px #112548;
  transition: border 0.5s,box-shadow 0.5s,transform 0.5s;
  outline: none;
  direction: rtl;
  padding: 10px;
  font-size: 18px;
  font-family: "Baloo Bhaijaan 2", sans-serif;
  width: clamp(25rem, 21.84rem + 14.043vw, 33.25rem); 
  height: 253px;
}

textarea:focus {
  border:2px solid #1a4faa;
  box-shadow: 3px 5px 10px 0px #273751;
  transition: border 0.5s,box-shadow 0.5s,transform 0.5s;
  transform: scale(1.01);
}

select {
  font-size: 16px;
  border:2px solid #112548;
  height: 46px;
  position:relative;
  bottom:14px;
  border-radius:24px;
  width:220px;
  padding:0 18px;
  margin-top: 25px;
  box-shadow: 3px 5px 10px 0px #00000061;
  text-align: center;
  font-family: "Baloo Bhaijaan 2", sans-serif;
  transition: border 0.5s,box-shadow 0.5s,transform 0.5s;
  background-color: white; 
}

@media (max-width: 675px) {
    .textarea {
        order: 4;
    }

    button.pop {
        margin-top: 100px;
        order: 5;
    }
}

.textarea2 {
    width: clamp(18.75rem, 9.688rem + 29vw, 33.25rem);
}


@media (max-width: 1122px) {
    .textarea2 {
        width: clamp(25rem, -27.003rem + 74.157vw, 33.25rem);
    }
}

@media (max-width: 986px) {
    .textarea2 {
        width: clamp(21.875rem, -23.145rem + 78.125vw, 25rem);
    }
}

@media (max-width: 460px) {
    .textarea2 {
        width: clamp(15.625rem, -6.875rem + 100vw, 21.875rem);
    }
}

.scamForm {
    display: grid;
}

@media (max-width: 675px) {
    .scamForm {
    display: block;
}
  .opoo { width: 100%; }
}

.rtl {
    direction: rtl;
}

p {
   font-size: 16px; 
}


.bmi3 a {
  pointer-events: none;
  cursor: not-allowed;
}

h3 {
    text-align: center;
}





/* تنظیمات کلی و فونت */
.description2,.description {
    direction: rtl;
    text-align: right;
    line-height: 1.8;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 20px;
    margin-top: 20px;
    box-shadow: 0 0px 10px rgb(51 63 99 / 28%);
}

.page-content {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* تیتر اصلی */
.page-content h1 {
    color: #e63946; /* قرمز ملایم برای هشدار و اسکم */
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-right: 5px solid #e63946;
    padding-right: 15px;
}

/* مقدمه */
.intro {
    font-size: 1.1rem;
    background: #f1f5f9;
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 30px;
}

/* سکشن‌ها */
section {
    margin-bottom: 40px;
}

h2 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

h2::before {
    content: "";
    width: 8px;
    height: 8px;
    background: #457b9d;
    display: inline-block;
    margin-left: 10px;
    border-radius: 50%;
}

/* لیست‌ها */
ul, ol {
    padding-right: 20px;
}

li {
    margin-bottom: 10px;
}

strong {
    color: #e63946;
}

/* استایل سوالات متداول (Details/Summary) */
details {
    background: #fff;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

summary {
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    color: #2d3748;
    outline: none;
    list-style: none; /* حذف فلش پیش‌فرض */
}

summary::-webkit-details-marker {
    display: none;
}

summary::before {
    content: "←";
    margin-left: 10px;
    color: #457b9d;
    transition: transform 0.3s ease;
    display: inline-block;
}

details[open] summary::before {
    transform: rotate(-90deg);
}

details p {
    padding: 0 15px 15px 15px;
    margin: 0;
    color: #718096;
    font-size: 0.95rem;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 600px) {
    .page-content {
        padding: 20px;
    }
    .page-content h1 {
        font-size: 1.5rem;
    }
}