/* ==========================================================================
   Group Courses Styles
   Extracted from group-courses/index.blade.php, show.blade.php, confirmation.blade.php
   ========================================================================== */

/* ---------- Index Page - Container & Intro ---------- */

.gc-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.gc-intro {
    text-align: center;
    margin-bottom: 40px;
}

.gc-intro p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* ---------- Empty State ---------- */

.gc-empty {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.gc-empty svg {
    width: 64px;
    height: 64px;
    color: #999;
    margin-bottom: 20px;
}

.gc-empty h3 {
    color: #666;
    margin-bottom: 10px;
}

.gc-empty p {
    color: #999;
}

/* ---------- Courses Grid ---------- */

.gc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* ---------- Course Card ---------- */

.gc-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gc-card__image {
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gc-card__placeholder {
    height: 120px;
    background: linear-gradient(135deg, #aeaa8b 0%, #8a866d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gc-card__placeholder svg {
    width: 48px;
    height: 48px;
    color: rgba(255, 255, 255, 0.7);
}

.gc-card__body {
    padding: 20px;
}

.gc-card__title {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #203965;
}

.gc-card__title a {
    color: inherit;
    text-decoration: none;
}

.gc-card__therapist {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

.gc-card__description {
    color: #555;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ---------- Course Card Meta ---------- */

.gc-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: #666;
}

.gc-card__meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gc-card__meta-item svg {
    width: 16px;
    height: 16px;
}

/* ---------- Course Card Footer ---------- */

.gc-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.gc-card__price {
    font-size: 20px;
    font-weight: bold;
    color: #203965;
}

.gc-card__price--free {
    font-size: 16px;
    color: #28a745;
    font-weight: 600;
}

.gc-card__action {
    text-align: right;
}

.gc-card__spots {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* ---------- Badges ---------- */

.gc-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.gc-badge--full {
    background: #dc3545;
}

.gc-badge--closed {
    background: #6c757d;
    font-weight: 400;
}

.gc-badge--available {
    background: #28a745;
    font-size: 14px;
}

.gc-btn-register {
    display: inline-block;
    background: #aeaa8b;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

/* ---------- Show Page - Detail Container ---------- */

.gc-detail {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ---------- Show Page - Header ---------- */

.gc-detail__header {
    margin-bottom: 30px;
}

.gc-detail__hero {
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    margin-bottom: 24px;
}

.gc-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.gc-detail__therapist {
    color: #666;
    font-size: 15px;
}

.gc-detail__price {
    font-size: 24px;
    font-weight: bold;
    color: #203965;
}

.gc-detail__price--free {
    font-size: 18px;
    color: #28a745;
    font-weight: 600;
}

.gc-detail__description {
    font-size: 17px;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ---------- Show Page - Content ---------- */

.gc-detail__content {
    margin-bottom: 40px;
    line-height: 1.8;
    color: #444;
}

/* ---------- Show Page - Sessions ---------- */

.gc-sessions {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
}

.gc-sessions__title {
    margin: 0 0 20px 0;
    color: #203965;
    font-size: 20px;
}

.gc-sessions__title svg {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

.gc-sessions__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gc-sessions__item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid #aeaa8b;
}

.gc-sessions__number {
    width: 40px;
    height: 40px;
    background: #aeaa8b;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.gc-sessions__info {
    flex: 1;
}

.gc-sessions__date {
    font-weight: 600;
    color: #333;
}

.gc-sessions__time {
    color: #666;
    font-size: 14px;
}

.gc-sessions__empty {
    color: #666;
}

.gc-sessions__location {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #dee2e6;
}

.gc-sessions__location p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.gc-sessions__location svg {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ---------- Show Page - Registration Form ---------- */

.gc-register {
    background: #fff;
    border: 2px solid #aeaa8b;
    border-radius: 12px;
    padding: 30px;
}

.gc-register__title {
    margin: 0 0 24px 0;
    color: #203965;
    font-size: 22px;
    text-align: center;
}

.gc-register__errors {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.gc-register__errors ul {
    margin: 0;
    padding-left: 20px;
}

.gc-register__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.gc-register__label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.gc-register__input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}

.gc-register__textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    resize: vertical;
}

.gc-register__field {
    margin-bottom: 24px;
}

.gc-register__hint {
    color: #666;
    font-size: 13px;
}

.gc-register__payment-note {
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.gc-register__payment-note p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.gc-register__submit {
    width: 100%;
    padding: 14px 24px;
    background: #aeaa8b;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.2s;
}

/* ---------- Show Page - Status Blocks ---------- */

.gc-status {
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.gc-status--full {
    background: #f8d7da;
}

.gc-status--full svg {
    width: 48px;
    height: 48px;
    color: #dc3545;
    margin-bottom: 16px;
}

.gc-status--full h3 {
    color: #721c24;
    margin-bottom: 8px;
}

.gc-status--full p {
    color: #856404;
    margin: 0;
}

.gc-status--closed {
    background: #e2e3e5;
}

.gc-status--closed h3 {
    color: #383d41;
    margin-bottom: 8px;
}

.gc-status--closed p {
    color: #6c757d;
    margin: 0;
}

/* ---------- Show Page - Back Link ---------- */

.gc-back {
    text-align: center;
    margin-top: 30px;
}

.gc-back a {
    color: #666;
    text-decoration: none;
}

/* ---------- Confirmation Page ---------- */

.gc-confirmation {
    max-width: 650px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.gc-confirmation__icon {
    width: 80px;
    height: 80px;
    background-color: #d4edda;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
}

.gc-confirmation__icon svg {
    width: 40px;
    height: 40px;
    color: #28a745;
}

.gc-confirmation__title {
    font-size: 28px;
    color: #203965;
    margin-bottom: 15px;
}

.gc-confirmation__subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.gc-confirmation__details {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    text-align: left;
    margin-bottom: 30px;
}

.gc-confirmation__details-title {
    font-size: 18px;
    color: #203965;
    margin-bottom: 20px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.gc-confirmation__row {
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}

.gc-confirmation__row:last-child {
    margin-bottom: 0;
}

.gc-confirmation__label {
    color: #666;
}

.gc-confirmation__value {
    font-weight: 600;
    color: #333;
}

/* ---------- Confirmation Sessions ---------- */

.gc-confirmation__sessions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gc-confirmation__session-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.gc-confirmation__session-label {
    color: #666;
}

.gc-confirmation__session-value {
    color: #333;
}

/* ---------- Confirmation Contact / Back ---------- */

.gc-confirmation__contact {
    margin-bottom: 30px;
}

.gc-confirmation__contact p {
    color: #666;
    font-size: 14px;
}

.gc-confirmation__contact a {
    color: #aeaa8b;
}

.gc-confirmation__btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #203965;
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
}
