/* ============================================
   COMPONENTS
   Cards, Buttons, Lists, Gallery
   ============================================ */

/* Card */
.card {
  /* No background, border - clean centered text only */
  padding: var(--space-md) 0 var(--space-xl);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out-expo);
  border: none;
}

.btn-primary {
  background: var(--accent-green);
  color: white !important;
}

.btn-primary:hover {
  background: var(--accent-green-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary) !important;
  border: 1px solid var(--border-default);
}

.btn-secondary:hover {
  background: var(--border-default);
  border-color: var(--text-muted);
}

.btn-large {
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
}

/* About section */
.about-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.about-content {
  overflow: auto;
}

.about-photo {
  float: right;
  width: 240px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-default);
  margin-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.about-content::after {
  content: '';
  display: table;
  clear: both;
}

.about-intro {
  font-size: 1.0625rem;
  color: var(--text-primary);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

/* Github card */
.github-card {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.github-card p {
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
}

/* education list - expandable education items */
.career-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.career-item {
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-muted);
  border-radius: 0;
  overflow: hidden;
}

.career-item:last-child {
  border-bottom: none;
}

.career-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
  transition: background var(--duration-fast) var(--ease-out-expo);
}

.career-header:hover {
  background: rgba(48, 54, 61, 0.3);
}

.career-header:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

.career-name {
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
}

.career-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-right: var(--space-md);
}

.career-chevron {
  font-size: 1.25rem;
  color: var(--text-muted);
  transform: rotate(0deg);
  transition: transform var(--duration-fast) var(--ease-out-expo);
  flex-shrink: 0;
}

.career-item.is-expanded .career-chevron {
  transform: rotate(90deg);
}

.career-panel {
  display: none;
  padding: var(--space-sm) var(--space-lg) var(--space-md);
  border-top: 1px solid var(--border-muted);
}

.career-item.is-expanded .career-panel {
  display: block;
}

.career-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--space-md);
}

.career-item.is-expanded .course-list.course-list--nested {
  display: flex;
  flex-direction: column;
}

/* education list - expandable education items */
.education-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.education-item {
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-muted);
  border-radius: 0;
  overflow: hidden;
}

.education-item:last-child {
  border-bottom: none;
}

.education-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
  transition: background var(--duration-fast) var(--ease-out-expo);
}

.education-header:hover {
  background: rgba(48, 54, 61, 0.3);
}

.education-header:focus-visible {
  outline: 2px solid var(--accent-green);
  outline-offset: 2px;
}

.education-name {
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
  min-width: 0;
}

.education-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-right: var(--space-md);
}

.education-chevron {
  font-size: 1.25rem;
  color: var(--text-muted);
  transform: rotate(0deg);
  transition: transform var(--duration-fast) var(--ease-out-expo);
  flex-shrink: 0;
}

.education-item.is-expanded .education-chevron {
  transform: rotate(90deg);
}

/* Nested course list: hidden by default, shown when education is expanded */
.course-list.course-list--nested {
  display: none;
  margin: 0;
  padding: var(--space-sm) var(--space-lg) var(--space-md);
  gap: var(--space-sm);
  border-top: 1px solid var(--border-muted);
  background: none;
}

.education-item.is-expanded .course-list.course-list--nested {
  display: flex;
  flex-direction: column;
}

.course-list--nested .course-item {
  padding: var(--space-sm) var(--space-md);
}

/* Course list */
.course-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.course-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: none;
  border: none;
  border-bottom: 1px solid var(--border-muted);
  border-radius: 0;
}

.course-item:last-child {
  border-bottom: none;
}

.course-name {
  font-weight: 500;
  color: var(--text-primary);
}

.course-meta {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ============================================
   PHOTO GALLERY - Vision Board Style
   ============================================ */

.gallery-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  margin-top: var(--space-xl);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  grid-auto-rows: 250px;
  margin-bottom: var(--space-3xl);
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform var(--duration-normal) var(--ease-out-expo),
              box-shadow var(--duration-normal) var(--ease-out-expo);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 24px rgba(46, 164, 79, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale var(--duration-normal) var(--ease-out-expo);
}

.gallery-item:hover img {
  scale: 1.05;
}

/* Vision board varied sizes */
.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item-medium-horizontal {
  grid-column: span 2;
  grid-row: span 1;
}

.gallery-item-medium-vertical {
  grid-column: span 1;
  grid-row: span 2;
}

.gallery-item-small {
  grid-column: span 0.5;
  grid-row: span 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    grid-auto-rows: 180px;
    gap: var(--space-md);
  }

  .gallery-item-large {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }

  .gallery-item-large,
  .gallery-item-medium {
    grid-column: span 1;
    grid-row: span 1;
  }
}

