import { styled } from 'styled-components';

export const StyledProjects = styled.section`
  h3.sub-header {
    letter-spacing: 0.1em;
    color: ${({ theme }) => theme.colors['200']};
    margin-top: 3em;
  }

  .projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5em;

    .project-thumbnail img,
    .project-badges img {
      border-radius: 1em;
    }

    h2,
    h3 {
      margin: 0;
    }
  }

  .project-content {
    display: flex;
    flex-direction: column;
  }

  hr {
    width: 100%;
    border: 1px solid white;
    margin: 0.5em 0;
  }

  h2.project-title {
    color: ${({ theme }) => theme.colors.accent};
  }

  h3.project-subtitle {
    font-size: 1.1em;
    color: ${({ theme }) => theme.colors['200']};
  }

  .project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;

    margin: 0.5em 0;

    img {
      max-width: 120px;
    }
  }

  .project-desc {
    color: ${({ theme }) => theme.colors['300']};
    text-align: justify;

    height: 100%;
    margin-bottom: 1em;
  }

  .project-actions {
    display: flex;
    gap: 1em;

    a {
      padding: 0.25em;
      font-weight: bold;

      svg {
        font-size: 1.5em;
        vertical-align: bottom;
        margin-right: 0.5em;
      }
    }
  }
`;
