/* SIM Card Advertisements Styles */

/* Font Face */
@font-face {
  font-family: 'Vazir';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazir-font@v30.1.0/dist/Vazir.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

.sim-card-ads-container {
    font-family: "Vazir", "Tahoma", sans-serif;
    direction: rtl;
    background-color: #ffffff; /* New background */
    border-radius: 1rem; /* New border-radius */
    /* overflow: hidden; */ /* Removed to prevent shadow clipping */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); /* New box-shadow */
    margin: 2rem 0; /* Existing margin */
    padding: 0; /* Let internal elements manage padding */
}

.sim-card-ads-header {
    background-color: #f3f4f6; /* Light gray background */
    color: #1f2937; /* Darker text */
    font-weight: 700; /* Bold */
    /* The .sim-card-ads-header .sim-card-ads-row will get the bottom border */
}

.sim-card-ads-row {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e5e7eb; /* Ensure new light border color */
}

/* Header row border already handled */
/* .sim-card-ads-header .sim-card-ads-row {
    border-bottom: 1px solid #e5e7eb;
} */

.sim-card-ads-body .sim-card-ads-row:last-child {
    border-bottom: none;
}

/* Styling for cells specifically within the header */
.sim-card-ads-header .sim-card-ads-cell {
    padding: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    justify-content: center; /* Keep header cells centered */
    color: #1f2937; /* Ensure header text color is applied */
    font-weight: 700; /* Ensure header font weight is applied */
}

.sim-card-ads-body .sim-card-ads-row:nth-child(odd) {
    background-color: #ffffff; /* White for odd rows */
}

.sim-card-ads-body .sim-card-ads-row:nth-child(even) {
    background-color: #f9fafb; /* Very light gray for even rows */
}

.sim-card-ads-body .sim-card-ads-row:hover {
    background-color: #eff6ff; /* Light blue hover */
    transition: background-color 0.2s ease;
}

/* General cell styling for the body */
.sim-card-ads-body .sim-card-ads-cell {
    padding: 1rem; /* Consistent padding */
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align content to the start (right in RTL) */
    text-align: right; /* Default text alignment for data cells */
}

/* Keep header cells centered - this rule is already specific enough */
/* .sim-card-ads-header .sim-card-ads-cell remains justify-content: center; */


.sim-card-ads-cell.phone-number {
    flex: 0 0 20%; /* Maintain flex basis */
    font-weight: 700; /* New font weight */
    font-size: 1rem; /* New font size */
    color: #1f2937; /* Primary text color */
}

.sim-card-ads-cell.line-status {
    flex: 0 0 20%; /* Maintain flex basis */
    color: #374151; /* New text color */
    /* Badges within this cell will handle more specific styling */
}

.sim-card-ads-cell.price {
    flex: 0 0 20%; /* Maintain flex basis */
    font-weight: 700; /* New font weight */
    color: #059669; /* Green for price */
    font-size: 1rem; /* Consistent font size */
}

.sim-card-ads-cell.city {
    flex: 0 0 20%; /* Maintain flex basis */
    color: #374151; /* New text color */
}

.sim-card-ads-cell.contact {
    flex: 0 0 20%;
}

.status-badge {
    padding: 0.375rem 0.75rem; /* Base padding */
    border-radius: 0.5rem; /* Base border-radius */
    font-size: 0.75rem; /* Base font-size */
    font-weight: 500; /* Base font-weight */
    text-transform: uppercase; /* Base text-transform */
    line-height: 1; /* Ensure consistent height */
}

.status-badge.دائمی { /* Permanent */
    background-color: #d1fae5;
    color: #059669;
}

.status-badge.اعتباری { /* Prepaid */
    background-color: #ffedd5;
    color: #f97316;
}

.status-badge.همراه-اول { /* MCI */
    background-color: #dbeafe;
    color: #2563eb;
}

.status-badge.ایرانسل { /* Irancell */
    background-color: #fef3c7;
    color: #f59e0b;
}

.status-badge.رایتل { /* Rightel */
    background-color: #e0e7ff;
    color: #4f46e5;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #2563eb; /* rond-search-button color */
    color: white;
    padding: 0.625rem 1.25rem; /* rond-search-button derived padding */
    border-radius: 0.5rem; /* rond-search-button radius */
    font-weight: 500; /* rond-search-button weight */
    font-size: 0.875rem; /* rond-search-button text size */
    transition: background-color 0.3s ease; /* rond-search-button transition */
    text-decoration: none;
    border: none; /* Ensure no border */
    cursor: pointer; /* Ensure cursor is pointer */
}

.contact-button:hover {
    background-color: #1d4ed8; /* rond-search-button hover color */
    color: white;
    text-decoration: none;
}

.contact-button svg {
    margin-left: 0.5rem; /* Keep original margin for icon spacing in RTL */
    width: 1rem; /* New icon size */
    height: 1rem; /* New icon size */
}

.sim-card-ads-no-results {
    padding: 2rem; /* Existing padding is good */
    text-align: center; /* Existing alignment is good */
    background-color: #f3f4f6; /* New light gray background */
    border-radius: 0.75rem; /* New border-radius */
    color: #6b7280; /* New secondary text color */
    font-size: 1rem; /* Ensure consistent font size */
}

/* Responsive styles */
@media (max-width: 1024px) {
    .sim-card-ads-cell.phone-number,
    .sim-card-ads-cell.line-status,
    .sim-card-ads-cell.price,
    .sim-card-ads-cell.city,
    .sim-card-ads-cell.contact {
        flex: 0 0 33.333%;
    }
    
    .sim-card-ads-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .sim-card-ads-cell.phone-number,
    .sim-card-ads-cell.line-status,
    .sim-card-ads-cell.price,
    .sim-card-ads-cell.city,
    .sim-card-ads-cell.contact {
        flex: 0 0 50%;
    }
    
    .sim-card-ads-header {
        display: none;
    }
    
    .sim-card-ads-body .sim-card-ads-row {
        padding: 1rem; /* New padding for card-like appearance */
        margin-bottom: 1rem; /* Existing margin */
        background-color: #ffffff; /* Ensure white background for stacked rows */
        border-radius: 1rem; /* New border-radius for card-like appearance */
        box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03); /* New lighter shadow */
        border-bottom: none; /* Remove bottom border for stacked card items */
    }
    
    .sim-card-ads-cell {
        position: relative; /* Existing */
        padding: 0.75rem 1rem; /* Existing padding is fine */
        /* background-color will be inherited from the row now */
    }
    
    .sim-card-ads-cell::before {
        content: attr(data-label); /* Existing */
        font-weight: 700; /* New font weight */
        display: block; /* Existing */
        margin-bottom: 0.375rem; /* Adjusted margin */
        color: #1f2937; /* New text color */
    }
}

@media (max-width: 640px) {
    .sim-card-ads-cell.phone-number,
    .sim-card-ads-cell.line-status,
    .sim-card-ads-cell.price,
    .sim-card-ads-cell.city,
    .sim-card-ads-cell.contact {
        flex: 0 0 100%;
    }
}