/**
 * Portfolio component styles
 * Peak AI Design theme - Clear background, dark text
 */

/* Portfolio Detail (Full view) */
.portfolio-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.portfolio-hero {
  margin-bottom: 2rem;
  border: 1px solid rgba(77, 163, 255, 0.25);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px;
}

.portfolio-hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.portfolio-header {
  margin-bottom: 2rem;
}

.portfolio-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #0b1c2d;
  margin: 0 0 1.5rem 0;
  line-height: 1.2;
}

.portfolio-meta {
  display: grid;
  gap: 0.75rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(77, 163, 255, 0.15);
}

.portfolio-meta__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  color: #1a3350;
}

.portfolio-meta__label {
  font-weight: 600;
  color: #0b1c2d;
  min-width: 100px;
}

.portfolio-meta__item .field__item {
  display: inline;
  color: #1a3350;
}

/* Technology tags */
.technology-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.technology-tags .field__item {
  background: rgba(31, 79, 216, 0.1);
  color: #1f4fd8;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(31, 79, 216, 0.2);
}

/* Project URL link */
.portfolio-url a {
  display: inline-block;
  background: #1f4fd8;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s;
}

.portfolio-url a:hover {
  background: #4da3ff;
  box-shadow: 0 0 20px rgba(77, 163, 255, 0.3);
  color: #ffffff;
}

/* Portfolio content (body) */
.portfolio-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #1a3350;
}

.portfolio-content h2 {
  font-size: 1.75rem;
  color: #0b1c2d;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.portfolio-content h3 {
  font-size: 1.35rem;
  color: #0b1c2d;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.portfolio-content p {
  color: #1a3350;
}

.portfolio-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.portfolio-content li {
  margin-bottom: 0.5rem;
  color: #1a3350;
}

.portfolio-content strong {
  color: #1f4fd8;
}

.portfolio-content a {
  color: #1f4fd8;
}

.portfolio-content a:hover {
  color: #4da3ff;
}

/* Back link */
.portfolio-back {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(77, 163, 255, 0.15);
}

.portfolio-back__link {
  color: #1f4fd8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.portfolio-back__link:hover {
  color: #4da3ff;
}

/* Portfolio Teaser (Listing view) */
.portfolio-teaser {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(77, 163, 255, 0.15);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.portfolio-teaser:hover {
  border-color: #4da3ff;
  box-shadow: 0 8px 30px rgba(77, 163, 255, 0.2);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
}

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

.portfolio-teaser__image {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(77, 163, 255, 0.15);
}

.portfolio-teaser__image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.portfolio-teaser:hover .portfolio-teaser__image img {
  transform: scale(1.05);
}

.portfolio-teaser__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.portfolio-teaser__title {
  font-size: 1.5rem;
  margin: 0;
}

.portfolio-teaser__title a {
  color: #0b1c2d;
  text-decoration: none;
  transition: color 0.2s;
}

.portfolio-teaser__title a:hover {
  color: #1f4fd8;
}

.portfolio-teaser__client {
  color: #1a3350;
  font-size: 0.95rem;
}

.portfolio-teaser__client .field__item {
  color: #1a3350;
}

.portfolio-teaser__category a {
  display: inline-block;
  background: rgba(31, 79, 216, 0.1);
  color: #1f4fd8;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid rgba(31, 79, 216, 0.2);
}

.portfolio-teaser__category a:hover {
  background: rgba(31, 79, 216, 0.2);
}

.portfolio-teaser__summary {
  color: #1a3350;
  line-height: 1.6;
  flex-grow: 1;
}

.portfolio-teaser__summary p {
  color: #1a3350;
}

.portfolio-teaser__link {
  color: #1f4fd8;
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
}

.portfolio-teaser__link:hover {
  color: #4da3ff;
}

/* Portfolio view (listing page) */
.view-portfolio {
  padding: 1rem 0;
}

.view-portfolio .view-filters {
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  border: 1px solid rgba(77, 163, 255, 0.15);
}

.view-portfolio .view-filters form {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.view-portfolio .view-filters label {
  font-weight: 600;
  color: #0b1c2d;
}

.view-portfolio .view-filters select {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(77, 163, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: #1a3350;
}

.view-portfolio .view-filters .button {
  background: #1f4fd8;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s;
}

.view-portfolio .view-filters .button:hover {
  background: #4da3ff;
  box-shadow: 0 0 20px rgba(77, 163, 255, 0.3);
}

/* View empty state */
.view-portfolio .view-empty {
  text-align: center;
  padding: 3rem;
  color: #1a3350;
}
