import styled from "styled-components";
import { BsStarFill } from "react-icons/bs";
import { NavLink } from "react-router-dom";

export const CardWrapper = styled.div`
  text-decoration: none;
  color: #333;
  width: 280px;
  height: auto;
  gap: 20px;
  border: 1px solid #DFE6E6; 
  background: #fff;
  border-radius: 30px; 
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  
  /* These properties will handle the border without making the card expand. */
  margin: ${({ selected }) => selected ? "-4px" : "0"};
  border-width: ${({ selected }) => selected ? "5px" : "1px"};
  border-color: ${({ selected }) => selected ? "#FEF1CB" : "#DFE6E6"};

  &:hover {
    border-color: #FEF1CB;
  }
`;


export const Title = styled.h3`
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0;
`;

export const EndDate = styled.p`
  font-size: 13px;
  font-weight: 600;
  margin: 0;

  span {
    color: hsla(0, 0%, 45.09803921568628%, 0.52);
  }
`;

export const Rating = styled.div`
  display: flex;
  align-items: center;
`;
export const Rates = styled.div`
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 18px;
  font-weight: 300;

  .divider {
    width: 3px;
    height: 3px;
    border-radius: 3px;
    background: #000;
  }
`;

export const StarIcon = styled(BsStarFill)`
  color: #ffc107;
  margin-right: 5px;
`;

export const LearnersCount = styled.p`
  margin: 0;
`;
