/* Simple Component Styles - No Elevation, Clean & Minimal */

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-secondary);
}

.btn-outlined {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #333;
  border-radius: 4px;
  font-family: inherit;
  background: #1a1a1a;
  color: #fff;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-control.error {
  border-color: #f56565;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.form-error {
  color: #f56565;
  font-size: 14px;
  margin-top: 0.25rem;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: #111;
  padding: 2rem;
  border-radius: 4px;
  max-width: 90%;
  max-height: 90vh;
  overflow: auto;
  min-width: 400px;
  border: 1px solid #333;
  color: #fff;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
}

.modal-close:hover {
  color: #fff;
}

@media (max-width: 600px) {
  .modal-content {
    min-width: 90%;
    padding: 1.5rem;
  }
}

/* Cards - Simple, no shadows */
.card {
  background: #111;
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid #333;
  color: #fff;
}

/* Grid */
.grid-container {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 600px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

/* Loading Spinner */
.spinner {
  border: 3px solid #ddd;
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

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

/* Contact Card */
.contact-card {
  background: #111;
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid #333;
  text-align: center;
  color: #fff;
}

.contact-card img {
  border-radius: 4px;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .contact-card {
    padding: 1rem;
  }

  .contact-card h2 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
  }

  .contact-card a p {
    font-size: 0.9rem;
  }
}

/* Mobile-only profile image - hide on desktop, show on mobile */
.mobile-only-profile {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only-profile {
    display: block;
    margin: 0 auto 1rem;
    filter: invert(1);
  }
}

/* Social media grid - mobile only */
.social-grid-mobile {
  display: none;
}

@media (max-width: 768px) {
  .social-grid-mobile {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
  }

  .social-grid-mobile a {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.8rem;
    font-size: 1.5rem;
    transition: transform 0.2s;
  }

  .social-grid-mobile a:hover {
    transform: scale(1.1);
  }
}

.contact-card a {
  display: block;
  margin: 0.5rem 0;
  color: var(--accent-primary);
  text-decoration: none;
}

.contact-card a:hover {
  color: var(--accent-secondary);
}

/* Sections */
section {
  margin: 4rem 0;
}

section#portfolio,
section#contact {
  scroll-margin-top: 2rem;
}
