/* Enhanced Internal Pages Styles - Modern Design */

/* Global Header Styles - Applied to ALL languages */
.following.bar {
  background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
  border-bottom: 2px solid #fd5f1c;
  box-shadow: 0 2px 8px rgba(253, 95, 28, 0.1);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.following.bar .ui.menu .item {
  color: #24292e;
  font-weight: 500;
  padding: 10px 16px;
  transition: all 0.2s ease;
  border-radius: 6px;
  margin: 0 4px;
}

.following.bar .ui.menu .item:hover {
  background: #f6f8fa;
  color: #fd5f1c;
}

.following.bar .ui.menu .item.active {
  color: #fd5f1c;
  font-weight: 600;
  background: rgba(253, 95, 28, 0.1);
}

.following.bar .ui.menu .brand {
  padding: 4px 12px;
  transition: all 0.2s ease;
}

.following.bar .ui.menu .brand:hover {
  transform: scale(1.05);
}

.following.bar .ui.menu .brand img {
  transition: all 0.2s ease;
}

/* Global Dropdown Styles */
.following.bar .ui.dropdown .menu {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid #e1e4e8;
  margin-top: 8px;
  overflow: hidden;
}

.following.bar .ui.dropdown .menu .item {
  padding: 10px 16px;
  transition: all 0.2s ease;
}

.following.bar .ui.dropdown .menu .item:hover {
  background: #f6f8fa;
  color: #fd5f1c;
  padding-right: 20px;
}

/* User Avatar */
.following.bar .ui.dropdown .text.avatar img {
  border: 2px solid #fd5f1c;
  transition: all 0.2s ease;
}

.following.bar .ui.dropdown .text.avatar:hover img {
  box-shadow: 0 0 0 3px rgba(253, 95, 28, 0.2);
}

/* Global Footer Styles - Applied to ALL languages */
footer {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  color: #fff;
  padding: 20px 0;
  height: auto !important;
  margin-top: 60px;
  border-top: 3px solid #fd5f1c;
}

footer .ui.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

footer .ui.left {
  font-size: 14px;
  opacity: 0.9;
}

footer .ui.right {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

footer .ui.right a {
  color: #fff;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 6px 12px;
  border-radius: 6px;
}

footer .ui.right a:hover {
  color: #fd5f1c;
  background: rgba(253, 95, 28, 0.1);
}

footer .ui.right .fa {
  font-size: 20px;
  transition: all 0.2s ease;
}

footer .ui.right .fa:hover {
  transform: scale(1.2);
  color: #fd5f1c;
}

/* Language Dropdown in Footer */
footer .ui.language.dropdown {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

footer .ui.language.dropdown:hover {
  background: rgba(253, 95, 28, 0.2);
  border-color: #fd5f1c;
}

footer .ui.language.dropdown .menu {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

footer .ui.language.dropdown .menu .item {
  color: #24292e;
  padding: 10px 16px;
}

footer .ui.language.dropdown .menu .item:hover {
  background: #f6f8fa;
  color: #fd5f1c;
}

footer .ui.language.dropdown .menu .item.active {
  background: rgba(253, 95, 28, 0.1);
  color: #fd5f1c;
  font-weight: 600;
}

/* Admin Dashboard */
.admin-dashboard .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.admin-dashboard .stat-card {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.admin-dashboard .stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #fd5f1c 0%, #ff8c42 100%);
}

.admin-dashboard .stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(253, 95, 28, 0.15);
  border-color: #fd5f1c;
}

.admin-dashboard .stat-card .stat-icon {
  width: 48px;
  height: 48px;
  background: rgba(253, 95, 28, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.admin-dashboard .stat-card .stat-icon .octicon {
  font-size: 24px;
  color: #fd5f1c;
}

.admin-dashboard .stat-card .stat-value {
  font-size: 2em;
  font-weight: 700;
  color: #24292e;
  margin-bottom: 8px;
}

.admin-dashboard .stat-card .stat-label {
  color: #586069;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* User Dashboard */
.user-dashboard .welcome-banner {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #fd5f1c 100%);
  border-radius: 12px;
  padding: 40px;
  color: #fff;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.user-dashboard .welcome-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(253, 95, 28, 0.1);
  border-radius: 50%;
}

.user-dashboard .welcome-banner h2 {
  font-size: 2em;
  font-weight: 700;
  margin: 0 0 12px 0;
  position: relative;
  z-index: 1;
}

.user-dashboard .welcome-banner p {
  font-size: 1.1em;
  opacity: 0.9;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Profile Page */
.profile-page .profile-header {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #fd5f1c 100%);
  border-radius: 12px;
  padding: 40px;
  color: #fff;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.profile-page .profile-header .avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-page .profile-header .profile-info h1 {
  font-size: 2.5em;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.profile-page .profile-header .profile-info .username {
  font-size: 1.2em;
  opacity: 0.9;
  margin-bottom: 16px;
}

.profile-page .profile-header .profile-stats {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.profile-page .profile-header .profile-stats .stat {
  display: flex;
  gap: 8px;
}

.profile-page .profile-header .profile-stats .stat-value {
  font-weight: 700;
}

.profile-page .profile-header .profile-stats .stat-label {
  opacity: 0.8;
}

/* Explore Page */
.explore-page .filter-bar {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.explore-page .filter-bar .ui.input {
  flex: 1;
  min-width: 200px;
}

.explore-page .filter-bar .ui.input input {
  border-radius: 6px;
  border: 1px solid #d1d5da;
}

.explore-page .filter-bar .ui.input input:focus {
  border-color: #fd5f1c;
  box-shadow: 0 0 0 3px rgba(253, 95, 28, 0.1);
}

/* Repository List */
.repo-list .repo-item {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  display: flex;
  gap: 16px;
}

.repo-list .repo-item:hover {
  border-color: #fd5f1c;
  box-shadow: 0 4px 12px rgba(253, 95, 28, 0.15);
  transform: translateX(4px);
}

html[lang="fa"] .repo-list .repo-item:hover {
  transform: translateX(-4px);
}

.repo-list .repo-item .repo-icon {
  width: 48px;
  height: 48px;
  background: rgba(253, 95, 28, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.repo-list .repo-item .repo-icon .octicon {
  font-size: 24px;
  color: #fd5f1c;
}

.repo-list .repo-item .repo-details {
  flex: 1;
}

.repo-list .repo-item .repo-name {
  font-size: 1.3em;
  font-weight: 600;
  color: #fd5f1c;
  margin: 0 0 8px 0;
}

.repo-list .repo-item .repo-name a {
  color: inherit;
  text-decoration: none;
}

.repo-list .repo-item .repo-name a:hover {
  text-decoration: underline;
}

.repo-list .repo-item .repo-description {
  color: #586069;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.repo-list .repo-item .repo-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #586069;
}

.repo-list .repo-item .repo-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.repo-list .repo-item .repo-meta .meta-item .octicon {
  font-size: 16px;
}

/* Issue List */
.issue-list .issue-item {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.issue-list .issue-item:hover {
  border-color: #fd5f1c;
  box-shadow: 0 2px 8px rgba(253, 95, 28, 0.15);
}

.issue-list .issue-item .issue-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.issue-list .issue-item .issue-header .issue-icon {
  font-size: 20px;
  color: #28a745;
  flex-shrink: 0;
}

.issue-list .issue-item .issue-header .issue-icon.closed {
  color: #dc3545;
}

.issue-list .issue-item .issue-header .issue-title {
  font-size: 1.2em;
  font-weight: 600;
  color: #24292e;
  flex: 1;
}

.issue-list .issue-item .issue-header .issue-number {
  color: #586069;
  font-size: 14px;
}

.issue-list .issue-item .issue-body {
  color: #586069;
  font-size: 14px;
  line-height: 1.6;
  margin-left: 32px;
}

html[lang="fa"] .issue-list .issue-item .issue-body {
  margin-left: 0;
  margin-right: 32px;
}

/* Settings Pages */
.settings-page .settings-nav {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.settings-page .settings-nav .ui.menu {
  border: none;
  box-shadow: none;
}

.settings-page .settings-nav .ui.menu .item {
  border-radius: 6px;
  margin-bottom: 4px;
  transition: all 0.2s ease;
}

.settings-page .settings-nav .ui.menu .item:hover {
  background: #f6f8fa;
  color: #fd5f1c;
}

.settings-page .settings-nav .ui.menu .item.active {
  background: rgba(253, 95, 28, 0.1);
  color: #fd5f1c;
  font-weight: 600;
}

.settings-page .settings-content {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.settings-page .settings-content h3 {
  font-size: 1.5em;
  font-weight: 600;
  color: #24292e;
  margin: 0 0 24px 0;
  padding-bottom: 16px;
  border-bottom: 2px solid #fd5f1c;
}

/* Tabs Enhancement */
.ui.tabular.menu .item {
  border-radius: 6px 6px 0 0;
  transition: all 0.2s ease;
}

.ui.tabular.menu .item:hover {
  background: #f6f8fa;
  color: #fd5f1c;
}

.ui.tabular.menu .item.active {
  color: #fd5f1c;
  font-weight: 600;
  border-bottom-color: #fff;
}

/* Search Results */
.search-results .result-item {
  background: #fff;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
}

.search-results .result-item:hover {
  border-color: #fd5f1c;
  box-shadow: 0 2px 8px rgba(253, 95, 28, 0.15);
}

.search-results .result-item .result-title {
  font-size: 1.2em;
  font-weight: 600;
  color: #fd5f1c;
  margin: 0 0 8px 0;
}

.search-results .result-item .result-title a {
  color: inherit;
  text-decoration: none;
}

.search-results .result-item .result-title a:hover {
  text-decoration: underline;
}

/* Notification Badges */
.notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #fd5f1c;
  color: #fff;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 8px;
}

html[lang="fa"] .notification-badge {
  margin-left: 0;
  margin-right: 8px;
}

/* Progress Bars */
.ui.progress {
  border-radius: 8px;
  overflow: hidden;
}

.ui.progress .bar {
  background: linear-gradient(135deg, #fd5f1c 0%, #ff8c42 100%);
}

/* Labels and Tags */
.ui.label {
  border-radius: 6px;
  font-weight: 500;
}

.ui.label.primary {
  background: linear-gradient(135deg, #fd5f1c 0%, #ff8c42 100%);
}

/* Tables */
.ui.table {
  border-radius: 8px;
  border: 1px solid #e1e4e8;
}

.ui.table thead th {
  background: #f6f8fa;
  color: #24292e;
  font-weight: 600;
  border-bottom: 2px solid #fd5f1c;
}

.ui.table tbody tr {
  transition: all 0.2s ease;
}

.ui.table tbody tr:hover {
  background: rgba(253, 95, 28, 0.05);
}

/* Pagination */
.ui.pagination.menu .item {
  transition: all 0.2s ease;
}

.ui.pagination.menu .item:hover {
  color: #fd5f1c;
  background: #f6f8fa;
}

.ui.pagination.menu .item.active {
  background: linear-gradient(135deg, #fd5f1c 0%, #ff8c42 100%);
  color: #fff;
  border-color: #fd5f1c;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: #f6f8fa;
  border: 2px dashed #d1d5da;
  border-radius: 12px;
}

.empty-state .empty-icon {
  width: 80px;
  height: 80px;
  background: rgba(253, 95, 28, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.empty-state .empty-icon .octicon {
  font-size: 40px;
  color: #fd5f1c;
}

.empty-state h3 {
  font-size: 1.5em;
  font-weight: 600;
  color: #24292e;
  margin: 0 0 8px 0;
}

.empty-state p {
  color: #586069;
  font-size: 16px;
  margin: 0 0 24px 0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-page .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .admin-dashboard .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .repo-list .repo-item {
    flex-direction: column;
  }
  
  footer .ui.container {
    flex-direction: column;
    text-align: center;
  }
  
  footer .ui.right {
    justify-content: center;
  }
  
  .following.bar .ui.menu .item {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* Print Styles */
@media print {
  .following.bar,
  footer {
    display: none;
  }
}

/* Scrollbar Styling - All languages */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb {
  background: #fd5f1c;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e8550f;
}
