/* Frontend CSS for STGP Group Manager */

.stgp-alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}
.stgp-alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* Forms */
.stgp-form-wrap, .stgp-frontend-form-wrap, .stgp-inquiry-form-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.stgp-form-group {
    margin-bottom: 20px;
}
.stgp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}
.stgp-form-group .required {
    color: red;
    font-size: 0.9em;
}
.stgp-form-group input[type="text"],
.stgp-form-group input[type="email"],
.stgp-form-group input[type="url"],
.stgp-form-group select,
.stgp-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
.stgp-checkbox-group label {
    display: inline-block;
    margin-right: 15px;
    font-weight: normal;
}
.stgp-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
}
.stgp-btn-primary {
    background-color: #0073aa;
    color: #fff;
}
.stgp-btn-primary:hover {
    background-color: #005177;
}

/* Group List & Search */
.stgp-search-wrap {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 8px;
}
.stgp-search-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}
.stgp-search-field {
    flex: 1 1 200px;
}
.stgp-search-field label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #555;
}
.stgp-search-field input, .stgp-search-field select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.stgp-search-action {
    display: flex;
    gap: 10px;
}
.stgp-btn-search {
    background: #2271b1;
    color: #fff;
}
.stgp-btn-reset {
    background: #f0f0f1;
    color: #3c434a;
    border: 1px solid #8c8f94;
}

/* Cards */
.stgp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.stgp-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.stgp-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.stgp-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.stgp-card-img {
    height: 180px;
    background: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.stgp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.stgp-no-image {
    color: #999;
}
.stgp-card-body {
    padding: 15px;
}
.stgp-card-title {
    margin: 0 0 10px;
    font-size: 1.25em;
    color: #333;
}
.stgp-card-tags {
    margin-bottom: 10px;
}
.stgp-tag {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 0.8em;
    margin-right: 5px;
    color: #fff;
}
.stgp-tag-area { background: #17a2b8; }
.stgp-tag-rec { background: #28a745; }
.stgp-card-desc {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.5;
}
.stgp-card-profs {
    font-size: 0.85em;
    color: #888;
}
.stgp-pagination {
    margin-top: 30px;
    text-align: center;
}
.stgp-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    background: #fff;
    border: 1px solid #ddd;
    color: #0073aa;
    text-decoration: none;
    border-radius: 4px;
}
.stgp-pagination .page-numbers.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* Detail View */
.stgp-detail-wrap {
    margin-top: 30px;
}
.stgp-section {
    margin-bottom: 40px;
}
.stgp-section h2 {
    border-bottom: 2px solid #0073aa;
    padding-bottom: 8px;
    margin-bottom: 20px;
    font-size: 1.5em;
}
.stgp-table {
    width: 100%;
    border-collapse: collapse;
}
.stgp-table th, .stgp-table td {
    padding: 12px;
    border: 1px solid #eaeaea;
}
.stgp-table th {
    background: #f9f9f9;
    width: 25%;
    text-align: left;
    font-weight: bold;
}
.stgp-links {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
}
.stgp-links li {
    margin-bottom: 8px;
}
.stgp-content-box {
    line-height: 1.6;
}
