@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #1a73e8; /* Elegant Google Blue */
  --primary-hover: #1557b0;
  --accent: #f22613; /* Primary Accent Red */
  --accent-light: #fbe9e7;
  --success: #34a853; /* Google Green */
  --background: #f4f6fa; /* Bright, clean grey-blue background */
  --card-background: #ffffff;
  --text-main: #1f2937; /* Dark charcoal */
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-width: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 60px;
  background-image: radial-gradient(circle at 10% 20%, rgba(26, 115, 232, 0.03) 0%, transparent 40%),
                    radial-gradient(circle at 90% 80%, rgba(242, 38, 19, 0.02) 0%, transparent 40%);
  background-attachment: fixed;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-hover);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Top Bar */
header {
  padding: 24px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.logo-area img {
  height: 40px;
  width: auto;
}

.logo-svg {
  height: 42px;
  width: 42px;
  flex-shrink: 0;
  transition: var(--transition);
}

.logo-area:hover .logo-svg {
  transform: scale(1.1) rotate(-5deg);
}

.title-group {
  display: flex;
  flex-direction: column;
}

.logo-area h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Toggle Button */
.lang-btn {
  background: var(--card-background);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.lang-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.lang-btn .flag {
  font-size: 18px;
}

/* Top Info Panels Layout */
.top-panels-row {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  width: 100%;
}

.top-panels-row .mcp-section {
  margin-bottom: 0;
  flex: 0 0 calc(60% - 12px);
  width: calc(60% - 12px);
}

.top-panels-row .discover-section {
  margin-bottom: 0;
  flex: 0 0 calc(40% - 12px);
  width: calc(40% - 12px);
  background-color: #ffffff;
}

.discover-icon {
  background-color: #e8f0fe;
  color: var(--primary);
}

.discover-text-group {
  flex: 1;
  font-size: 15px;
  color: var(--text-main);
  line-height: 1.5;
  text-align: left;
}

.discover-badge {
  background-color: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  line-height: normal;
}

.discover-text {
  vertical-align: middle;
  font-weight: 500;
}

.discover-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.discover-nav-btn {
  background: white;
  border: 1px solid var(--border);
  color: var(--text-main);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.discover-nav-btn:hover {
  background-color: var(--background);
  border-color: var(--primary);
  color: var(--primary);
}

/* MCP Guide Section */
.mcp-section {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
}

.mcp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.mcp-icon {
  background-color: var(--accent-light);
  color: var(--accent);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
}

.mcp-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
}

.mcp-toggle-btn {
  background: none;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-left: auto;
}

.mcp-toggle-btn:hover {
  background-color: var(--primary);
  color: white;
}

/* Collapsible Content Area */
.mcp-content {
  overflow: hidden;
  max-height: 500px;
  opacity: 1;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), opacity 0.3s ease, margin 0.3s ease;
  margin-top: 16px;
}

.mcp-content.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  pointer-events: none;
}

.mcp-description {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.mcp-code-block {
  background-color: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: monospace;
  font-size: 13px;
  overflow-x: auto;
  white-space: pre;
  color: #374151;
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: white;
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
}

.copy-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Search and Filters */
.search-controls {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-bar-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 16px 20px 16px 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 16px;
  font-family: inherit;
  color: var(--text-main);
  background-color: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.15);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-tab {
  background: white;
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.25);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

/* Card Styling */
.logo-card {
  background: var(--card-background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.logo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(26, 115, 232, 0.2);
}

.logo-card.hidden {
  display: none !important;
}

.logo-card.filtered-out {
  display: none !important;
}

.card-category {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 20px;
  align-self: flex-start;
}

.category-workspace {
  background-color: #e8f0fe;
  color: #1a73e8;
}

.category-cloud {
  background-color: #fce8e6;
  color: #ea4335;
}

.category-pack {
  background-color: #f3e8ff;
  color: #8b5cf6;
}

.logo-preview-wrapper {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  width: 100%;
}

.logo-preview-wrapper img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.logo-card:hover .logo-preview-wrapper img {
  transform: scale(1.05);
}

.logo-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.logo-info {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.view-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: var(--transition);
  margin-top: auto;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.15);
}

.view-btn:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

/* Loading/Load More */
.load-more-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  margin-bottom: 40px;
}

.scroll-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Details Screen */
.details-view {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  display: none;
}

.details-view.active {
  display: block;
}

.back-btn-wrapper {
  margin-bottom: 30px;
}

.back-btn {
  background: var(--background);
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: 30px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.back-btn:hover {
  background: #e5e7eb;
  border-color: var(--text-muted);
}

.details-header {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.details-main-preview {
  background: #f8f9fa;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 280px;
  height: 280px;
}

.details-main-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.details-meta h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-main);
}

.details-meta-category {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.details-meta-info {
  color: var(--text-muted);
  font-size: 15px;
}

/* Sizing and Files Area */
.sizes-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text-main);
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}

.sizes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.size-item-card {
  border: 1px solid var(--border);
  background: #f8f9fa;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: var(--transition);
}

.size-item-card:hover {
  border-color: var(--primary);
  background: white;
  box-shadow: var(--shadow-sm);
}

.size-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.size-badge {
  background-color: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.size-type-badge {
  background-color: #e5e7eb;
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.size-preview-mini {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  padding: 10px;
}

.white-logo-bg {
  background: #e0e0e0 !important;
}

.size-preview-mini img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.size-filename {
  font-size: 13px;
  color: var(--text-muted);
  word-break: break-all;
  font-family: monospace;
}

.download-link-btn {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 10px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.download-link-btn:hover {
  background-color: var(--primary-hover);
  color: white;
  box-shadow: 0 4px 10px rgba(26, 115, 232, 0.2);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 0;
  margin-top: 60px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

footer strong {
  color: var(--text-main);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .top-panels-row {
    flex-direction: column;
    gap: 16px;
  }
  
  .top-panels-row .mcp-section,
  .top-panels-row .discover-section {
    flex: 0 0 100%;
    width: 100%;
  }
  
  .details-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .details-main-preview {
    width: 200px;
    height: 200px;
  }
}

/* What's New Button */
.whats-new-btn {
  background: var(--card-background);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.whats-new-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
  color: var(--primary);
}

/* Modal Popup */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  background-color: var(--card-background);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-lg);
  padding: 30px;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  font-weight: bold;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  line-height: 1;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.updates-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 8px;
}

.update-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.update-emoji {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.update-details {
  display: flex;
  flex-direction: column;
}

.update-date {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.update-desc {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.4;
}

