/* 
 * Enhanced Brand Detail Page Styles for Swapd.eu
 * Modern styling for the brand detail page
 */

/* ========== Brand Detail Layout ========== */
.brand-detail-content {
    padding: 2rem 0;
    background-color: #f8fafc;
    min-height: calc(100vh - 200px);
  }
  
  .brand-detail-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  /* Breadcrumbs navigation */
  .breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: #64748b;
  }
  
  .breadcrumbs a {
    color: #1756a9;
    text-decoration: none;
    transition: color 0.2s;
  }
  
  .breadcrumbs a:hover {
    color: #0d4c94;
    text-decoration: underline;
  }
  
  .breadcrumbs .separator {
    margin: 0 0.5rem;
    color: #94a3b8;
  }
  
  /* Brand main info section */
  .brand-main-info {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #27ae60;
    transition: transform 0.2s ease;
  }
  
  .brand-main-info:hover {
    transform: translateY(-2px);
  }
  
  /* EU badge circle */
  .eu-badge-container {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
  }
  
  .eu-badge {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1756a9;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(23, 86, 169, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .eu-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(23, 86, 169, 0.35);
  }
  
  .country-name {
    font-size: 0.95rem;
    color: #4b5563;
    display: flex;
    align-items: center;
    font-weight: 500;
  }
  
  .country-flag {
    margin-right: 0.5rem;
    display: inline-block;
    vertical-align: middle;
    font-size: 1.25rem;
  }
  
  /* Brand logo */
  .brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background-color: #f3f4f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.brand-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1756a9;
    background: none;
    border-radius: 50%;
}
  
  .brand-symbol {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1756a9, #0d4c94);
    color: white;
    font-size: 2rem;
    font-weight: bold;
  }
  
  .related-brand-logo .brand-symbol {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.25rem;
    border-radius: 8px;
  }
  
  /* Brand title */
  .brand-title {
    display: flex;
    align-items: baseline;
    margin-bottom: 1rem;
  }
  
  .brand-title h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    padding: 0;
    line-height: 1.2;
  }
  
  .brand-owned-by {
    font-size: 0.9rem;
    color: #64748b;
    margin-left: 1rem;
    font-style: italic;
  }
  
  /* Category tags */
  .brand-categories {
    margin-bottom: 1.5rem;
  }
  
  .category-tag {
    display: inline-block;
    color: #1756a9;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: #eef2ff;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.2s ease;
  }
  
  .category-tag:hover {
    background-color: #dbeafe;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }
  
  /* Visit website button */
  .visit-website {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1.5rem;
    background-color: transparent;
    color: #1756a9;
    border: 2px solid #1756a9;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
  }
  
  .visit-website:hover {
    background-color: #f0f5ff;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(23, 86, 169, 0.1);
  }
  
  .visit-website::before {
    content: '↗';
    margin-right: 0.5rem;
    font-size: 1.1rem;
  }
  
  /* About section */
  .brand-section {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;
  }
  
  .brand-section:hover {
    transform: translateY(-2px);
  }
  
  .brand-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
  }
  
  .brand-section h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: #1756a9;
  }
  
  .brand-description {
    font-size: 1rem;
    line-height: 1.7;
    color: #4b5563;
  }
  
  .brand-description p {
    margin-bottom: 1.25rem;
  }
  
  .brand-description p:last-child {
    margin-bottom: 0;
  }
  
  /* Ownership section */
  .ownership-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }
  
  .ownership-table th, 
  .ownership-table td {
    padding: 1rem 0;
    font-size: 0.95rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
  }
  
  .ownership-table tr:last-child th,
  .ownership-table tr:last-child td {
    border-bottom: none;
  }
  
  .ownership-table th {
    width: 200px;
    font-weight: 600;
    color: #64748b;
  }
  
  .ownership-table td {
    display: flex;
    align-items: center;
    color: #1e293b;
    font-weight: 500;
  }
  
  /* Related brands section */
  .related-brands {
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: fit-content;
    transition: transform 0.2s ease;
  }
  
  .related-brands:hover {
    transform: translateY(-2px);
  }
  
  .related-brands h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 0;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
  }
  
  .related-brands h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25rem;
    bottom: 0.25rem;
    width: 4px;
    background-color: #1756a9;
    border-radius: 2px;
  }
  
  .related-brand {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
    gap: 1rem;
    transition: transform 0.2s ease;
  }
  
  .related-brand:hover {
    transform: translateX(5px);
  }
  
  .related-brand:last-child {
    margin-bottom: 1.5rem;
    padding-bottom: 0;
    border-bottom: none;
  }
  
  .related-brand-logo {
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  }
  
  .related-brand a {
    display: block;
    color: #1756a9;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    transition: color 0.2s ease;
  }
  
  .related-brand-info {
    flex-grow: 1;
  }
  
  .related-brand a:hover {
    color: #0d4c94;
    text-decoration: underline;
  }
  
  .related-brand-country {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.25rem;
  }
  
  .see-more-btn {
    display: block;
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #1756a9;
    color: white;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
  }
  
  .see-more-btn:hover {
    background-color: #0d4c94;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(23, 86, 169, 0.2);
  }
  
  .see-more-btn::after {
    content: ' →';
    margin-left: 0.25rem;
  }
  
  /* Responsive design */
  @media (max-width: 992px) {
    .brand-detail-container {
      grid-template-columns: 1fr;
    }
    
    .related-brands {
      order: -1;
      margin-bottom: 1.5rem;
    }
  }
  
  @media (max-width: 768px) {
    .eu-badge-container {
      margin-bottom: 1rem;
    }
    
    .brand-title {
      flex-direction: column;
      align-items: flex-start;
    }
    
    .brand-owned-by {
      margin-left: 0;
      margin-top: 0.5rem;
    }
    
    .ownership-table th {
      width: 140px;
    }
    
    .brand-section {
      padding: 1.25rem;
    }
    
    .category-tag {
      margin-bottom: 0.5rem;
    }
    
    .brand-logo {
      width: 3.5rem;
      height: 3.5rem;
    }
    
    .brand-symbol {
      font-size: 1.5rem;
    }
    
    .brand-title h1 {
      font-size: 1.5rem;
    }
  }
  
  @media (max-width: 480px) {
    .breadcrumbs {
      font-size: 0.75rem;
    }
    
    .ownership-table th, 
    .ownership-table td {
      display: block;
      width: 100%;
    }
    
    .ownership-table th {
      padding-bottom: 0.25rem;
    }
    
    .ownership-table td {
      padding-top: 0.25rem;
    }
  }

  /* Ownership Warning Banner */
.ownership-warning {
    background-color: #fff9e6;
    border-left: 5px solid #ffc107;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    overflow: hidden;
  }
  
  .ownership-warning::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: #ffc107;
    border-radius: 5px 0 0 5px;
  }
  
  .ownership-warning-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffc107;
    color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: bold;
  }
  
  .ownership-warning-content {
    flex: 1;
  }
  
  .ownership-warning-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e67e22;
  }
  
  .ownership-warning-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
  }
  
  /* Variations for different countries */
  .ownership-warning.us-owned {
    background-color: #fff9e6;
    border-left-color: #ffc107;
  }
  
  .ownership-warning.us-owned .ownership-warning-icon {
    background-color: #ffc107;
  }
  
  .ownership-warning.us-owned .ownership-warning-title {
    color: #e67e22;
  }
  
  .ownership-warning.cn-owned {
    background-color: #fef2f2;
    border-left-color: #ef4444;
  }
  
  .ownership-warning.cn-owned .ownership-warning-icon {
    background-color: #ef4444;
  }
  
  .ownership-warning.cn-owned .ownership-warning-title {
    color: #dc2626;
  }
  
  .ownership-warning.ru-owned {
    background-color: #eff6ff;
    border-left-color: #3b82f6;
  }
  
  .ownership-warning.ru-owned .ownership-warning-icon {
    background-color: #3b82f6;
  }
  
  .ownership-warning.ru-owned .ownership-warning-title {
    color: #2563eb;
  }
  
  /* Responsive adjustments */
  @media (max-width: 576px) {
    .ownership-warning {
      padding: 1rem;
      gap: 0.75rem;
    }
    
    .ownership-warning-icon {
      width: 28px;
      height: 28px;
      font-size: 1rem;
    }
    
    .ownership-warning-title {
      font-size: 1.1rem;
    }
    
    .ownership-warning-text {
      font-size: 0.9rem;
    }
  }