Farm / style.css
stat2025's picture
Update style.css
b833b6e verified
:root{
--bg: #f5f7fb;
--surface: #ffffff;
--surface-soft: #f8fbff;
--text: #1f2430;
--muted: #6b7280;
--primary: #544f7d;
--primary-2: #323366;
--accent: #60c4e4;
--border: rgba(84, 79, 125, 0.14);
--border-soft: rgba(96, 196, 228, 0.18);
--shadow: 0 10px 30px rgba(50, 51, 102, 0.08);
--shadow-hover: 0 14px 35px rgba(50, 51, 102, 0.12);
--radius-xl: 22px;
--radius-lg: 18px;
--radius-md: 14px;
}
*{
box-sizing: border-box;
}
html{
direction: rtl;
}
body{
margin: 0;
font-family: "Bahij TheSans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
background:
radial-gradient(circle at top right, rgba(96,196,228,.12), transparent 30%),
radial-gradient(circle at top left, rgba(84,79,125,.08), transparent 26%),
var(--bg);
color: var(--text);
}
.container{
width: min(1100px, calc(100% - 24px));
margin: 0 auto;
}
.hero{
padding: 26px 0 12px;
}
.hero-card{
background: linear-gradient(135deg, rgba(84,79,125,1) 0%, rgba(50,51,102,1) 100%);
color: #fff;
border-radius: 28px;
padding: 26px 22px;
box-shadow: var(--shadow);
position: relative;
overflow: hidden;
}
.hero-card::before,
.hero-card::after{
content: "";
position: absolute;
border-radius: 50%;
background: rgba(255,255,255,.08);
}
.hero-card::before{
width: 180px;
height: 180px;
top: -70px;
left: -30px;
}
.hero-card::after{
width: 120px;
height: 120px;
bottom: -40px;
right: -20px;
}
.hero-title{
margin: 0 0 8px;
font-size: clamp(1.5rem, 2vw, 2rem);
font-weight: 900;
position: relative;
z-index: 1;
}
.hero-subtitle{
margin: 0;
line-height: 1.9;
color: rgba(255,255,255,.9);
position: relative;
z-index: 1;
}
.search-wrap{
margin-top: 18px;
background: var(--surface);
border: 1px solid var(--border);
border-radius: 24px;
padding: 18px;
box-shadow: var(--shadow);
}
.search-row{
display: grid;
grid-template-columns: 1fr auto auto;
gap: 12px;
align-items: center;
}
.search-input{
width: 100%;
height: 56px;
border-radius: 16px;
border: 1px solid var(--border);
background: #fff;
padding: 0 16px;
font-size: 1rem;
font-family: inherit;
color: var(--text);
outline: none;
transition: .2s ease;
}
.search-input:focus{
border-color: var(--accent);
box-shadow: 0 0 0 4px rgba(96,196,228,.12);
}
.btn{
height: 56px;
padding: 0 20px;
border: 0;
border-radius: 16px;
font-family: inherit;
font-size: 1rem;
font-weight: 800;
cursor: pointer;
transition: .18s ease;
white-space: nowrap;
}
.btn-primary{
background: linear-gradient(135deg, var(--primary), var(--primary-2));
color: #fff;
box-shadow: 0 8px 22px rgba(84,79,125,.22);
}
.btn-primary:hover{
transform: translateY(-1px);
}
.btn-secondary{
background: #eef2f7;
color: var(--primary);
}
.btn-secondary:hover{
background: #e7edf5;
}
.meta-row{
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
margin-top: 14px;
}
.chip{
display: inline-flex;
align-items: center;
gap: 8px;
min-height: 40px;
padding: 0 14px;
border-radius: 999px;
background: #fff;
border: 1px solid var(--border);
color: var(--primary);
font-weight: 800;
}
.results-section{
padding: 18px 0 34px;
}
.results{
display: grid;
gap: 14px;
}
.result-card{
background: var(--surface);
border: 1px solid var(--border);
border-radius: var(--radius-xl);
padding: 16px;
box-shadow: var(--shadow);
transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.result-card:hover{
transform: translateY(-2px);
box-shadow: var(--shadow-hover);
border-color: rgba(96,196,228,.28);
}
.result-card__top{
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 14px;
}
.result-card__badge{
display: inline-flex;
align-items: center;
min-height: 34px;
padding: 0 12px;
border-radius: 999px;
background: rgba(96,196,228,.12);
color: var(--primary);
font-size: .9rem;
font-weight: 800;
}
.result-grid{
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
}
.field{
background: var(--surface-soft);
border: 1px solid var(--border-soft);
border-radius: var(--radius-lg);
padding: 13px 14px;
min-width: 0;
}
.field-full{
grid-column: 1 / -1;
}
.label{
font-size: .88rem;
font-weight: 900;
color: var(--primary);
margin-bottom: 7px;
}
.value{
font-size: 1rem;
font-weight: 700;
color: var(--text);
line-height: 1.9;
word-break: break-word;
}
.phone{
direction: ltr;
unicode-bidi: bidi-override;
text-align: right;
white-space: nowrap;
word-break: normal;
overflow-wrap: normal;
font-variant-numeric: tabular-nums;
letter-spacing: .4px;
}
mark{
background: rgba(96,196,228,.28);
color: inherit;
padding: 0 .18em;
border-radius: 6px;
}
.empty-state{
background: var(--surface);
border: 1px dashed rgba(84,79,125,.22);
border-radius: 24px;
padding: 34px 18px;
text-align: center;
box-shadow: var(--shadow);
}
.empty-icon{
font-size: 2rem;
margin-bottom: 10px;
}
.empty-title{
font-size: 1.1rem;
font-weight: 900;
color: var(--primary);
margin-bottom: 6px;
}
.empty-subtitle{
color: var(--muted);
line-height: 1.8;
}
@media (max-width: 820px){
.search-row{
grid-template-columns: 1fr;
}
.btn{
width: 100%;
}
.result-grid{
grid-template-columns: 1fr;
}
.field-full{
grid-column: auto;
}
}
@media (max-width: 640px){
.container{
width: min(calc(100% - 16px), 1100px);
}
.hero{
padding-top: 16px;
}
.hero-card{
border-radius: 22px;
padding: 20px 16px;
}
.hero-title{
font-size: 1.35rem;
}
.hero-subtitle{
font-size: .94rem;
}
.search-wrap{
border-radius: 20px;
padding: 14px;
}
.search-input,
.btn{
height: 52px;
border-radius: 14px;
}
.result-card{
border-radius: 18px;
padding: 13px;
}
.field{
border-radius: 14px;
padding: 12px;
}
.label{
font-size: .84rem;
}
.value{
font-size: .96rem;
}
}