/* subscribe.css - 구독 페이지 스타일 */

/* Page Layout */
.subscribe-page {
    padding: 60px 0;
    min-height: 100vh;
    background: #fafafa;
}

.subscribe-header {
    text-align: center;
    margin-bottom: 50px;
}

.subscribe-header h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
}

.subscribe-header .subtitle {
    font-size: 16px;
    color: #666;
}

/* Login Prompt Card */
.login-prompt-card {
    max-width: 400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.login-prompt-card .icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.login-prompt-card h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111;
}

.login-prompt-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Subscribe Sections */
.subscribe-section {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--color-primary, #556B2F);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin: 0;
}

/* Settings Card */
.settings-card {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.setting-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.setting-row>label {
    width: 100px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    padding-top: 8px;
}

/* Frequency Options */
.frequency-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.freq-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.freq-btn:hover {
    border-color: var(--color-primary, #556B2F);
}

.freq-btn.active {
    background: var(--color-primary, #556B2F);
    color: #fff;
    border-color: var(--color-primary, #556B2F);
}

/* Select Input */
.select-input {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 150px;
    background: #fff;
    cursor: pointer;
}

.select-input:focus {
    outline: none;
    border-color: var(--color-primary, #556B2F);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary, #556B2F);
}

/* Authors Grid */
.authors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.author-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.author-card:hover {
    background: #f5f5f5;
}

.author-card.following {
    background: rgba(85, 107, 47, 0.08);
    border-color: var(--color-primary, #556B2F);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.placeholder-avatar {
    font-size: 24px;
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111;
    margin-bottom: 3px;
}

.author-category {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 3px;
}

.author-stats {
    display: block;
    font-size: 11px;
    color: #999;
}

/* Follow Button */
.btn-follow {
    padding: 8px 16px;
    border: 1px solid var(--color-primary, #556B2F);
    background: #fff;
    color: var(--color-primary, #556B2F);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-follow .following-text {
    display: none;
}

.btn-follow:hover {
    background: rgba(85, 107, 47, 0.1);
}

.author-card.following .btn-follow {
    background: var(--color-primary, #556B2F);
    color: #fff;
}

.author-card.following .btn-follow .follow-text {
    display: none;
}

.author-card.following .btn-follow .following-text {
    display: inline;
}

/* Selected Count */
.selected-count {
    margin-top: 20px;
    padding: 15px;
    background: rgba(85, 107, 47, 0.08);
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: #556B2F;
}

.selected-count span {
    font-weight: 700;
    font-size: 18px;
}

/* Subscribe Actions */
.subscribe-actions {
    text-align: center;
    padding: 30px 0;
}

.btn-lg {
    padding: 15px 50px;
    font-size: 16px;
}

.action-note {
    margin-top: 15px;
    font-size: 13px;
    color: #888;
}

.action-note a {
    color: var(--color-primary, #556B2F);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background: var(--color-primary, #556B2F);
    color: #fff;
}

.btn-primary:hover {
    background: #3d5020;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ddd;
    color: #333;
}

.btn-outline:hover {
    border-color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .subscribe-page {
        padding: 30px 0;
    }

    .subscribe-header h1 {
        font-size: 24px;
    }

    .subscribe-section {
        padding: 20px;
    }

    .setting-row {
        flex-direction: column;
        gap: 10px;
    }

    .setting-row>label {
        width: auto;
        padding-top: 0;
    }

    .frequency-options {
        width: 100%;
    }

    .freq-btn {
        flex: 1;
        text-align: center;
    }

    .authors-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
    }
}