@charset "utf-8";

/* ======================================
   LOGIN PAGE STYLES
   ====================================== */

/* 로그인 컨테이너 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-form-wrapper {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    width: 100%;
    max-width: 28rem;
}

/* 로그인 헤더 */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.login-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
}

/* 오류 메시지 */
.error-message {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.error-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* 로그인 폼 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.input-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    outline: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* 로그인 버튼 */
.login-button {
    width: 100%;
    background: linear-gradient(to right, #4f46e5, #7c3aed);
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.login-button:hover {
    background: linear-gradient(to right, #4338ca, #6d28d9);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 구분선 */
.divider {
    margin: 2rem 0;
    text-align: center;
    position: relative;
}

.divider-line {
    border-top: 1px solid #e5e7eb;
}

.divider-text {
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 0 1rem;
    color: #6b7280;
    font-size: 0.875rem;
}

/* 로그인 옵션 */
.login-options {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.signup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #f9fafb;
    color: #4f46e5;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.signup-button:hover {
    background-color: #f3f4f6;
    border-color: #4f46e5;
    color: #4f46e5;
    text-decoration: none;
}

.kakao-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #FEE500;
    color: #000000;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid #FEE500;
    box-shadow: 0 2px 4px rgba(254, 229, 0, 0.3);
}

.kakao-login-button:hover {
    background-color: #FDD835;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(254, 229, 0, 0.4);
    color: #000000;
    text-decoration: none;
}

.kakao-icon {
    font-size: 1.25rem;
}

.login-notice {
    font-size: 0.75rem;
    color: #9ca3af;
}

/* 혜택 섹션 */
.benefits-section {
    margin-top: 3rem;
}

.benefits-container {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.benefits-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.benefit-item {
    text-align: center;
    padding: 1rem;
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.benefit-title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.benefit-description {
    font-size: 0.875rem;
    color: #6b7280;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .login-form-wrapper {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .login-icon {
        font-size: 2.5rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .benefits-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .benefit-item {
        padding: 0.75rem;
    }
}

@media (max-width: 480px) {
    .login-form-wrapper {
        padding: 1.5rem 1rem;
    }
    
    .form-input {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .login-button {
        padding: 0.875rem;
        font-size: 0.875rem;
    }
    
    .signup-button,
    .kakao-login-button {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .benefits-container {
        padding: 1rem;
    }
    
    .benefits-title {
        font-size: 1.125rem;
    }
    
    .benefit-icon {
        font-size: 1.75rem;
    }
}

/* ======================================
   MYPAGE STYLES
   ====================================== */

/* 공통 섹션 스타일 */
.mypage-header,
.user-info-section,
.keyword-subscription-section,
.webhook-section,
.account-section {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* 마이페이지 헤더 */
.mypage-header-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.mypage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.mypage-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.mypage-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
}

/* 섹션 제목 공통 */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.section-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

/* 사용자 정보 섹션 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-card {
    background-color: #f9fafb;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.info-item-last {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #374151;
}

.info-value {
    color: #111827;
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background-color: #10b981;
    color: white;
}

/* 웹훅 섹션 */
.webhook-info {
    background-color: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.webhook-info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.info-icon {
    font-size: 1.25rem;
}

.info-title {
    font-weight: 600;
    color: #0c4a6e;
}

.info-description {
    color: #0c4a6e;
    font-size: 0.875rem;
    margin: 0;
}

.webhook-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.webhook-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    outline: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.webhook-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-help {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.button-group {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    flex: 1;
    background: linear-gradient(to right, #4f46e5, #7c3aed);
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(to right, #4338ca, #6d28d9);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    flex: 1;
    background-color: #f9fafb;
    color: #4f46e5;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background-color: #f3f4f6;
    border-color: #4f46e5;
}

/* 웹훅 성공 메시지 */
.webhook-success {
    background-color: #f0fdf4;
    border: 1px solid #22c55e;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
}

.success-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.success-icon {
    font-size: 1.25rem;
}

.success-title {
    font-weight: 600;
    color: #166534;
}

.success-description {
    color: #166534;
    font-size: 0.875rem;
    margin: 0.5rem 0 0 0;
}

/* ======================================
   KEYWORD SUBSCRIPTION STYLES
   ====================================== */

/* 키워드 구독 정보 */
.keyword-info {
    background-color: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.keyword-info-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
}

.info-icon {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.info-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0369a1;
}

.info-description {
    color: #0c4a6e;
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* 키워드 입력 폼 */
.keyword-form {
    margin-bottom: 2rem;
}

.keyword-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.keyword-input {
    flex: 1;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background-color: white;
}

.keyword-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-add-keyword {
    padding: 0.875rem 1.5rem;
    white-space: nowrap;
    font-size: 0.875rem;
}

/* 키워드 목록 섹션 */
.keyword-list-section {
    margin-top: 2rem;
}

.keyword-list-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.list-icon {
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

/* 빈 상태 */
.empty-keyword-state {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #f9fafb;
    border-radius: 0.75rem;
    border: 2px dashed #d1d5db;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.empty-description {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* 키워드 아이템 */
.keyword-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.keyword-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.keyword-item:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.keyword-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.keyword-text {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.keyword-date {
    font-size: 0.75rem;
    color: #6b7280;
}

.keyword-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-delete-keyword {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-delete-keyword:hover {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
}

/* 계정 관리 섹션 */
.account-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.action-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid;
}

.action-primary {
    background-color: #f9fafb;
    color: #4f46e5;
    border-color: #e5e7eb;
}

.action-primary:hover {
    background-color: #f3f4f6;
    border-color: #4f46e5;
    text-decoration: none;
    color: #4f46e5;
}

.action-danger {
    background-color: #fef2f2;
    color: #dc2626;
    border-color: #fecaca;
}

.action-danger:hover {
    background-color: #fee2e2;
    border-color: #dc2626;
    text-decoration: none;
    color: #dc2626;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .mypage-header,
    .user-info-section,
    .keyword-subscription-section,
    .webhook-section,
    .account-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .mypage-icon {
        font-size: 2.5rem;
    }
    
    .mypage-title {
        font-size: 1.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-card {
        padding: 1rem;
    }
    
    .button-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        flex: none;
    }
    
    .account-actions {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    /* 키워드 구독 반응형 */
    .keyword-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-add-keyword {
        width: 100%;
    }
    
    .keyword-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .keyword-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .mypage-header,
    .user-info-section,
    .keyword-subscription-section,
    .webhook-section,
    .account-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .mypage-icon {
        font-size: 2rem;
    }
    
    .mypage-title {
        font-size: 1.25rem;
    }
    
    .section-title {
        font-size: 1.125rem;
    }
    
    .info-card {
        padding: 0.75rem;
    }
    
    .webhook-input {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem;
        font-size: 0.875rem;
    }
    
    .action-link {
        padding: 0.875rem;
        font-size: 0.875rem;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    /* 키워드 구독 모바일 최적화 */
    .keyword-info {
        padding: 1rem;
    }
    
    .empty-keyword-state {
        padding: 2rem 1rem;
    }
    
    .empty-icon {
        font-size: 2.5rem;
    }
    
    .keyword-input {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .btn-delete-keyword {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 320px) {
    .mypage-header,
    .user-info-section,
    .webhook-section,
    .account-section {
        padding: 0.75rem;
    }
    
    .mypage-title {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .info-card {
        padding: 0.5rem;
    }
    
    .webhook-input {
        padding: 0.625rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.75rem;
        font-size: 0.75rem;
    }
}

/* ======================================
   SIGNUP PAGE STYLES
   ====================================== */

/* 회원가입 컨테이너 */
.signup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.signup-form-wrapper {
    background-color: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    width: 100%;
    max-width: 32rem;
}

/* 회원가입 헤더 */
.signup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.signup-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.signup-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.signup-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
}

/* 회원가입 폼 */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.required {
    color: #ef4444;
}

.form-input {
    box-sizing: border-box;
}

.input-with-button {
    display: flex;
    gap: 0.5rem;
}

.input-with-button .form-input {
    flex: 1;
}

.duplicate-check-btn {
    padding: 0.875rem 1rem;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.duplicate-check-btn:hover {
    background-color: #4338ca;
}

/* 이용약관 동의 */
.terms-agreement {
    background-color: #f9fafb;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-top: 0.5rem;
}

.terms-checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.terms-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #4f46e5;
}

.terms-label {
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

/* 회원가입 버튼 - 중복 방지를 위해 새로운 클래스명 사용 */
.signup-form .signup-button {
    width: 100%;
    background: linear-gradient(to right, #4f46e5, #7c3aed);
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.signup-form .signup-button:hover {
    background: linear-gradient(to right, #4338ca, #6d28d9);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* 추가 옵션 */
.signup-options {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #f9fafb;
    color: #4f46e5;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.option-button:hover {
    background-color: #f3f4f6;
    border-color: #4f46e5;
    color: #4f46e5;
    text-decoration: none;
}

/* 회원가입 페이지 반응형 */
@media (max-width: 768px) {
    .signup-form-wrapper {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .signup-icon {
        font-size: 2.5rem;
    }
    
    .signup-title {
        font-size: 1.5rem;
    }
    
    .input-with-button {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .duplicate-check-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .signup-container {
        min-height: 50vh;
        padding: 1rem 0;
    }
    
    .signup-form-wrapper {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
        border-radius: 1rem;
    }
    
    .signup-form {
        gap: 1.25rem;
    }
    
    .form-input {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .duplicate-check-btn {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .signup-form .signup-button {
        padding: 0.875rem;
        font-size: 0.875rem;
    }
    
    .option-button {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 320px) {
    .signup-form-wrapper {
        padding: 1rem 0.75rem;
    }
    
    .option-button {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
}

/* ======================================
   TODAY PRODUCT WIDGET STYLES
   ====================================== */

/* 오늘의 인기 핫딜 위젯 */
.today-product-widget {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.today-product-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.today-product-icon {
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.today-product-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.today-product-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.today-product-item:hover {
    background-color: #f9fafb;
}

.today-product-image {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.today-product-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.today-product-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.today-product-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #4f46e5;
    margin: 0;
}

/* ======================================
   SIDEBAR MOBILE IMPROVEMENTS
   ====================================== */

/* 사이드바 기본 스타일 개선 */
.sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 모바일에서 사이드바 개선 */
@media (max-width: 1024px) {
    .sidebar-content {
        display: block; /* 그리드 비활성화 */
        gap: 1rem;
    }
    
    .sidebar-widget {
        margin-bottom: 1.5rem;
    }
    
    .sidebar-widget:last-child {
        margin-bottom: 0;
    }
    
    .today-product-widget {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .sidebar-content {
        gap: 1rem;
    }
    
    .sidebar-widget {
        margin-bottom: 1rem;
    }
    
    .today-product-widget {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .today-product-title {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .today-product-icon {
        font-size: 1.25rem;
    }
    
    .today-product-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }
    
    .today-product-image {
        width: 3rem;
        height: 3rem;
    }
    
    .today-product-name {
        font-size: 0.8125rem;
    }
    
    .today-product-price {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .today-product-widget {
        padding: 0.75rem;
        border-radius: 0.75rem;
    }
    
    .today-product-title {
        font-size: 0.9375rem;
        margin-bottom: 0.5rem;
    }
    
    .today-product-item {
        padding: 0.375rem;
        gap: 0.375rem;
    }
    
    .today-product-image {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .today-product-name {
        font-size: 0.75rem;
    }
    
    .today-product-price {
        font-size: 0.9375rem;
    }
}

@media (max-width: 320px) {
    .today-product-widget {
        padding: 0.5rem;
    }
    
    .today-product-title {
        font-size: 0.875rem;
    }
    
    .today-product-icon {
        font-size: 1rem;
    }
    
    .today-product-item {
        padding: 0.25rem;
    }
    
    .today-product-image {
        width: 2rem;
        height: 2rem;
    }
    
    .today-product-name {
        font-size: 0.6875rem;
    }
    
    .today-product-price {
        font-size: 0.875rem;
    }
}

/* ======================================
   DARK MODE STYLES FOR SUB PAGES
   ====================================== */

/* 다크모드 로그인/회원가입 페이지 */
body.dark-mode .login-form-wrapper,
body.dark-mode .signup-form-wrapper {
    background-color: #1a1a1a !important;
    border: 1px solid #404040;
}

body.dark-mode .login-title,
body.dark-mode .signup-title {
    color: #ffffff !important;
}

body.dark-mode .login-subtitle,
body.dark-mode .signup-subtitle {
    color: #d1d5db !important;
}

body.dark-mode .form-input {
    background-color: #333333 !important;
    border-color: #404040 !important;
    color: #e5e5e5 !important;
}

body.dark-mode .form-input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

body.dark-mode .form-input::placeholder {
    color: #9ca3af !important;
}

body.dark-mode .login-button,
body.dark-mode .signup-form .signup-button {
    background: linear-gradient(to right, #6366f1, #7c3aed) !important;
}

body.dark-mode .login-button:hover,
body.dark-mode .signup-form .signup-button:hover {
    background: linear-gradient(to right, #5855eb, #6d28d9) !important;
}

body.dark-mode .signup-button,
body.dark-mode .option-button {
    background-color: #333333 !important;
    border-color: #404040 !important;
    color: #6366f1 !important;
}

body.dark-mode .signup-button:hover,
body.dark-mode .option-button:hover {
    background-color: #404040 !important;
    border-color: #6366f1 !important;
}

body.dark-mode .kakao-login-button {
    background-color: #FEE500 !important;
    color: #000000 !important;
    border-color: #FEE500 !important;
}

body.dark-mode .kakao-login-button:hover {
    background-color: #FDD835 !important;
}

body.dark-mode .error-message {
    background-color: #dc2626 !important;
    border-color: #ef4444 !important;
    color: white !important;
}

body.dark-mode .benefits-container {
    background-color: #1a1a1a !important;
    border: 1px solid #404040;
}

body.dark-mode .benefits-title {
    color: #ffffff !important;
}

body.dark-mode .benefit-title {
    color: #f3f4f6 !important;
}

body.dark-mode .benefit-description {
    color: #d1d5db !important;
}

/* 다크모드 마이페이지 */
body.dark-mode .mypage-header,
body.dark-mode .user-info-section,
body.dark-mode .webhook-section,
body.dark-mode .account-section {
    background-color: #1a1a1a !important;
    border: 1px solid #404040;
}

body.dark-mode .mypage-title,
body.dark-mode .section-title {
    color: #ffffff !important;
}

body.dark-mode .mypage-subtitle {
    color: #d1d5db !important;
}

body.dark-mode .info-card {
    background-color: #2d2d2d !important;
}

body.dark-mode .info-label {
    color: #d1d5db !important;
}

body.dark-mode .info-value {
    color: #f3f4f6 !important;
}

body.dark-mode .webhook-input {
    background-color: #333333 !important;
    border-color: #404040 !important;
    color: #e5e5e5 !important;
}

body.dark-mode .webhook-input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

/* 다크모드 키워드 구독 관리 */
body.dark-mode .keyword-subscription-section {
    background-color: #1a1a1a !important;
    border: 1px solid #404040;
}

body.dark-mode .keyword-info {
    background-color: #1e3a8a !important;
    border-color: #3b82f6 !important;
}

body.dark-mode .keyword-info .info-title {
    color: #dbeafe !important;
}

body.dark-mode .keyword-info .info-description {
    color: #bfdbfe !important;
}

body.dark-mode .keyword-input {
    background-color: #333333 !important;
    border-color: #404040 !important;
    color: #e5e5e5 !important;
}

body.dark-mode .keyword-input:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1) !important;
}

body.dark-mode .keyword-input::placeholder {
    color: #9ca3af !important;
}

body.dark-mode .keyword-list-title {
    color: #ffffff !important;
}

body.dark-mode .empty-keyword-state {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
}

body.dark-mode .empty-text {
    color: #d1d5db !important;
}

body.dark-mode .empty-description {
    color: #9ca3af !important;
}

body.dark-mode .keyword-item {
    background-color: #2d2d2d !important;
    border-color: #404040 !important;
}

body.dark-mode .keyword-item:hover {
    background-color: #404040 !important;
    border-color: #525252 !important;
}

body.dark-mode .keyword-text {
    color: #f3f4f6 !important;
}

body.dark-mode .keyword-date {
    color: #9ca3af !important;
}

body.dark-mode .btn-delete-keyword {
    background-color: #dc2626 !important;
    border-color: #ef4444 !important;
    color: white !important;
}

body.dark-mode .btn-delete-keyword:hover {
    background-color: #b91c1c !important;
    border-color: #dc2626 !important;
    color: white !important;
}

body.dark-mode .btn-primary {
    background: linear-gradient(to right, #6366f1, #7c3aed) !important;
}

body.dark-mode .btn-primary:hover {
    background: linear-gradient(to right, #5855eb, #6d28d9) !important;
}

body.dark-mode .btn-secondary {
    background-color: #333333 !important;
    border-color: #404040 !important;
    color: #6366f1 !important;
}

body.dark-mode .btn-secondary:hover {
    background-color: #404040 !important;
    border-color: #6366f1 !important;
}

body.dark-mode .action-primary {
    background-color: #333333 !important;
    border-color: #404040 !important;
    color: #6366f1 !important;
}

body.dark-mode .action-primary:hover {
    background-color: #404040 !important;
    border-color: #6366f1 !important;
}

body.dark-mode .action-danger {
    background-color: #dc2626 !important;
    border-color: #ef4444 !important;
    color: white !important;
}

body.dark-mode .action-danger:hover {
    background-color: #b91c1c !important;
    border-color: #dc2626 !important;
}

body.dark-mode .webhook-info {
    background-color: #1e3a8a !important;
    border-color: #3b82f6 !important;
}

body.dark-mode .info-title,
body.dark-mode .info-description {
    color: #dbeafe !important;
}

body.dark-mode .webhook-success {
    background-color: #065f46 !important;
    border-color: #10b981 !important;
}

body.dark-mode .success-title,
body.dark-mode .success-description {
    color: #d1fae5 !important;
}

/* 다크모드 Today Product Widget */
body.dark-mode .today-product-widget {
    background-color: #1a1a1a !important;
    border: 1px solid #404040;
}

body.dark-mode .today-product-title {
    color: #ffffff !important;
}

body.dark-mode .today-product-name {
    color: #f3f4f6 !important;
}

body.dark-mode .today-product-price {
    color: #6366f1 !important;
}

body.dark-mode .today-product-item:hover {
    background-color: #2d2d2d !important;
}

/* 다크모드 약관 동의 */
body.dark-mode .terms-agreement {
    background-color: #2d2d2d !important;
}

body.dark-mode .terms-label {
    color: #f3f4f6 !important;
}

/* 다크모드 중복확인 버튼 */
body.dark-mode .duplicate-check-btn {
    background-color: #6366f1 !important;
    color: white !important;
}

body.dark-mode .duplicate-check-btn:hover {
    background-color: #5855eb !important;
}

/* 다크모드 필수 표시 */
body.dark-mode .required {
    color: #ef4444 !important;
}

/* 다크모드 도움말 텍스트 */
body.dark-mode .form-help {
    color: #d1d5db !important;
}
