/* Professional Color Theme for SoftPort */

:root {
  /* Professional modern color palette */
  --primary-color: #2563eb;       /* Rich blue - more sophisticated */
  --secondary-color: #10b981;     /* Emerald green - professional and fresh */
  --accent-color: #f59e0b;        /* Amber - warmer and more sophisticated */
  --accent-secondary: #4f46e5;    /* Indigo - complementary to primary */
  
  /* Status colors */
  --success-color: #10b981;       /* Emerald - matching secondary */
  --warning-color: #f59e0b;       /* Amber - matching accent */
  --danger-color: #ef4444;        /* Modern red - slightly softer */
  
  /* Neutral colors */
  --light-color: #f9fafb;         /* Off-white - easier on the eyes */
  --dark-color: #1e293b;          /* Slate-blue dark - softer than black */
  --gray-color: #64748b;          /* Slate gray - professional */
  --text-color: #334155;          /* Slate - professional text color */
  
  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  --secondary-gradient: linear-gradient(135deg, #10b981 0%, #0ea5e9 100%);
  
  /* Card and container backgrounds */
  --card-bg: #ffffff;
  --body-bg: #f8fafc;
  --footer-bg: #1e293b;
  --navbar-link-hover: rgba(255, 255, 255, 0.15);
  
  /* Drop shadows */
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --hover-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Body background */
body {
  background-color: var(--body-bg);
  color: var(--text-color);
}

/* Navbar styling */
.navbar {
  background: var(--primary-gradient);
  box-shadow: var(--box-shadow);
}

/* Footer styling */
footer {
  background-color: var(--footer-bg);
  color: #e2e8f0;
}

footer a {
  color: #e2e8f0;
  transition: color 0.2s;
}

footer a:hover {
  color: #ffffff;
}

/* Card styling */
.card {
  background-color: var(--card-bg);
  border: none;
  border-radius: 0.5rem;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--hover-shadow);
  transform: translateY(-2px);
}

/* Button styling */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: #1d4ed8; /* Darker shade of primary */
  border-color: #1d4ed8;
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.btn-secondary:hover, .btn-secondary:focus {
  background-color: #059669; /* Darker shade of secondary */
  border-color: #059669;
}

/* Link styling */
a {
  color: var(--primary-color);
  transition: color 0.2s;
}

a:hover {
  color: #1d4ed8; /* Darker shade of primary */
}

/* Table styling */
.table {
  border-color: #e2e8f0;
}

.table thead th {
  background-color: #f1f5f9;
  border-bottom: 2px solid #e2e8f0;
}

/* Component-specific overrides */
.dropdown-menu-dark {
  background-color: var(--dark-color);
  border-color: rgba(255, 255, 255, 0.15);
}

.dropdown-menu-dark .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Custom section headers */
.section-header {
  position: relative;
  color: var(--dark-color);
  padding-bottom: 0.5rem;
  font-size: var(--h1-size);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.section-header::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 50px;
  background: var(--primary-gradient);
  border-radius: 3px;
}

/* Form control styling */
.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.25);
}

/* Alert styling */
.alert-primary {
  background-color: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.3);
  color: var(--primary-color);
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--secondary-color);
}

/* Badge styling */
.badge-primary {
  background-color: var(--primary-color);
}

.badge-secondary {
  background-color: var(--secondary-color);
}

/* Add subtle animations */
.btn, .card, .nav-link {
  transition: all 0.3s ease;
}

/* Software cards enhancement */
.software-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.software-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.software-card .card-body {
  padding: 1.5rem;
}

.software-card .card-title {
  color: var(--dark-color);
  font-weight: 600;
}

.software-card .card-img-top {
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Enhanced navbar appearance */
.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar-brand strong {
  font-weight: 800;
}

.navbar .nav-item {
  margin: 0 2px;
}

.navbar .nav-link {
  position: relative;
  font-weight: 500;
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  opacity: 0;
}

.navbar .nav-link:hover::after {
  width: 50%;
  opacity: 1;
}

/* Footer enhancement */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer h5 {
  font-weight: 600;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 30px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  position: relative;
  display: inline-block;
  padding-left: 0;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  padding-left: 5px;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

/* Form enhancements */
.form-control {
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.input-group .btn {
  border-top-right-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Main content enhancement */
.main-content {
  padding-top: 2rem;
  margin-bottom: 2rem;
}

/* Enhance dropdowns */
.dropdown-menu {
  border-radius: 0.5rem;
  padding: 0.5rem;
  margin-top: 0.5rem;
  border: none;
  box-shadow: var(--box-shadow);
}

/* ======= BEGIN: INTEGRATED PROFESSIONAL-ELEMENTS.CSS ======= */
/* Professional UI Elements - Additional Styles */

/* Enhanced Button Styles */
.btn {
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  letter-spacing: 0.3px;
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
}

.btn-outline-primary {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Badge Enhancements */
.badge {
  font-weight: 500;
  padding: 0.35em 0.65em;
  border-radius: 50rem;
}

/* Tag styling */
.tag {
  display: inline-block;
  background-color: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  padding: 0.35em 0.75em;
  border-radius: 50rem;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.tag:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Rating stars */
.rating {
  color: #f59e0b;
}

/* Software version info */
.version-info {
  background-color: #f1f5f9;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary-color);
}

.version-info h6 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Download button enhancements */
.download-btn {
  background: var(--primary-gradient);
  color: white;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.25);
  transition: all 0.3s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(37, 99, 235, 0.3);
}

.download-btn i {
  margin-right: 0.5rem;
}

/* Featured software container */
.featured-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  padding: 2rem;
  background: linear-gradient(to right, rgba(30, 41, 59, 0.95), rgba(30, 41, 59, 0.8)),
              url('/images/featured-bg.jpg') no-repeat center center;
  background-size: cover;
  color: white;
  margin-bottom: 2rem;
}

.featured-container h2 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.featured-container p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

/* Notification badge */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: var(--danger-color);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Page header */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.page-header h1 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--gray-color);
  margin-bottom: 0;
}

/* Category pills */
.category-pill {
  background-color: #f1f5f9;
  color: var(--dark-color);
  transition: all 0.3s ease;
}

.category-pill:hover {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Software details page */
.software-detail-header {
  margin-bottom: 2rem;
}

.software-detail-header h1 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.software-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--gray-color);
}

.software-meta > div {
  margin-right: 1.5rem;
  display: flex;
  align-items: center;
}

.software-meta i {
  margin-right: 0.35rem;
}

/* Progress bars */
.progress {
  height: 0.5rem;
  border-radius: 1rem;
  background-color: #e2e8f0;
  margin-bottom: 0.5rem;
}

.progress-bar {
  border-radius: 1rem;
  background: var(--primary-gradient);
}

/* Clean dividers */
.divider {
  height: 1px;
  background-color: #e2e8f0;
  margin: 2rem 0;
}

/* Better tables */
.table td, .table th {
  padding: 1rem;
  vertical-align: middle;
}

/* File type icons */
.file-icon {
  width: 40px;
  height: 40px;
  border-radius: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  margin-right: 0.75rem;
  font-size: 1.25rem;
}

.file-icon.pdf {
  color: #ef4444;
}

.file-icon.doc {
  color: #2563eb;
}

.file-icon.zip {
  color: #f59e0b;
}

.file-icon.exe {
  color: #10b981;
}
/* ======= END: INTEGRATED PROFESSIONAL-ELEMENTS.CSS ======= */

/* ======= BEGIN: INTEGRATED PROFESSIONAL-ANIMATIONS.CSS ======= */
/* Professional Animations and Effects */

/* Button hover effects */
.btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.btn:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Image hover effects */
.img-hover-zoom {
  overflow: hidden;
  border-radius: 0.5rem;
}

.img-hover-zoom img {
  transition: transform 0.5s ease;
}

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

/* Badge pulse effect */
.badge-new {
  position: relative;
}

.badge-new::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 50rem;
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Hover focus effect for input fields */
.form-control:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* Link hover effects */
.hover-underline {
  position: relative;
  text-decoration: none;
}

.hover-underline::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--primary-color);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

.hover-underline:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Subtle element fade-in for page load */
.fade-in-element {
  animation: fadeInElement 0.8s ease-in forwards;
  opacity: 0;
}

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

/* Staggered animation delays for lists */
.stagger-item:nth-child(1) {
  animation-delay: 0.1s;
}
.stagger-item:nth-child(2) {
  animation-delay: 0.2s;
}
.stagger-item:nth-child(3) {
  animation-delay: 0.3s;
}
.stagger-item:nth-child(4) {
  animation-delay: 0.4s;
}
.stagger-item:nth-child(5) {
  animation-delay: 0.5s;
}
.stagger-item:nth-child(6) {
  animation-delay: 0.6s;
}
.stagger-item:nth-child(7) {
  animation-delay: 0.7s;
}
.stagger-item:nth-child(8) {
  animation-delay: 0.8s;
}

/* Smooth button click effects */
.btn:active {
  transform: scale(0.98);
}

/* Navigation highlight effect */
.nav-highlight {
  position: relative;
}

.nav-highlight::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.nav-highlight:hover::before {
  transform: scaleX(1);
}

/* Loader animation */
.loader {
  width: 48px;
  height: 48px;
  border: 5px solid rgba(37, 99, 235, 0.2);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tooltip hover effect */
.tooltip-effect {
  position: relative;
}

.tooltip-effect::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  background-color: var(--dark-color);
  color: white;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tooltip-effect::after {
  content: '';
  position: absolute;
  bottom: calc(100% - 5px);
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--dark-color) transparent transparent transparent;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.tooltip-effect:hover::before,
.tooltip-effect:hover::after {
  opacity: 1;
  visibility: visible;
}
/* ======= END: INTEGRATED PROFESSIONAL-ANIMATIONS.CSS ======= */
