/* ==========================================
   Frontend Common Styles - Compiled from Sass
   headerView, footerView, indexView
   ========================================== */

body {
  font-family: "M PLUS 1p", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2937;
  line-height: 1.6;
}

#header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

#header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

#header .nav a {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}

#header .nav a img {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#header .nav a img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
}

.global_menu {
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 60px;
  z-index: 999;
}

.global_menu nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.global_menu nav ul li a {
  display: block;
  padding: 1rem 1.5rem;
  color: #1f2937;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.global_menu nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.global_menu nav ul li a:hover {
  color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.global_menu nav ul li a:hover::after {
  width: 80%;
}

.topLogo {
  text-align: center;
  padding: 3rem 0;
}

.topLogo img {
  max-width: 600px;
  width: 100%;
  height: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.topLogo img:hover {
  transform: scale(1.02);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
}

#indexGrid {
  display: grid;
  grid-template-columns: 300px 1fr 300px;
  gap: 2rem;
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem;
}

@media (max-width: 1200px) {
  #indexGrid {
    grid-template-columns: 1fr;
  }
}

#mainContainer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

#mainContainer > div {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

#mainContainer > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
  transition: left 0.5s ease;
}

#mainContainer > div:hover::before {
  left: 100%;
}

#mainContainer > div:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

#mainContainer > div a {
  text-decoration: none;
  color: inherit;
  display: block;
}

#mainContainer > div a h3,
#mainContainer > div a h5 {
  color: #1f2937;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

#mainContainer > div a h3 span,
#mainContainer > div a h5 span {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

#mainContainer > div a p {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0;
}

#mainContainer > div.beginner {
  background-size: cover !important;
  background-position: center !important;
}

#mainContainer > div.beginner a h5 {
  color: red;
  text-shadow: 2px 2px 3px white;
}

#mainContainer > div.beginner a p {
  color: white;
  text-shadow: 2px 2px 3px black;
}

#mainArea .alert {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#mainArea .alert.alert-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid #f59e0b;
}

#mainArea #mainSearch {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}

#mainArea #mainSearch:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

#mainArea #mainSearch .form-control {
  flex: 1;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mainArea #mainSearch .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  outline: none;
}

#mainArea #mainSearch .btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mainArea #mainSearch .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#mainArea .h1_header {
  color: #1f2937;
  font-weight: 700;
  font-size: 1.75rem;
  margin: 2rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid #667eea;
  position: relative;
}

#mainArea .h1_header::before {
  content: "📊";
  margin-right: 0.5rem;
}

#store {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

#store a {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  text-align: center;
}

#store a:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

#store a img {
  border-radius: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#store a h5 {
  color: #1f2937;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
}

#store a p {
  color: #6b7280;
  font-size: 0.875rem;
}

#storeplus {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  margin: 2rem 0;
}

#storeplus:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

#storeplus img {
  max-width: 100%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#storeplus img:hover {
  transform: scale(1.05);
}

#rightArea .req {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  text-decoration: none;
  margin-bottom: 2rem;
}

#rightArea .req:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

#rightArea .req h5 {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: red;
  font-weight: 700;
  padding: 1rem;
  border-radius: 0.5rem;
  margin: 0;
}

#rightArea .req p {
  margin: 1rem 0 0;
}

.footer-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-top: 4rem;
}

.footer-section .footer-heading {
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-section .footer-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

.footer-section .footer-links li a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

.footer-section .footer-links li a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-section .footer-links li a i {
  transition: transform 0.3s ease;
}

.footer-section .footer-links li a:hover i {
  transform: translateX(4px);
}

.footer-section .footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-section .footer-copyright .copyright-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-section .footer-copyright .copyright-link:hover {
  color: white;
}

#company {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 3rem auto;
}

#company:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

#company img {
  max-width: 100px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#company img:hover {
  transform: scale(1.1);
}

#company h4 {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

#company h4 a {
  color: #1f2937;
  text-decoration: none;
}

#company h4 a:hover {
  color: #667eea;
}

.badge {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-up {
  animation: slideInUp 0.6s ease-out;
}

#followme {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#followme a {
  padding: 1rem 2rem;
  border-radius: 1rem;
  text-decoration: none;
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#followme a i {
  font-size: 1.5rem;
}

#followme a:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

#followme a.fl_tw2 {
  background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

#followme a.fl_fb2 {
  background: linear-gradient(135deg, #1877f2 0%, #0c63d4 100%);
}

#followme a.fl_inst2 {
  background: linear-gradient(135deg, #e1306c 0%, #c13584 100%);
}

@media (max-width: 1200px) {
  #indexGrid {
    grid-template-columns: 1fr !important;
  }
  
  #header .nav {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .global_menu nav ul {
    flex-direction: column;
  }
  
  .global_menu nav ul li a {
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 768px) {
  .topLogo {
    padding: 2rem 0;
  }
  
  #indexGrid {
    padding: 1rem;
  }
  
  #mainContainer > div {
    padding: 1rem;
  }
  
  .footer-section .row {
    text-align: center;
  }
  
  .footer-section .footer-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  #company {
    flex-direction: column;
    text-align: center;
  }
}

.text-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shadow-soft {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shadow-strong {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tab-content .tab-pane {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 2rem;
}

.tab-content .tab-pane:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

#jNew {
  list-style: none;
  padding: 0;
}

#jNew li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #e5e7eb;
}

#jNew li:last-child {
  border-bottom: none;
}

#jNew li a {
  color: #1f2937;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

#jNew li a::before {
  content: "📰";
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

#jNew li a:hover {
  color: #667eea;
  transform: translateX(4px);
}

#tw {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 2rem 0;
}

#tw:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}
