@import '../settings/variables';

.c-panel {
  flex: 1 auto;
  border-radius: $panel-item-radius;
  background-color: $color-background;
  overflow: hidden;
  &:hover {
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.08);
  }
  &--bordered {
    border: $hairline solid $color-separator;
  }

  &--shadow {
    box-shadow: 0 $margin-tiny $margin-small 0 $color-shadow-light;
  }

  &--radius-tiny {
    border-radius: 2px;
  }

  &__container {
    width: 100%;
  }

  &__image {
    width: 100%;
    background: $color-primary-light 50%;
    background-size: cover;
    height: 13em;
    flex: 1 auto;

    &--placeholder {
      background-image: url('/assets/images/panel-placeholder.svg');
    }
  }

  &__content {
    background-color: $color-panel-background;
    flex: 1 1 auto;
    overflow: hidden;
    color: $color-paragraph;
    border: 1px solid transparent;
    &:hover {
      background-color: $color-panel-hover-background;
      border: 1px solid $color-panel-hover-border;
    }
  }

  &__title {
    height: 3.5em;
    overflow: hidden;
    text-overflow: ellipsis;

    &:first-letter {
      text-transform: capitalize;
    }

    &--bigger {
      font-size: 1.25em;
    }
  }
}
