/**
 * About Page Styles for Travelgram
 * 
 * This file contains styles for the About Me page including:
 * - About section layout with photo and text
 * - Contact section styling
 * - Responsive grid layouts
 * - Dark mode support
 * - Mobile-optimized layouts
 * 
 * @author Admir Bjelic
 * @version 1.0
 */

/* Page Header - Stories Style */
.page-header {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
}

.page-header h1 {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.page-header p {
  font-size: 1.3rem;
  color: #666;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Responsive Page Header */
@media (width <= 768px) {
  .page-header h1 {
    font-size: 2.5rem;
  }

  .page-header p {
    font-size: 1.1rem;
  }
}

@media (width <= 480px) {
  .page-header {
    margin-bottom: 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }
}

/* Dark Mode Page Header */
[data-theme="dark"] .page-header h1 {
  color: var(--primary-dark);
}

[data-theme="dark"] .page-header p {
  color: #a0a0a0;
}

/* About Section Container */
.about-content {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin: 2rem 0;
}

.about-image {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgb(0 0 0 / 8%);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-text h2 {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 600;
}

.about-text p {
  line-height: 1.8;
  margin: 0 0 1rem;
  max-width: 60ch;
  color: var(--text-secondary);
}

.about-text p:last-child {
  margin-bottom: 0;
}

.contact-section {
  margin: 3rem 0;
}

.contact-section .container {
  max-width: 980px;
}

.contact-section h2 {
  margin: 0 0 1rem;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 600;
}

.contact-section p {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-info p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.6;
}

.contact-info {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-top: 1rem;
}

.contact-info .social-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-info .social-link:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgb(0 0 0 / 15%);
}

.email-contact {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.email-emoji {
  font-size: 1rem;
  display: inline-block;
}

.email-address {
  font-size: 1rem;
  font-weight: bold;
  color: #000;
  word-break: break-all;
}

.about-more {
  grid-column: 1 / -1;
  border-top: 1px solid var(--border-color);
}

.about-more p {
  line-height: 1.8;
  margin: 0 0 1rem;
  color: var(--text-secondary);
}

.about-more p:last-child {
  margin-bottom: 0;
}

@media (width <= 900px) {
  .about-content {
    grid-template-columns: 1fr;
  }
}

@media (width <= 600px) {
  .contact-section .container {
    padding: 0 1rem;
  }

  .about-content,
  .contact-info {
    padding: 1rem;
  }
}

/* iPhone 14 Pro Max and similar devices */
@media (width <= 430px) {
  .contact-section .container {
    padding: 0 0.75rem;
  }

  .about-content,
  .contact-info {
    padding: 0.75rem;
  }
}

/* Dark Mode Styles for About Page */
[data-theme="dark"] .about-content {
  background: var(--card-bg-dark);
  box-shadow: var(--shadow-dark);
}

[data-theme="dark"] .about-more {
  border-top-color: var(--border-color-dark);
}

[data-theme="dark"] .contact-info {
  background: var(--card-bg-dark);
  box-shadow: var(--shadow-dark);
}

[data-theme="dark"] .email-address {
  color: var(--primary-light);
}
