/* 
 * Profile Tab Styles - Rosewood Ridge Site
 * Web 3.0 Design System
 */

@import url('variables.css');

/* Profile Card */
.profile-card {
  background-color: var(--inner-bg);
  border-radius: var(--border-radius-std);
  overflow: hidden;
  box-shadow: var(--box-shadow-std);
  border: 1px solid var(--accent-color);
}

/* Profile Card Header */
.profile-card-header {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  background: var(--gradient-accent);
  position: relative;
}

/* Avatar Container */
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 60px;
  overflow: hidden;
  border: 4px solid var(--highlight-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Profile Info */
.profile-info {
  margin-left: 1.5rem;
}

.profile-info h2 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  color: var(--text-color);
}

.profile-info h4 {
  margin: 0.5rem 0 0.25rem;
  color: var(--text-color);
}

.profile-info p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-color);
}

/* Profile Roles */
.profile-role {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0.2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
  background-color: var(--accent-color);
  color: var(--text-color);
}

.profile-role:hover {
  transform: translateY(-2px);
}

/* Stats Section */
.profile-stats {
  display: flex;
  background-color: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--accent-color);
  border-bottom: 1px solid var(--accent-color);
}

.stat-item {
  flex: 1;
  padding: 1rem;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
  border-right: none;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
  margin-bottom: 0.3rem;
}

.stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-color);
}

/* Profile Actions */
.profile-actions {
  padding: 1.5rem;
}

.profile-actions h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--accent-color);
  color: var(--text-color);
  font-weight: 600;
}

/* Notice Board */
.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  border-radius: var(--border-radius-std);
  border-left: 4px solid transparent;
}

.notice-item.notice-ok {
  background: rgba(40, 167, 69, 0.12);
  border-left-color: var(--success-color);
}

.notice-item.notice-warning {
  background: rgba(255, 193, 7, 0.12);
  border-left-color: var(--warning-color);
}

.notice-item.notice-danger {
  background: rgba(220, 53, 69, 0.12);
  border-left-color: var(--error-color);
}

.notice-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.notice-body strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-color);
  margin-bottom: 0.15rem;
}

.notice-body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary-color);
  line-height: 1.4;
}

.notice-footer {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-secondary-color);
  opacity: 0.7;
  font-style: italic;
}

/* Action Buttons */
.profile-button, 
.profile-button:visited {
  color: #fff !important;
  background-color: var(--success-color);
  border: none;
  border-radius: var(--border-radius-std);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
  margin-right: 10px;
  display: inline-block;
}

.profile-button:hover {
  background-color: #218838;
  transform: translateY(-2px);
  color: #fff !important;
}

.profile-button.hidden {
  display: none;
}

/* Stat Cards */
.stat-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--gradient-accent);
  border-radius: var(--border-radius-std);
  padding: 1.5rem;
  min-width: 150px;
  flex: 1;
  text-align: center;
  box-shadow: var(--box-shadow-light);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--accent-color);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-std);
}

.stat-title {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  opacity: 0.7;
  color: var(--text-color);
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .profile-card-header {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-info {
    margin-left: 0;
    margin-top: 1rem;
  }
  
  .profile-stats {
    flex-direction: column;
  }
  
  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .stat-item:last-child {
    border-bottom: none;
  }
}
