/* Tcgg Plugin Styles - Optimized & Versioned */

/* Overlay/Container */
.tcgg-popup-overlay {
    display: none; /* Hidden by default, JS toggles it */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.tcgg-popup-overlay.show {
    display: flex; /* Flex to center */
    opacity: 1;
}

/* Popup Box */
.tcgg-popup-content {
    width: 90%;
    max-width: 500px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.tcgg-popup-overlay.show .tcgg-popup-content {
    transform: translateY(0) scale(1);
}

/* Header */
.tcgg-popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    position: relative;
}

.tcgg-popup-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex: 1;
    padding-right: 40px; /* Space for close button */
}

/* Close Button */
.tcgg-close-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    font-size: 20px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tcgg-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) rotate(90deg);
}

/* Body Content */
.tcgg-popup-body {
    padding: 24px;
    overflow-y: auto;
    font-size: 15px;
    line-height: 1.8;
    color: #4a5568;
}

.tcgg-popup-body p {
    margin-bottom: 16px;
    margin-top: 0;
}

.tcgg-popup-body p:last-child {
    margin-bottom: 0;
}
#popupContenta {
  display: inline-block;
  margin-top: 5px;
  padding: 8px 20px;
  background: #2684ff;
  color: white;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}
/* Links inside body */
.ss a {
  display: inline-block;
  margin-top: 5px;
  padding: 8px 20px;
  background: #2684ff;
  color: white;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.tcgg-popup-body a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* Scrollbar Styling */
.tcgg-popup-body::-webkit-scrollbar {
    width: 6px;
}

.tcgg-popup-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tcgg-popup-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.tcgg-popup-body::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Font Icon removed - Using SVG */
