/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: arial, sans-serif;
  font-size: 13px;
  color: #202124;
  background: #fff;
}

a { text-decoration: none; color: inherit; }

/* ===== GOOGLE LOGO COLORS ===== */
.c-blue   { color: #4285f4; }
.c-red    { color: #ea4335; }
.c-yellow { color: #fbbc05; }
.c-green  { color: #34a853; }

/* ===== LOGO SIZES ===== */
.logo-large {
  font-family: Georgia, serif;
  font-size: 74px;
  font-weight: bold;
  letter-spacing: -2px;
  line-height: 1;
  user-select: none;
}

.logo-small {
  font-family: Georgia, serif;
  font-size: 26px;
  font-weight: bold;
  letter-spacing: -1px;
  line-height: 1;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  user-select: none;
  display: inline-block;
  flex-shrink: 0;
}

/* ===== VIEW SYSTEM ===== */
.view {
  display: none;
  opacity: 0;
  transition: opacity 300ms ease;
}

.view.visible {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.view.active {
  opacity: 1;
}

/* ===== SEARCH INPUT ===== */
.search-input {
  height: 44px;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 8px 20px;
  font-size: 16px;
  font-family: arial, sans-serif;
  color: #202124;
  outline: none;
  width: 100%;
  display: block;
}

.search-input:focus {
  border-color: #1a73e8;
  box-shadow: 0 1px 6px rgba(32, 33, 36, .28);
}

/* ===== GOOGLE-STYLE BUTTONS ===== */
.btn-google {
  background: #f8f9fa;
  border: 1px solid #dfe1e5;
  color: #3c4043;
  border-radius: 4px;
  padding: 9px 16px;
  font-size: 13px;
  font-family: arial, sans-serif;
  cursor: pointer;
}

.btn-google:hover {
  border-color: #c6c9cc;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
}

/* ===== HOME VIEW ===== */
.home-topright {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 20px;
  gap: 16px;
  flex-shrink: 0;
}

.topright-link {
  color: #202124;
  font-size: 13px;
}

.topright-link:hover { text-decoration: underline; }

.btn-login {
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 13px;
  font-family: arial, sans-serif;
  cursor: pointer;
}

.btn-login:hover { background: #1557b0; }

.home-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px 80px;
  gap: 20px;
}

.search-wrap {
  width: 100%;
  max-width: 490px;
}

.home-buttons {
  display: flex;
  gap: 12px;
}

.home-footer {
  background: #f2f2f2;
  border-top: 1px solid #e4e4e4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  font-size: 13px;
  flex-shrink: 0;
}

.home-footer a { color: #70757a; }
.home-footer a:hover { text-decoration: underline; }

/* ===== SERP HEADER ===== */
.serp-header {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid #e8eaed;
  gap: 24px;
  flex-shrink: 0;
}

.serp-search-group {
  flex: 1;
  max-width: 550px;
}

/* ===== SERP TABS ===== */
.serp-tabs {
  display: flex;
  padding: 0 24px;
  border-bottom: 1px solid #e8eaed;
  flex-shrink: 0;
  overflow-x: auto;
}

.tab {
  color: #70757a;
  font-size: 13px;
  padding: 12px 16px;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  display: inline-block;
}

.tab:hover { color: #202124; }

.tab-active {
  color: #1a73e8;
  border-bottom-color: #1a73e8;
}

/* ===== SERP BODY ===== */
.serp-body {
  display: flex;
  padding: 20px 24px;
  gap: 60px;
  flex: 1;
  align-items: flex-start;
}

.serp-left {
  flex: 1;
  max-width: 490px;
}

.serp-stats {
  color: #70757a;
  font-size: 13px;
  margin-bottom: 20px;
}

/* ===== SEARCH RESULTS ===== */
.serp-result { margin-bottom: 28px; }

.result-url {
  color: #006621;
  font-size: 12px;
  margin-bottom: 4px;
}

.result-title {
  display: block;
  color: #1a0dab;
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 6px;
}

.result-title:hover { text-decoration: underline; }

.result-snippet {
  color: #545454;
  line-height: 1.6;
  font-size: 13px;
}

/* ===== SERP SIDEBAR ===== */
.serp-sidebar {
  width: 210px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Knowledge Panel */
.knowledge-panel {
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: 16px;
}

.kp-photo-wrap {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
  position: relative;
}

.kp-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.kp-photo-fallback {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e8eaed;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: #70757a;
}

.kp-name {
  font-size: 15px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 4px;
}

.kp-subtitle {
  color: #70757a;
  font-size: 12px;
  margin-bottom: 12px;
}

.kp-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kp-link {
  color: #1a73e8;
  font-size: 13px;
  cursor: pointer;
}

.kp-link:hover { text-decoration: underline; }

/* People Also Ask */
.paa {
  border: 1px solid #e8eaed;
  border-radius: 8px;
  overflow: hidden;
}

.paa-title {
  font-size: 13px;
  font-weight: 500;
  color: #202124;
  padding: 12px 16px;
  background: #f8f9fa;
  border-bottom: 1px solid #e8eaed;
}

.faq-item { border-bottom: 1px solid #e8eaed; }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 11px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 13px;
  color: #202124;
  cursor: pointer;
  font-family: arial, sans-serif;
  gap: 8px;
}

.faq-question:hover { background: #f8f9fa; }

.faq-icon {
  font-size: 9px;
  color: #70757a;
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 4px 16px 12px;
  color: #545454;
  font-size: 13px;
  line-height: 1.6;
}

/* SERP Footer */
.serp-footer {
  background: #f2f2f2;
  border-top: 1px solid #e4e4e4;
  padding: 16px;
  text-align: center;
  flex-shrink: 0;
}

.serp-footer-logo {
  display: block;
  margin-bottom: 10px;
  cursor: default;
}

.serp-footer-links { display: flex; justify-content: center; flex-wrap: wrap; }

.serp-footer-links a {
  color: #70757a;
  font-size: 12px;
  margin: 0 8px;
}

.serp-footer-links a:hover { text-decoration: underline; }

/* ===== PANEL HEADER ===== */
.panel-header {
  display: flex;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid #e8eaed;
  gap: 24px;
  flex-shrink: 0;
}

.btn-back {
  background: none;
  border: none;
  color: #1a73e8;
  font-size: 13px;
  font-family: arial, sans-serif;
  cursor: pointer;
  padding: 0;
}

.btn-back:hover { text-decoration: underline; }

/* ===== PANEL CONTENT ===== */
.panel-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  width: 100%;
  flex: 1;
}

.breadcrumb {
  color: #006621;
  font-size: 12px;
  margin-bottom: 10px;
}

.panel-content h1 {
  font-size: 22px;
  font-weight: normal;
  color: #202124;
  margin-bottom: 24px;
  line-height: 1.3;
}

/* Profile row */
.profile-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.profile-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.profile-photo-fallback {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e8eaed;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: #70757a;
  flex-shrink: 0;
}

.profile-name {
  font-size: 16px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 4px;
}

.profile-subtitle { color: #70757a; font-size: 13px; }

/* Bio */
.bio {
  color: #545454;
  line-height: 1.75;
  margin-bottom: 28px;
  font-size: 14px;
}

/* Skills sections */
.skills-section { margin-bottom: 20px; }

.skills-section h2 {
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 10px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  background: #f1f3f4;
  border-radius: 4px;
  padding: 5px 10px;
  font-size: 12px;
  color: #3c4043;
}

/* ===== CV VIEW ===== */
.cv-download {
  display: inline-block;
  background: #1a73e8;
  color: #fff;
  border-radius: 4px;
  padding: 10px 20px;
  font-size: 14px;
  margin-bottom: 32px;
  text-decoration: none;
}

.cv-download:hover { background: #1557b0; color: #fff; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 28px;
  margin-bottom: 36px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: #e8eaed;
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1a73e8;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #e8eaed;
}

.job-company {
  font-size: 15px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 2px;
}

.job-title {
  color: #1a73e8;
  font-size: 13px;
  margin-bottom: 2px;
}

.job-period {
  color: #70757a;
  font-size: 12px;
  margin-bottom: 10px;
}

.job-intro {
  font-style: italic;
  color: #545454;
  line-height: 1.6;
  margin-bottom: 10px;
  font-size: 13px;
}

.job-bullets {
  padding-left: 20px;
  color: #545454;
  font-size: 13px;
}

.job-bullets li {
  margin-bottom: 5px;
  line-height: 1.6;
}

/* Education */
.education {
  border-top: 1px solid #e8eaed;
  padding-top: 24px;
}

.education h2 {
  font-size: 15px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 16px;
}

.edu-item { margin-bottom: 16px; }
.edu-item:last-child { margin-bottom: 0; }

.edu-school {
  font-weight: 500;
  font-size: 14px;
  color: #202124;
  margin-bottom: 2px;
}

.edu-degree {
  color: #545454;
  font-size: 13px;
  margin-bottom: 2px;
}

.edu-period { color: #70757a; font-size: 12px; }

/* ===== RESULTS VIEW ===== */
.metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 32px;
}

.metric-card {
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: 20px 16px;
  text-align: center;
}

.metric-number {
  font-size: 32px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  color: #545454;
  font-size: 12px;
  line-height: 1.5;
}

.wins {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.win {
  border-left: 3px solid;
  padding: 12px 16px;
  background: #fafafa;
  border-radius: 0 4px 4px 0;
  color: #545454;
  font-size: 13px;
  line-height: 1.7;
}

.win-blue   { border-color: #1a73e8; }
.win-green  { border-color: #34a853; }
.win-yellow { border-color: #fbbc05; }
.win-red    { border-color: #ea4335; }

/* ===== CONTACT VIEW ===== */
.contact-wrap {
  max-width: 500px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  width: 100%;
  flex: 1;
  text-align: center;
}

.contact-breadcrumb { text-align: left; }

.contact-wrap h1 {
  font-size: 22px;
  font-weight: normal;
  color: #202124;
  margin-bottom: 24px;
  line-height: 1.3;
}

.contact-photo-wrap { margin-bottom: 12px; }

.contact-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.contact-photo-fallback {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e8eaed;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  color: #70757a;
  margin: 0 auto;
}

.contact-name {
  font-size: 18px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 4px;
}

.contact-subtitle {
  color: #70757a;
  font-size: 13px;
  margin-bottom: 2px;
}

.contact-location {
  color: #70757a;
  font-size: 13px;
  margin-bottom: 20px;
}

.contact-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  text-align: left;
}

.contact-card {
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: 14px 16px;
}

.contact-card-label {
  font-size: 11px;
  color: #70757a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.contact-card-value {
  font-size: 14px;
  color: #202124;
}

.contact-card-value a { color: #1a0dab; }
.contact-card-value a:hover { text-decoration: underline; }

.contact-closing {
  color: #545454;
  font-size: 14px;
  font-style: italic;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .logo-large { font-size: 52px; }

  .home-center { padding: 0 16px 60px; gap: 16px; }

  .serp-header { padding: 10px 16px; gap: 12px; }

  .serp-tabs { padding: 0 12px; }

  .serp-body {
    padding: 16px;
    flex-direction: column;
    gap: 0;
  }

  .serp-left { max-width: 100%; }

  .serp-sidebar { display: none; }

  .panel-header { padding: 12px 16px; gap: 16px; }

  .panel-content { padding: 20px 16px 40px; }

  .contact-wrap { padding: 20px 16px 40px; }

  .panel-content h1,
  .contact-wrap h1 { font-size: 18px; }

  .metric-grid { gap: 10px; }

  .metric-number { font-size: 26px; }
}
