/* Google Chrome Official Style V7 - 2026 Edition */
:root {
  --google-blue: #1a73e8;
  --google-red: #ea4335;
  --google-yellow: #fbbc05;
  --google-green: #34a853;
  --google-blue-hover: #1765cc;
  --google-blue-light: #e8f0fe;
  --text-main: #202124;
  --text-secondary: #5f6368;
  --bg-white: #ffffff;
  --bg-gray: #f8f9fa;
  --border-light: #dadce0;
  --radius-std: 8px;
  --radius-lg: 24px;
  --radius-btn: 100px;
  --container-max: 1100px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
}

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

body {
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* Navigation */
.navbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--border-light);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 500;
  color: var(--text-main);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-item {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
}

.nav-item:hover, .nav-item.active {
  color: var(--google-blue);
  background: var(--google-blue-light);
}

/* Buttons */
.btn-primary {
  background: var(--google-blue);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--google-blue-hover);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--google-blue);
  padding: 9px 23px;
  border-radius: var(--radius-btn);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--border-light);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--google-blue-light);
  border-color: var(--google-blue);
}

/* Sections */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 44px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.chrome-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-gray);
  transition: var(--transition);
}

.chrome-card:hover {
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Article Entries */
.publish-entry {
  background: linear-gradient(135deg, var(--google-blue) 0%, #4285f4 100%);
  color: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.publish-entry h3 { font-size: 24px; margin-bottom: 8px; }
.publish-entry p { opacity: 0.9; font-size: 14px; }

/* Modal & Form */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(32,33,36,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 800px;
  border-radius: 16px;
  padding: 40px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.editor-toolbar {
  display: flex;
  gap: 10px;
  padding: 8px;
  background: var(--bg-gray);
  border: 1px solid var(--border-light);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.editor-btn {
  padding: 4px 8px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
}

.editor-content {
  width: 100%;
  height: 300px;
  padding: 16px;
  border: 1px solid var(--border-light);
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  outline: none;
  resize: none;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 24px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.breadcrumbs a {
  color: var(--google-blue);
  text-decoration: none;
}

.breadcrumbs span { margin: 0 8px; }

/* Footer */
.footer {
  background: var(--bg-gray);
  padding: 64px 0;
  border-top: 1px solid var(--border-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}

.footer-link {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 12px;
}

.footer-link:hover {
  color: var(--google-blue);
  text-decoration: underline;
}

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

.animate-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .section-title { font-size: 32px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .publish-entry { flex-direction: column; text-align: center; gap: 20px; }
}

/* Floating Google Elements */
.float-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.float-item {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(20px);
  animation: float-anim 20s infinite alternate ease-in-out;
}

.float-blue { background: var(--google-blue); width: 300px; height: 300px; top: 10%; left: -5%; animation-delay: 0s; }
.float-red { background: var(--google-red); width: 250px; height: 250px; top: 60%; right: -5%; animation-delay: -5s; }
.float-yellow { background: var(--google-yellow); width: 200px; height: 200px; bottom: 10%; left: 10%; animation-delay: -10s; }
.float-green { background: var(--google-green); width: 280px; height: 280px; top: 30%; right: 15%; animation-delay: -15s; }

@keyframes float-anim {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(30px, 50px) rotate(10deg) scale(1.1); }
  66% { transform: translate(-20px, 80px) rotate(-10deg) scale(0.9); }
  100% { transform: translate(40px, -30px) rotate(5deg) scale(1); }
}
