@import './donor-account/dashboard';
@import './donor-account/my-donations';
@import './donor-account/donation-detail';
@import './donor-account/my-account';
@import './donor-account/login-form';
@import './donor-account/donations-filter-form';

// Classic full-page donor account (templates/classic/donor-account.php)
.gfw-donor-account-page-main {
  max-width: 100%;
}

.gfw-donor-account-page__header {
  // margin-bottom: 1.25rem;
  // padding-bottom: 1rem;
  // border-bottom: 1px solid #e8eaed;
}

.gfw-donor-account-page__title {
  // margin: 0;
  // font-size: clamp(1.35rem, 3vw, 1.75rem);
  // font-weight: 600;
  // letter-spacing: -0.02em;
  // line-height: 1.25;
  // color: #1a1d21;
}

.gfw-donor-account__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.2rem, 2.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.giftflow-donor-account {
  display: flex;
  gap: 2rem;
  min-height: 600px;
  margin: 2rem 0;
  
  // Tab Navigation (Left Column)
  &__tabs {
    flex: 0 0 280px;
    
    @media (max-width: 768px) {
      flex: 0 0 100%;
      padding: 16px 0;
      display: flex;
      overflow-x: auto;
      gap: 8px;
    }
  }

  &__tab {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    text-decoration: none;
    transition: all 0.2s ease;
    border: solid #eee;
    border-width: 1px 0 0 0;
    opacity: .4;
    // font-weight: bold;
    
    &:hover {
      // color: #3b82f6;
      opacity: 1;
    }
    
    &.active {
      // color: #3b82f6;
      opacity: 1;
    }
    
    @media (max-width: 768px) {
      flex: 0 0 auto;
      white-space: nowrap;
      padding: 12px 16px;
      border-left: none;
      border-bottom: 2px solid transparent;
      margin-bottom: 0;
      
      &.active {

      }
    }
  }

  &__tab-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;

    
    @media (max-width: 768px) {
      margin-right: 8px;
      
      svg {
        width: 14px;
        height: 14px;
      }
    }
  }

  &__tab-label {
    // font-weight: 500;
    // font-size: 1rem;
    // line-height: normal;
    
    @media (max-width: 768px) {
      // font-size: .9rem;
    }
  }

  // Content Area (Right Column)
  &__content {
    flex: 1;
    
    @media (max-width: 768px) {
      padding-top: 20px;
    }
  }

  &__tab-content {
    
    
    // Content styling
    
    p {
      line-height: 1.6;
      margin: 0 0 16px;
    }
  }
    

  // Responsive Design
  @media (max-width: 768px) {
    flex-direction: column;
    min-height: auto;
    gap: 1rem;
    
    &__tab-content {
      .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        
        .stat-card {
          padding: 20px;
          
          .stat-value {
            font-size: 24px;
          }
        }
      }
      
      .data-table {
        font-size: 14px;
        
        th, td {
          padding: 12px 8px;
        }
      }
    }
  }
  
  @media (max-width: 480px) {
    &__tab-content {
      .stats-grid {
        grid-template-columns: 1fr;
        
        .stat-card {
          padding: 16px;
          
          .stat-value {
            font-size: 20px;
          }
          
          .stat-label {
            font-size: 12px;
          }
        }
      }
    }
  }
}


.donor-account-empty {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: #f5f5f5;
  border-radius: 1px;
  padding: 2rem 1.5rem;
  margin: 0 0 2rem;

  .empty-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    margin-right: 0.5rem;
    background: #fafafa;
    border: solid 1px #eee;
    border-radius: 100%;

    svg {
      width: 28px;
    }
  }

  .empty-message {
    flex: 1;
    h4 {
      margin: 0 0 0.5rem 0;
      font-size: 1.2rem;
      font-weight: 600;
    }
    p {
      margin: 0 0 1rem 0;
      font-size: .9rem;
      line-height: 1.6;
    }
    ul {
      margin: 0;
      padding-left: 1.2rem;
      font-size: 0.9rem;
      li {
        margin-bottom: 0.4em;
        list-style: disc;
      }
    }
  }
  @media (max-width: 375px) {
    flex-wrap: wrap;

    .empty-message {
      flex: unset;
    }
  }
}
