/* Shared Header and Footer Styles for All Quizzes */

/* CSS Variables */
:root {
  --primary-color: #3a6ea5;
  --secondary-color: #2c3e50;
  --background-color: #f4f7f6;
  --text-color: #333;
  --accent-color: #2980b9;
  --light-background: #ffffff;
  --soft-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* Header Styles */
header {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 2rem;
}

.profile-image {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  margin: 0.5rem;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.profile-image:hover img {
  transform: scale(1.05);
}

.headline {
  text-align: left;
  padding: 0.5rem 0;
}

.headline h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 3.2rem;
  color: #0077b5;
  margin-bottom: 0.5rem;
}

.headline p {
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 400;
}

.headline .highlight {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
}

.nav-social-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

header nav {
  display: flex;
  justify-content: flex-end;
}

header nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

header nav ul li a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 0.95rem;
  position: relative;
}

header nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width 0.3s ease, left 0.3s ease;
}

header nav ul li a:hover {
  color: var(--primary-color);
}

header nav ul li a:hover::after {
  width: 80%;
  left: 10%;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-left: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--secondary-color);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-icon.linkedin {
  background-color: rgba(0, 119, 181, 0.1);
}

.social-icon.linkedin:hover {
  background-color: #0077b5;
  color: white;
}

.social-icon.youtube {
  background-color: rgba(255, 0, 0, 0.1);
}

.social-icon.youtube:hover {
  background-color: #ff0000;
  color: white;
}

.social-icon.facebook {
  background-color: rgba(24, 119, 242, 0.1);
}

.social-icon.facebook:hover {
  background-color: #1877f2;
  color: white;
}

/* Footer Styles */
footer {
  background-color: #2c3e50;
  color: white;
  padding: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 2rem;
}

.footer-info {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-info p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.footer-social h4, .footer-share h4 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.social-icons-footer {
  display: flex;
  gap: 1rem;
}

.social-icons-footer .social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icons-footer .social-icon:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.social-icons-footer .linkedin:hover {
  background-color: #0077b5;
}

.social-icons-footer .youtube:hover {
  background-color: #ff0000;
}

.social-icons-footer .facebook:hover {
  background-color: #1877f2;
}

.social-icons-footer .github:hover {
  background-color: #333;
}

.share-buttons {
  display: flex;
  gap: 1rem;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.share-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.share-btn.facebook:hover {
  background-color: #1877f2;
}

.share-btn.twitter:hover {
  background-color: #1da1f2;
}

.share-btn.linkedin:hover {
  background-color: #0077b5;
}

.share-btn.email:hover {
  background-color: #ea4335;
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 900px) {
  header {
    padding: 0.8rem 1rem;
  }

  .header-content {
    flex-direction: column;
    padding: 0.5rem;
  }

  .header-left {
    width: 100%;
    margin-bottom: 1rem;
    padding-right: 0;
    justify-content: center;
  }

  .profile-image {
    width: 100px;
    height: 100px;
    margin: 0.5rem 1rem 0.5rem 0;
  }

  .headline {
    text-align: left;
  }

  .headline h1 {
    font-size: 2.8rem;
  }

  .nav-social-container {
    width: 100%;
    justify-content: center;
    padding: 0.8rem;
  }
}

@media (max-width: 600px) {
  .header-left {
    flex-direction: column;
    align-items: center;
  }

  .profile-image {
    margin: 0 0 1rem 0;
  }

  .headline {
    text-align: center;
  }

  .nav-social-container {
    flex-direction: column;
    gap: 1rem;
  }

  .social-icons {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .social-icons-footer, .share-buttons {
    justify-content: center;
  }
}
