/**
 * Adis Team Plugin Styles
 */

/* General Styles */
.adis-team-members {
  margin: 20px 0;
}

.adis-team-grid {
  display: grid;
  gap: 30px;
}

/* Team Member Card */
.adis-team-member {
  margin-bottom: 30px;
}

.adis-team-member-inner {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
  position: relative;
}

.adis-team-member-inner:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Member Image */
.adis-team-member-image {
  position: relative;
  overflow: hidden;
}

.adis-team-member-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.adis-team-member-inner:hover .adis-team-member-image img {
  transform: scale(1.05);
}

/* Member Info */
.adis-team-member-info {
  padding: 20px;
  text-align: center;
}

.adis-team-member-name {
  margin: 0 0 8px;
  font-size: 22px;
  color: #333;
  font-weight: 600;
}

.adis-team-member-position {
  color: #777;
  margin-bottom: 15px;
  font-style: italic;
  font-size: 16px;
}

.adis-team-member-content {
  margin-bottom: 15px;
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}

/* Contact Info */
.adis-team-member-contact {
  margin-top: 15px;
  font-size: 14px;
  color: #666;
}

.adis-team-member-contact div {
  margin-bottom: 5px;
}

.adis-team-member-contact a {
  color: #1e73be;
  text-decoration: none;
  transition: color 0.2s ease;
}

.adis-team-member-contact a:hover {
  color: #135e9e;
  text-decoration: underline;
}

/* Social Icons */
.adis-team-member-social {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.adis-team-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #f5f5f5;
  color: #555;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.adis-team-social-icon:hover {
  background-color: #1e73be;
  color: #fff;
}

.adis-team-social-icon.facebook:hover {
  background-color: #3b5998;
}

.adis-team-social-icon.twitter:hover {
  background-color: #1da1f2;
}

.adis-team-social-icon.instagram:hover {
  background-color: #c13584;
}

.adis-team-social-icon.linkedin:hover {
  background-color: #0077b5;
}

/* Players Specific Styles */
.adis-team-player .adis-player-number {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #1e73be;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.adis-player-details {
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
  padding: 15px;
  margin-top: 15px;
  font-size: 14px;
}

.adis-player-details div {
  margin-bottom: 5px;
}

/* List Layout */
.adis-team-layout-list .adis-team-member {
  margin-bottom: 30px;
}

.adis-team-layout-list .adis-team-member-inner {
  display: flex;
  flex-direction: row;
  height: auto;
}

.adis-team-layout-list .adis-team-member-image {
  width: 30%;
  flex-shrink: 0;
}

.adis-team-layout-list .adis-team-member-info {
  width: 70%;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Cards Layout */
.adis-team-layout-cards .adis-team-member-inner {
  text-align: center;
  padding-top: 30px;
}

.adis-team-layout-cards .adis-team-member-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 5px solid #f5f5f5;
}

.adis-team-layout-cards .adis-team-member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .adis-team-layout-list .adis-team-member-inner {
    flex-direction: column;
  }

  .adis-team-layout-list .adis-team-member-image,
  .adis-team-layout-list .adis-team-member-info {
    width: 100%;
  }

  .adis-team-layout-list .adis-team-member-info {
    text-align: center;
  }
}

/*--================================--
    MODAL STYLES
================================----*/
.adis-team-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.adis-team-modal-container {
  background: #fff;
  border-radius: 10px;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: modal-appear 0.3s ease-out;
}

@keyframes modal-appear {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.adis-team-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 30px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  padding: 0;
  z-index: 1;
}

.adis-team-modal-content {
  display: flex;
  padding: 40px;
}

.adis-team-modal-image {
  flex: 0 0 250px;
  margin-right: 30px;
}

.adis-team-modal-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.adis-team-modal-details {
  flex: 1;
}

.adis-team-modal-name {
  margin: 0 0 5px;
  font-size: 32px;
  font-weight: 700;
}

.adis-team-modal-position {
  font-size: 18px;
  color: #777;
  margin-top: 0;
  margin-bottom: 20px;
  font-style: italic;
}

.adis-team-modal-meta {
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.adis-team-modal-meta span {
  font-size: 15px;
}

.adis-team-modal-bio {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
}

/*--================================--
    MODERN CARD STYLE
================================----*/
.adis-team-card-style-modern .adis-team-member-inner {
  background: #fff;
  border-radius: 15px;
  text-align: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.adis-team-card-style-modern .adis-team-member-inner:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 50px -10px rgba(0, 0, 0, 0.2);
}

.adis-team-card-style-modern .adis-team-member-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 15px;
  border: 4px solid #1e73be;
  padding: 4px;
  background: #fff;
}

.adis-team-card-style-modern .adis-team-member-name {
  font-size: 20px;
  font-weight: 700;
}

.adis-team-card-style-modern .adis-team-member-position {
  font-size: 14px;
  color: #1e73be;
  font-weight: 500;
}

.adis-team-card-style-modern .adis-player-number {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 36px;
  font-weight: 800;
  color: #1e73be;
  opacity: 0.2;
  line-height: 1;
}

.adis-team-card-style-modern .adis-player-number::before {
  content: "#";
}

/*--================================--
    TORN PAPER CARD STYLE
================================----*/
.adis-team-card-style-torn-paper .adis-team-member-inner {
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  padding: 20px;
}

.adis-team-card-style-torn-paper .adis-team-member-inner::before,
.adis-team-card-style-torn-paper .adis-team-member-inner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 20px;
  background-image: linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.1) 25%,
      transparent 25%
    ),
    linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%);
  background-size: 10px 10px;
  background-repeat: repeat-x;
}

.adis-team-card-style-torn-paper .adis-team-member-inner::before {
  top: -10px;
}

.adis-team-card-style-torn-paper .adis-team-member-inner::after {
  bottom: -10px;
}

.adis-team-card-style-torn-paper .adis-team-member-image {
  padding: 5px;
  border: 1px dashed #ccc;
  margin-bottom: 15px;
}

.adis-team-card-style-torn-paper .adis-team-member-name {
  font-family: "Courier New", Courier, monospace;
  font-weight: bold;
}

.adis-team-card-style-torn-paper .adis-player-number {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  background: rgba(255, 255, 255, 0.7);
  padding: 5px 10px;
  border-radius: 5px;
}

.adis-team-card-style-torn-paper .adis-player-number::before {
  content: "#";
}

/*--================================--
    RESPONSIVE MODAL
================================----*/
@media screen and (max-width: 768px) {
  .adis-team-modal-content {
    flex-direction: column;
    padding: 20px;
  }
  .adis-team-modal-image {
    margin-right: 0;
    margin-bottom: 20px;
    max-width: 200px;
    align-self: center;
  }
  .adis-team-modal-name {
    font-size: 24px;
  }
}
