import styled from 'styled-components';
import { Theme } from '../../types';

export const AppContainer = styled.div<{ theme: Theme }>`
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: ${props => props.theme.backgroundColor};
  color: ${props => props.theme.textColor};
  transition: all 0.3s ease;
`;

export const AppHeader = styled.header`
  background-color: #282c34;
  padding: 2rem;
  color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  width: 90%;
  margin: 0 auto;

  h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 600;
  }

  p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.5;
    max-width: 60ch;
    margin: 0 auto;
  }

  @media (prefers-reduced-motion: reduce) {
    transition: none;
  }

  @media (max-width: 768px) {
    padding: 1.5rem;
  }
`;