/* Hava Durumu kayıt detayı paneli (Views/Weather/_WeatherDetails). Önceden partial'ın içindeki <style>: her kayıt seçiminde sayfaya yeniden ekleniyordu; şimdi Weather/Index bir kez bağlar. */

/* Design tokens matching user image */
:root {
    --box-bg: #f5f8ff; /* Slightly bluer background for boxes */
    --box-border: #eef2f8;
    --label-color: #94a3b8; /* Light slate for labels */
    --text-color: #1e293b; /* Deep slate for primary text */
    --red-text: #dc2626;  /* Ateş Böceği red */
    --green-text: #059669; /* Portakal green */
}

.location-bar {
    display: flex;
    align-items: stretch;
    gap: 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.map-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}
.map-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mini-map-box {
    width: 320px; /* Increased from 280px */
    height: 180px; /* Balanced with UserType below it */
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.location-info-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.location-details-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-start;
}

/* Info Card Design (Box Design) */
.info-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-card-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--label-color);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-left: 2px;
}

.info-card-value-box {
    background: var(--box-bg);
    border: 1px solid var(--box-border);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1rem;
    min-height: 42px;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

/* Icon Sizing */
.info-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nested Coordinates Box */
.coords-inner-grid {
    display: flex;
    gap: 12px;
}

.coord-sub-box {
    background: var(--box-bg);
    border: 1px solid var(--box-border);
    border-radius: 10px;
    padding: 8px 16px;
    text-align: center;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coord-sub-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--label-color);
    margin-bottom: 2px;
}

.coord-sub-value {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
}

/* Colors per image */
.text-red { color: var(--red-text); }
.text-green { color: var(--green-text); }

@media (max-width: 1200px) {
    .location-bar { flex-direction: column; align-items: stretch; gap: 20px; }
    .map-section { width: 100%; }
    .mini-map-box { width: 100%; height: 250px; }
    .location-details-grid { 
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; 
    }
}

@media (max-width: 768px) {
    .location-bar { padding: 16px; }
    .location-details-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    .summary-bar { flex-direction: column; align-items: stretch !important; gap: 15px !important; }
    .summary-bar .separator { display: none; }
    .summary-bar > div:first-child { font-size: 2.2rem !important; text-align: center; }
    .summary-bar > div:last-child { text-align: center; }
    .current-weather-section { padding: 20px !important; border-radius: 16px !important; }
    .current-weather-section > div:first-child { flex-direction: column; align-items: flex-start !important; gap: 20px !important; }
    .page-title { font-size: 1.5rem; margin-top: 20px; }
    .hourly-table th, .hourly-table td { padding: 10px 8px; font-size: 0.8rem; }
    .gallery-section h3 { font-size: 1rem !important; }
}

/* Existing grid & table styles... */
/* Hourly table styles */
.hourly-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.hourly-table th {
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}
.hourly-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}
.hourly-table tr:hover {
    background: #f8fafc;
}
.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 40px;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}
.page-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 30px;
    font-weight: 500;
}

/* Responsive Grid for Agricultural Data */
.agri-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 24px;
}
.agri-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

/* Summary Grid for 2-Column Layout */
.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .summary-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
    .agri-card { padding: 15px !important; margin-bottom: 15px !important; }
    .agri-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
}
/* Modern Error Card Design */
.error-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: 400px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(255,241,242,0.5) 0%, rgba(255,255,255,0) 70%);
    animation: fadeIn 0.6s ease-out;
}

.error-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(253, 164, 175, 0.3);
    border-radius: 24px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.error-card:hover {
    transform: translateY(-5px);
}

.error-icon-wrapper {
    width: 80px;
    height: 80px;
    background: #fff1f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 10px;
}

.error-icon-wrapper svg {
    width: 40px;
    height: 40px;
    color: #e11d48;
    z-index: 2;
}

.error-icon-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #ff7171;
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 2s infinite;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
}

.error-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.retry-button {
    background: #1e293b;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    margin-top: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.retry-button:hover {
    background: #0f172a;
    transform: scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.retry-button svg {
    width: 18px;
    height: 18px;
    transition: transform 0.4s ease;
}

.retry-button:hover svg {
    transform: rotate(180deg);
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Responsive Grid System for 3-4-2 Panels */
.grid-342 {
    display: grid;
    grid-template-columns: 3fr 4fr 2fr;
    gap: 30px;
}

.data-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding: 10px 0;
    gap: 10px;
}

@media (max-width: 992px) {
    .grid-342 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Add some spacing between groups in mobile */
    .grid-342 > div:not(:last-child) {
        border-bottom: 2px solid #f1f5f9;
        padding-bottom: 20px;
    }
}
