:root {
--weather-primary: #667eea;
--weather-secondary: #764ba2;
--weather-success: #28a745;
--weather-danger: #dc3545;
--weather-warning: #ffc107;
--weather-info: #17a2b8;
--weather-light: #f8f9fa;
--weather-dark: #2c3e50;
--weather-gray: #6c757d;
--weather-border: #e9ecef;
--weather-shadow: rgba(0, 0, 0, 0.1);
--weather-border-radius: 12px;
--weather-transition: all 0.3s ease;
--weather-font-family: "IRANSans", "Tahoma", "Arial", sans-serif;
} * {
box-sizing: border-box;
}
.weather-container,
.weather-page,
.province-detail-container,
.city-detail-container {
direction: rtl;
font-family: var(--weather-font-family);
line-height: 1.6;
color: var(--weather-dark);
max-width: 1200px;
margin: 0 auto;
padding: 20px;
} .weather-container h1,
.weather-container h2,
.weather-container h3,
.weather-container h4 {
font-weight: 700;
margin: 0 0 1rem 0;
color: var(--weather-dark);
}
.weather-container h1 {
font-size: 2.5rem;
}
.weather-container h2 {
font-size: 2rem;
}
.weather-container h3 {
font-size: 1.5rem;
}
.weather-container h4 {
font-size: 1.25rem;
} .weather-page-header,
.province-detail-header,
.city-detail-header {
background: linear-gradient(
135deg,
var(--weather-primary) 0%,
var(--weather-secondary) 100%
);
color: white;
border-radius: var(--weather-border-radius);
padding: 2rem;
margin-bottom: 2rem;
box-shadow: 0 10px 30px var(--weather-shadow);
text-align: center;
}
.weather-page-header h1,
.province-detail-header h1,
.city-detail-header h1 {
color: white;
margin-bottom: 0.5rem;
font-size: 2.5rem;
}
.page-description {
font-size: 1.1rem;
opacity: 0.9;
margin: 0;
} .breadcrumb {
font-size: 0.9rem;
margin-bottom: 1rem;
opacity: 0.9;
}
.breadcrumb a {
color: white;
text-decoration: none;
transition: opacity 0.3s ease;
}
.breadcrumb a:hover {
opacity: 0.8;
}
.breadcrumb .separator {
margin: 0 10px;
}
.breadcrumb .current {
font-weight: 600;
} .search-container {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
gap: 20px;
flex-wrap: wrap;
}
.search-wrapper {
position: relative;
flex: 1;
max-width: 500px;
min-width: 300px;
}
#province-search,
#city-search {
width: 100%;
padding: 15px 50px 15px 20px;
border: 2px solid var(--weather-border);
border-radius: 25px;
font-size: 16px;
outline: none;
transition: var(--weather-transition);
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
font-family: var(--weather-font-family);
}
#province-search:focus,
#city-search:focus {
border-color: var(--weather-primary);
box-shadow: 0 2px 20px rgba(102, 126, 234, 0.2);
}
.search-icon {
position: absolute;
left: 15px;
top: 50%;
transform: translateY(-50%);
color: var(--weather-gray);
font-size: 1.2rem;
pointer-events: none;
}
.search-stats {
background: var(--weather-light);
padding: 8px 15px;
border-radius: 20px;
color: var(--weather-gray);
font-size: 14px;
white-space: nowrap;
border: 1px solid var(--weather-border);
} .region-filters {
display: flex;
gap: 10px;
margin-bottom: 30px;
flex-wrap: wrap;
justify-content: center;
}
.region-filter {
padding: 8px 16px;
border: 2px solid var(--weather-border);
background: white;
border-radius: 20px;
cursor: pointer;
transition: var(--weather-transition);
font-size: 14px;
font-weight: 500;
font-family: var(--weather-font-family);
}
.region-filter:hover {
border-color: var(--weather-primary);
background: #f8f9ff;
}
.region-filter.active {
background: var(--weather-primary);
color: white;
border-color: var(--weather-primary);
} .provinces-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 20px;
margin-bottom: 40px;
}
.province-card {
background: white;
border: 2px solid var(--weather-border);
border-radius: 15px;
overflow: hidden;
transition: var(--weather-transition);
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
opacity: 0;
transform: translateY(20px);
}
.province-card.slide-in {
animation: slideIn 0.6s forwards ease-out;
}
@keyframes slideIn {
to {
opacity: 1;
transform: translateY(0);
}
}
.province-card:hover,
.province-card.hovered {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
border-color: var(--weather-primary);
}
.province-link {
display: block;
padding: 25px;
text-decoration: none;
color: inherit;
}
.province-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 15px;
}
.province-name {
font-size: 1.4rem;
font-weight: 700;
margin: 0;
color: var(--weather-dark);
}
.province-region {
background: #e3f2fd;
color: #1976d2;
padding: 4px 12px;
border-radius: 15px;
font-size: 12px;
font-weight: 600;
}
.province-meta {
display: flex;
gap: 15px;
margin-bottom: 15px;
flex-wrap: wrap;
}
.meta-item {
display: flex;
align-items: center;
gap: 5px;
}
.meta-icon {
font-size: 16px;
}
.meta-text {
font-size: 14px;
color: #caff00;
}
.province-coordinates {
text-align: center;
margin-bottom: 15px;
color: #95a5a6;
font-size: 13px;
}
.weather-preview {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
padding: 10px;
background: var(--weather-light);
border-radius: 8px;
}
.weather-preview-item {
display: flex;
align-items: center;
gap: 5px;
font-size: 12px;
}
.preview-icon {
font-size: 14px;
}
.preview-text {
color: var(--weather-gray);
}
.province-footer {
text-align: center;
padding-top: 15px;
border-top: 1px solid var(--weather-border);
}
.view-details {
color: var(--weather-primary);
font-weight: 600;
font-size: 14px;
} .no-provinces,
.no-cities {
text-align: center;
padding: 60px 20px;
color: var(--weather-gray);
}
.empty-state {
max-width: 400px;
margin: 0 auto;
}
.empty-icon {
font-size: 4rem;
margin-bottom: 1rem;
}
.empty-state h3 {
font-size: 1.5rem;
margin-bottom: 1rem;
color: var(--weather-dark);
}
.empty-state p {
margin-bottom: 2rem;
line-height: 1.6;
} .page-stats {
margin-top: 40px;
background: var(--weather-light);
border-radius: var(--weather-border-radius);
padding: 20px;
}
.stats-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 20px;
text-align: center;
}
.stat-item {
display: flex;
flex-direction: column;
align-items: center;
}
.stat-number {
font-size: 2rem;
font-weight: 700;
color: #caff00;
line-height: 1;
}
.stat-label {
font-size: 0.9rem;
color: #caff00;
margin-top: 5px;
} .current-weather-hero {
background: linear-gradient(
135deg,
var(--weather-light) 0%,
var(--weather-border) 100%
);
border-radius: var(--weather-border-radius);
padding: 1.5rem;
margin-bottom: 1.5rem;
}
.weather-primary-info {
display: grid;
grid-template-columns: auto 1fr;
gap: 2rem;
margin-bottom: 1.5rem;
align-items: center;
}
.main-weather-display {
display: flex;
align-items: center;
gap: 1rem;
}
.weather-icon-large img {
width: 80px;
height: 80px;
}
.temperature-main {
display: flex;
align-items: flex-start;
}
.temp-number {
font-size: 4rem;
font-weight: 700;
color: var(--weather-dark);
line-height: 1;
}
.temp-unit {
font-size: 1.5rem;
color: var(--weather-gray);
margin-top: 5px;
}
.weather-description {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.condition-text {
font-size: 1.4rem;
font-weight: 600;
color: #495057;
}
.feels-like {
font-size: 1.1rem;
color: var(--weather-gray);
}
.location-info,
.last-updated {
font-size: 0.9rem;
color: var(--weather-gray);
} .weather-details-comprehensive {
margin-top: 1.25rem;
}
.details-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 1rem;
}
.detail-card {
background: white;
border: 1px solid var(--weather-border);
border-radius: 10px;
padding: 1rem;
text-align: center;
transition: var(--weather-transition);
}
.detail-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px var(--weather-shadow);
border-color: var(--weather-primary);
}
.detail-icon {
font-size: 2rem;
margin-bottom: 0.5rem;
}
.detail-label {
font-size: 0.75rem;
color: var(--weather-gray);
margin-bottom: 0.25rem;
font-weight: 600;
text-transform: uppercase;
}
.detail-value {
font-size: 1.1rem;
font-weight: 700;
color: var(--weather-dark);
} .weather-forecast {
margin-top: 2rem;
}
.forecast-days {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 1rem;
}
.forecast-day {
background: white;
border: 1px solid var(--weather-border);
border-radius: var(--weather-border-radius);
padding: 1rem;
text-align: center;
transition: var(--weather-transition);
}
.forecast-day:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px var(--weather-shadow);
}
.day-name {
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--weather-dark);
}
.day-temps {
margin-bottom: 0.5rem;
}
.max-temp {
font-weight: 700;
color: var(--weather-danger);
font-size: 1.1rem;
}
.min-temp {
color: var(--weather-gray);
font-size: 0.9rem;
margin-right: 5px;
} @media (max-width: 768px) {
.weather-container {
padding: 10px;
}
.weather-page-header h1 {
font-size: 2rem;
}
.search-container {
flex-direction: column;
align-items: stretch;
}
.search-wrapper {
max-width: none;
min-width: auto;
}
.region-filters {
justify-content: flex-start;
overflow-x: auto;
padding-bottom: 10px;
}
.provinces-grid {
grid-template-columns: 1fr;
gap: 15px;
}
.province-header {
flex-direction: column;
align-items: flex-start;
gap: 10px;
}
.province-meta {
flex-direction: column;
gap: 8px;
}
.weather-primary-info {
grid-template-columns: 1fr;
text-align: center;
}
.details-grid {
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.forecast-days {
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}
.stats-container {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 480px) {
.weather-page-header {
padding: 1.5rem 1rem;
}
.weather-page-header h1 {
font-size: 1.8rem;
}
.page-description {
font-size: 1rem;
}
.province-link {
padding: 20px;
}
.province-name {
font-size: 1.2rem;
}
.temp-number {
font-size: 3rem;
}
.condition-text {
font-size: 1.2rem;
}
} .button,
.button-primary,
.button-secondary {
display: inline-block;
padding: 10px 20px;
border: none;
border-radius: 6px;
text-decoration: none;
font-weight: 500;
cursor: pointer;
transition: var(--weather-transition);
font-family: var(--weather-font-family);
font-size: 14px;
}
.button {
background: var(--weather-light);
color: var(--weather-dark);
border: 1px solid var(--weather-border);
}
.button-primary {
background: var(--weather-primary);
color: white;
}
.button-secondary {
background: var(--weather-gray);
color: white;
}
.button:hover,
.button-primary:hover,
.button-secondary:hover {
transform: translateY(-1px);
box-shadow: 0 2px 8px var(--weather-shadow);
} .loading {
text-align: center;
padding: 40px;
color: var(--weather-gray);
}
.loading::after {
content: "⏳";
font-size: 2rem;
animation: spin 2s linear infinite;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
.error {
background: #fff5f5;
border: 1px solid #fed7d7;
color: #c53030;
padding: 15px;
border-radius: var(--weather-border-radius);
text-align: center;
}