/* House318 MyAccount Styles */

/* GmarketSans Font */
@font-face {
    font-family: 'GmarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansLight.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'GmarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'GmarketSans';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

/* Container */
.house318-myaccount-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'GmarketSans', -apple-system, BlinkMacSystemFont, sans-serif;
}

.house318-myaccount-header {
    margin-bottom: 40px;
}

.house318-myaccount-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

/* 상단 2칼럼 레이아웃 */
.house318-top-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

/* 프로필 카드 (왼쪽) */
.house318-profile-card {
    background: #FCF7FF;
    border-radius: 12px;
    padding: 32px;
}

.house318-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.house318-profile-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #E5E5E5;
}

.house318-profile-info {
    flex: 1;
}

.house318-profile-name {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.house318-profile-login-method {
    font-size: 14px;
    color: #999;
    margin: 0;
}

.house318-profile-actions {
    display: flex;
    gap: 12px;
}

.house318-profile-actions .house318-btn-primary {
    flex: 6;
}

.house318-profile-actions .house318-btn-outline {
    flex: 4;
}

/* 구독 현황 카드 (오른쪽) */
.house318-subscription-card {
    background: #FCF7FF;
    border-radius: 12px;
    padding: 32px;
}

.house318-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.house318-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.house318-card-icon img {
    display: block;
    width: 28px;
    height: auto;
}

.house318-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.house318-subscription-info {
    margin-bottom: 24px;
}

.house318-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F5F5F5;
}

.house318-info-row:last-child {
    border-bottom: none;
}

.house318-info-label {
    font-size: 14px;
    color: #666;
}

.house318-info-value {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.house318-no-subscription {
    font-size: 14px;
    color: #999;
    text-align: center;
    padding: 20px 0;
    margin: 0;
}

/* Buttons */
.house318-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1;
}

.house318-btn-primary {
    background: #601986 !important;
    color: #fff !important;
    font-weight: 600 !important;
}

.house318-btn-primary:hover {
    background: #4A2E7A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(91, 58, 150, 0.3);
}

.house318-btn-outline {
    background: transparent;
    color: #666;
    border: 1px solid #E5E5E5;
}

.house318-btn-outline:hover {
    background: #F9F9F9;
    border-color: #D0D0D0;
    color: #666;
}

.house318-btn-secondary {
    background: #F9F9F9;
    color: #666;
    border: 1px solid #E5E5E5;
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
    min-width: auto;
}

.house318-btn-secondary:hover {
    background: #F0F0F0;
}

.house318-btn-danger {
    background: #6C757D;
    color: #fff;
}

.house318-btn-danger:hover {
    background: #5A6268;
}

.house318-btn-full {
    width: 100%;
}

/* 하단 섹션: 왼쪽 탭 + 오른쪽 콘텐츠 */
.house318-bottom-section {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 24px;
    margin-top: 32px;
}

.house318-tabs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #F7F7F7;
    border-radius: 12px;
}

.house318-btn-secondary,
.house318-btn-danger {
    padding: 12px 24px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

.house318-tab-link {
    display: block;
    padding: 12px 24px;
    color: #601986;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-align: center;
}

.house318-tab-link:hover {
    color: #601986;
    background: #F9F9F9;
}

.house318-tab-item.active .house318-tab-link {
    color: #601986;
    font-weight: 700;
    border: #601986 2px solid;
    background: #ffffff;
    border-radius: 12px;
}

/* 탭 콘텐츠 (오른쪽) */
.house318-tabs-content {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    min-height: 400px;
    border: #601986 2px solid;
}

.house318-tab-panel {
    display: none;
}

.house318-tab-panel.active {
    display: block;
}

/* Webinar Registrations (내 혜택나 리스트) */
.house318-webinar-registrations {
    margin: 0;
}

.house318-webinar-list {
    display: grid;
    gap: 20px;
}

.house318-webinar-item {
    padding: 24px;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-left: 4px solid #5B3A96;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.house318-webinar-item:hover {
    box-shadow: 0 4px 12px rgba(91, 58, 150, 0.15);
    transform: translateY(-2px);
}

.house318-webinar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.house318-webinar-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    flex: 1;
    color: #1a1a1a;
}

.house318-webinar-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}

.house318-webinar-title a:hover {
    color: #5B3A96;
}

.house318-webinar-status {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    white-space: nowrap;
    background: #E8F5E9;
    color: #2E7D32;
}

.house318-webinar-details {
    margin-bottom: 16px;
}

.house318-webinar-row {
    display: flex;
    margin: 10px 0;
    font-size: 14px;
}

.house318-webinar-label {
    min-width: 80px;
    font-weight: 600;
    color: #666;
}

.house318-webinar-value {
    color: #1a1a1a;
}

.house318-webinar-actions {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid #F5F5F5;
}

/* Form Styles */
.house318-account-form {
    max-width: 800px;
}

.house318-form-section {
    margin-bottom: 40px;
}

.house318-form-section:last-child {
    margin-bottom: 0;
}

.house318-form-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

.house318-form-row {
    margin-bottom: 24px;
}

.house318-form-row:last-child {
    margin-bottom: 0;
}

.house318-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.house318-form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 15px;
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.house318-form-input:focus {
    outline: none;
    border-color: #5B3A96;
    box-shadow: 0 0 0 3px rgba(91, 58, 150, 0.1);
}

.house318-form-input:read-only {
    background: #F9F9F9;
    color: #999;
    cursor: not-allowed;
}

.house318-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.house318-input-group .house318-form-input {
    flex: 7;
    min-width: 0;
}

.house318-input-group .house318-btn-secondary {
    flex: 3;
    text-align: center;
}

.house318-form-description {
    font-size: 13px;
    color: #999;
    margin: 0 0 16px 0;
}

/* Notification Settings */
.house318-notification-setting {
    max-width: 800px;
}

.house318-notification-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-bottom: 1px solid #F5F5F5;
}

.house318-notification-row:last-child {
    border-bottom: none;
}

.house318-notification-label {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.house318-notification-buttons {
    display: flex;
    gap: 12px;
}

.house318-btn-consent {
    background: transparent !important;
    color: #B7B7B7 !important;
    border: 1px solid #B7B7B7 !important;
    padding: 10px 28px;
    font-size: 14px;
    min-width: 90px;
    transition: all 0.3s ease;
}

.house318-btn-consent.active {
    background: #5B3A96 !important;
    color: #fff !important;
    border-color: #5B3A96 !important;
}

.house318-btn-consent:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .house318-myaccount-title {
        font-size: 28px;
    }

    .house318-top-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .house318-profile-card,
    .house318-subscription-card {
        padding: 24px;
    }

    .house318-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .house318-profile-actions {
        width: 100%;
        flex-direction: column;
    }

    .house318-btn {
        width: 100%;
    }

    .house318-bottom-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .house318-tabs-content {
        padding: 24px;
    }

    .house318-input-group {
        flex-direction: column;
    }

    .house318-input-group .house318-btn-secondary {
        width: 100%;
    }

    .house318-webinar-header {
        flex-direction: column;
    }

    .house318-webinar-actions {
        flex-direction: column;
    }

    .house318-webinar-actions .house318-btn {
        width: 100%;
    }

    .house318-notification-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .house318-notification-buttons {
        width: 100%;
    }

    .house318-btn-consent {
        flex: 1;
    }
}

/* WooCommerce Override */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
    display: none !important;
}

.woocommerce-account .house318-myaccount-container {
    display: block !important;
}