/* 
 * Footer Styles for Yi Theme
 * 
 * A stylish footer design with navy blue, light blue and white color scheme
 */

/* Color Variables */
:root {
  --footer-primary: #2e4e7e;
  --footer-secondary: #1a3460;
  --footer-accent: #87ceeb;
  --footer-accent-hover: #5a7fb8;
  --footer-text: #ffffff;
  --footer-text-light: #e8f4f8;
}

/* Main Footer Styles */
.footer {
  background: linear-gradient(135deg, var(--footer-primary) 0%, var(--footer-secondary) 100%);
  color: var(--footer-text);
  padding: 60px 0 30px;
  font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow: 0 -4px 20px rgba(46, 78, 126, 0.2);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--footer-accent), var(--footer-accent-hover), var(--footer-accent));
}

.footer::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(135, 206, 235, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

/* Section Styles */
.footer-section {
  margin-bottom: 30px;
}

.footer-section h3 {
  color: var(--footer-accent);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--footer-accent);
}

.footer-section p {
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--footer-text-light);
  font-size: 0.95rem;
}

/* List Styles */
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

/* Link Styles */
.footer-link {
  color: var(--footer-text-light);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer-link:hover {
  color: var(--footer-accent);
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--footer-accent);
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

/* Social Media Links */
.social-media-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-media-links li {
  margin-right: 5px;
}

.footer-social-link {
  color: var(--footer-text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  display: inline-block;
  position: relative;
  border: 1px solid transparent;
}

.footer-social-link:hover {
  color: var(--footer-accent);
  background: rgba(135, 206, 235, 0.15);
  border-color: var(--footer-accent);
  transform: translateY(-2px);
}

/* Platform-specific styling */
.footer-social-link[aria-label="Facebook"]:hover {
  background: rgba(24, 119, 242, 0.2);
  border-color: #1877f2;
  color: #1877f2;
}

.footer-social-link[aria-label="YouTube"]:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: #ff0000;
  color: #ff0000;
}

.footer-social-link[aria-label="Medium"]:hover {
  background: rgba(0, 0, 0, 0.2);
  border-color: #000000;
  color: #ffffff;
}

.footer-social-link[aria-label="Substack"]:hover {
  background: rgba(255, 101, 19, 0.2);
  border-color: #ff6513;
  color: #ff6513;
}

.footer-social-link[aria-label="Academia"]:hover {
  background: rgba(65, 105, 225, 0.2);
  border-color: #4169e1;
  color: #4169e1;
}

/* Copyright Section */
.footer-section:last-child {
  grid-column: 1 / -1;
  border-top: 1px solid var(--footer-accent-hover);
  padding-top: 20px;
  margin-top: 10px;
  text-align: center;
}

.footer-section:last-child p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.footer-section:last-child ul {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-section:last-child ul li {
  margin-bottom: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
  }
  
  .social-media-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
  }
  
  .footer-social-link {
    text-align: center;
    padding: 10px 8px;
    font-size: 0.85rem;
  }
  
  .footer-section:last-child ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 40px 0 20px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  
  .footer-section h3 {
    font-size: 1.1rem;
  }
  
  .social-media-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .footer-social-link {
    padding: 12px 8px;
    font-size: 0.8rem;
  }
}
