/* i18n.css - Общие стили для всех страниц Excel Helper */

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

.container { max-width: 1000px; margin: 0 auto; }

/* Header Container */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 15px;
}

.header-title { flex: 1; text-align: center; }

.header-title h1 {
  color: white;
  text-align: center;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* Language Selector */
.language-selector {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.language-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 5px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  min-width: 150px;
  z-index: 1000;
  overflow: hidden;
}

.language-dropdown.show {
  display: block;
}

.language-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 15px;
  background: none;
  border: none;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  text-align: left;
}

.language-dropdown button:hover {
  background: #f5f5f5;
}

.language-dropdown button.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.lang-flag {
  font-size: 18px;
}

/* Home Button */
.home-btn {
  color: white;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.25);
  font-size: 18px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Subtitle */
.subtitle {
  text-align: center;
  color: rgba(255,255,255,0.9);
  font-size: 14px;
  margin-bottom: 30px;
}

/* Card */
.card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  margin-bottom: 20px;
}

.card h2 {
  color: #667eea;
  margin-bottom: 20px;
  font-size: 1.4rem;
  border-bottom: 2px solid #667eea;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card h3 { color: #333; margin: 20px 0 15px 0; font-size: 1.1rem; }

.card p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 15px;
  text-align: justify;
}

.card ul {
  color: #555;
  line-height: 1.8;
  margin-left: 25px;
  margin-bottom: 15px;
}

.card li { margin-bottom: 8px; }

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.highlight-box h4 { margin-bottom: 10px; font-size: 1.1rem; }
.highlight-box p { color: rgba(255,255,255,0.95); text-align: left; }

/* Warning Box */
.warning-box {
  background: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 15px 20px;
  border-radius: 8px;
  margin: 20px 0;
}
.warning-box p { color: #856404; text-align: left; margin: 0; }

/* Success Box */
.success-box {
  background: #d4edda;
  border-left: 4px solid #28a745;
  padding: 15px 20px;
  border-radius: 8px;
  margin: 20px 0;
}
.success-box p { color: #155724; text-align: left; margin: 0; }

/* Danger Box */
.danger-box {
  background: #f8d7da;
  border-left: 4px solid #dc3545;
  padding: 15px 20px;
  border-radius: 8px;
  margin: 20px 0;
}
.danger-box p { color: #721c24; text-align: left; margin: 0; }

/* Law Section */
.law-section {
  background: #f8f9ff;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.law-section h4 { color: #667eea; margin-bottom: 15px; font-size: 1.1rem; }
.law-section p { color: #555; text-align: left; }
.law-section ul { margin-left: 20px; }
.law-section li { margin-bottom: 10px; }

/* Back Link */
.back-link {
  text-align: center;
  margin-top: 20px;
}

.back-link a {
  color: white;
  text-decoration: none;
  background: rgba(255,255,255,0.2);
  padding: 12px 30px;
  border-radius: 8px;
  transition: all 0.3s;
  display: inline-block;
}

.back-link a:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

/* Footer */
footer {
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 20px 25px;
  margin-top: 30px;
  text-align: center;
  color: rgba(255,255,255,0.8);
}

footer p { margin: 5px 0; font-size: 13px; }

footer a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

footer a:hover { opacity: 0.8; }

.footer-divider {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin: 15px 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  max-width: 100px;
  height: auto;
  border-radius: 8px;
  background: rgba(255,255,255,0.95);
  padding: 5px;
  margin-bottom: 10px;
  transition: transform 0.3s;
}

.footer-logo:hover { transform: scale(1.05); }

/* Notice Banner (for IP pages) */
.notice-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  text-align: center;
}

.notice-banner h3 { margin-bottom: 10px; font-size: 1.3rem; }
.notice-banner p { color: rgba(255,255,255,0.95); font-size: 14px; }

/* Responsive */
@media (max-width: 768px) {
  .card { padding: 20px; }
  .card h2 { font-size: 1.2rem; }
  
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .language-selector {
    width: 100%;
    justify-content: center;
  }
  
  .language-dropdown {
    right: 50%;
    transform: translateX(50%);
  }
}
