/* ===== AGENCY LIST PAGE STYLES ===== */

/* ===== AGENCY HEADER ===== */
.agency-header {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.85) 50%, rgba(51, 65, 85, 0.95) 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(226, 232, 240, 0.3);
}

.agency-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.agency-header__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.agency-header__content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.agency-header__logo {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.agency-header__logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}

.agency-header__logo-placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-size: 48px;
}

.agency-header__info {
  flex: 1;
  color: white;
}

.agency-header__name {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.1;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.agency-header__description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 100%;
}

.agency-header__stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.agency-header__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 100px;
}

.agency-header__stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  margin-bottom: 4px;
}

.agency-header__stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== AGENCY TABS ===== */
.agency-tabs {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.agency-tabs__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.agency-tabs__nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.agency-tabs__nav::-webkit-scrollbar {
  display: none;
}

.agency-tabs__tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 32px;
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.agency-tabs__tab:hover {
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.agency-tabs__tab.active {
  color: #3b82f6;
  border-bottom-color: #3b82f6;
  background: rgba(59, 130, 246, 0.08);
}

.agency-tabs__tab-icon {
  font-size: 1.1rem;
}

.agency-tabs__tab-count {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}

.agency-tabs__tab.active .agency-tabs__tab-count {
  background: #3b82f6;
  color: white;
}

/* ===== AGENCY CONTENT ===== */
.agency-content {
  padding: 40px 0 80px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  min-height: 60vh;
}

.agency-content__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.agency-content__tab-panel {
  display: none;
}

.agency-content__tab-panel.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.agency-content__empty {
  text-align: center;
  padding: 80px 20px;
  color: #64748b;
}

.agency-content__empty-icon {
  font-size: 4rem;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.agency-content__empty-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 12px;
}

.agency-content__empty-description {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .agency-header__container,
  .agency-tabs__container,
  .agency-content__container {
    padding: 0 24px;
  }
}

@media (max-width: 992px) {
  .agency-header {
    padding: 40px 0;
  }
  
  .agency-header__content {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
  
  .agency-header__logo {
    width: 100px;
    height: 100px;
  }
  
  .agency-header__name {
    font-size: 2rem;
  }
  
  .agency-header__stats {
    justify-content: center;
    gap: 20px;
  }
  
  .agency-tabs__tab {
    padding: 16px 24px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .agency-header__container,
  .agency-tabs__container,
  .agency-content__container {
    padding: 0 16px;
  }
  
  .agency-header {
    padding: 32px 0;
  }
  
  .agency-header__logo {
    width: 80px;
    height: 80px;
  }
  
  .agency-header__name {
    font-size: 1.75rem;
  }
  
  .agency-header__description {
    font-size: 1rem;
  }
  
  .agency-header__stats {
    gap: 16px;
  }
  
  .agency-header__stat {
    padding: 12px 16px;
    min-width: 80px;
  }
  
  .agency-header__stat-number {
    font-size: 1.5rem;
  }
  
  .agency-header__stat-label {
    font-size: 0.75rem;
  }
  
  .agency-tabs__tab {
    padding: 14px 16px;
    font-size: 0.85rem;
  }
  
  .agency-tabs__tab-icon {
    font-size: 1rem;
  }
  
  .agency-content {
    padding: 24px 0 60px 0;
  }
  
  .agency-content__empty {
    padding: 60px 16px;
  }
  
  .agency-content__empty-icon {
    font-size: 3rem;
  }
  
  .agency-content__empty-title {
    font-size: 1.25rem;
  }
  
  .agency-content__empty-description {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .agency-header__stats {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .agency-header__stat {
    width: 100%;
    max-width: 200px;
  }
  
  .agency-tabs__nav {
    gap: 0;
  }
  
  .agency-tabs__tab {
    flex: 1;
    min-width: 0;
    padding: 12px 8px;
    font-size: 0.8rem;
  }
  
  .agency-tabs__tab-icon {
    font-size: 0.9rem;
  }
  
  .agency-tabs__tab span:not(.agency-tabs__tab-icon):not(.agency-tabs__tab-count) {
    display: none;
  }
}

/* ===== LOADING STATES ===== */
.agency-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.agency-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e2e8f0;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== BREADCRUMB ===== */
.agency-breadcrumb {
  background: rgba(248, 250, 252, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
  padding: 16px 0;
}

.agency-breadcrumb__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.agency-breadcrumb__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.agency-breadcrumb__link {
  color: #64748b;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.agency-breadcrumb__link:hover {
  color: #3b82f6;
}

.agency-breadcrumb__separator {
  color: #cbd5e1;
  font-size: 0.8rem;
}

.agency-breadcrumb__current {
  color: #3b82f6;
  font-weight: 600;
}
