﻿/* Modern UI Enhancements for Portfolio */

/* Modern color scheme with gradients */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --success-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);

  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);

  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced card styling */
.archive__item {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.list__item {
  margin-bottom: 0.5rem;
}

/* Glassmorphism effect for sidebar */
.sidebar {
  backdrop-filter: blur(10px);
}

/* Modern button styles */
.btn--primary {
  background: var(--primary-gradient);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  box-shadow: var(--shadow-md);
}

/* Enhanced profile section */
.author__avatar img {
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--shadow-lg);
}

/* Modern tag/badge styling */
.page__taxonomy-item {
  background: var(--primary-gradient);
  color: white;
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-weight: 500;
  display: inline-block;
  margin: 0.3rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

/* Enhanced header styling */
.page__title {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Modern portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

/* Enhanced hover effects for portfolio items */
.archive__item-teaser {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.archive__item-teaser::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition);
}

.archive__item:hover .archive__item-teaser::after {
  opacity: 0.2;
}

/* Modern section headers */
.page__content h1 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.page__content h2 {
  position: relative;
  padding-bottom: 1rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.page__content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.page__content h4 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.page__content p {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.page__content ul,
.page__content ol {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page__content li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

.page__content hr {
  margin: 2rem 0;
  border: none;
  border-top: 2px solid rgba(102, 126, 234, 0.2);
}

.page__content > div {
  margin-bottom: 1rem;
}

.page__content h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* Enhanced link styling */
.page__content a:not(.btn) {
  color: #667eea;
  font-weight: 500;
  text-decoration: none;
  position: relative;
}

/* Modern social icons */
.author__urls .social-icons a {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 0.5rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.author__urls .social-icons a:hover {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

/* Enhanced code blocks */
.page__content pre {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.1);
}

/* Modern quote styling */
.page__content blockquote {
  border-left: 4px solid;
  border-image: var(--primary-gradient) 1;
  background: linear-gradient(90deg, rgba(102,126,234,0.05) 0%, transparent 100%);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}

/* Skill bars with gradients */
.skill-bar {
  height: 8px;
  background: #f0f0f0;
  border-radius: 10px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.skill-bar-fill {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 10px;
  transition: width 1s ease-out;
}

/* Modern timeline (for experience/education) */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  border: 3px solid #667eea;
  box-shadow: 0 0 0 3px rgba(102,126,234,0.2);
}

/* Enhanced footer */
.page__footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.page__footer a {
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
}

.page__footer a:hover {
  color: white;
}

/* Modern pagination */
.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.pagination a,
.pagination span {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pagination a:hover {
  background: var(--primary-gradient);
  color: white;
  box-shadow: var(--shadow-md);
}

/* Loading state */
.loading {
  position: relative;
  opacity: 0.5;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid rgba(102,126,234,0.3);
  border-left-color: #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 1rem;
  }
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #474747;
    --text-color: #ffffff;
  }

  .archive__item {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.1);
  }
}

/* Emoji styling */
.page__content img.emoji {
  display: inline-block;
  vertical-align: middle;
  margin: 0;
  width: 1.2em;
  height: 1.2em;
}

/* Enhanced table styling */
.page__content table {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.page__content thead {
  background: var(--primary-gradient);
  color: white;
}

.page__content tbody tr:hover {
  background: rgba(102,126,234,0.05);
}

/* Modern alert boxes */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  margin: 1.5rem 0;
  border-left: 4px solid;
}

.alert-info {
  background: rgba(79,172,254,0.1);
  border-color: #4facfe;
}

.alert-success {
  background: rgba(67,233,123,0.1);
  border-color: #43e97b;
}

.alert-warning {
  background: rgba(255,193,7,0.1);
  border-color: #ffc107;
}

