/* 작가 프로필 전체 화면 스타일 */
.author-profile-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: none;
    z-index: 10000;
    overflow-y: auto;
}

.author-profile-popup.active {
    display: block;
}

.author-profile-content {
    background: white;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
}

/* 브랜드 아이덴티티 섹션 */
.author-profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.author-profile-image {
    flex: 0 0 120px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-profile-image .fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 36px;
    font-weight: bold;
}

.author-profile-text {
    flex: 1;
    text-align: left;
}

.author-profile-name {
    font-size: 32px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.share-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.share-btn:hover {
    background: #f0f0f0;
    color: #333;
    transform: scale(1.1);
}

.author-profile-title {
    color: #666;
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.author-profile-description {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    max-width: 500px;
}

/* 유튜브 영상 섹션 */
.author-profile-video {
    margin: 30px 0;
    text-align: center;
}

.video-container {
    position: relative;
    width: 100%;
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* 탭 메뉴 */
.author-profile-tabs {
    margin-top: 40px;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 30px;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.tab-button.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

.tab-button:hover {
    color: #3498db;
    background: #f8f9fa;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 북브릿지 탭 */
.bookbridge-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bookbridge-item {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.bookbridge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.bookbridge-image {
    flex: 0 0 120px;
}

.book-placeholder {
    width: 120px;
    height: 160px;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    border: 1px solid #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #999;
}

.bookbridge-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bookbridge-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.bookbridge-info .subtitle {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.bookbridge-info .description {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bookbridge-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: auto;
}

.bookbridge-meta .price {
    font-weight: 600;
    font-size: 16px;
    color: #e74c3c;
}

.bookbridge-meta .original-price {
    text-decoration: line-through;
    color: #999;
    font-weight: normal;
    font-size: 14px;
    margin-left: 8px;
}

.bookbridge-meta .rating {
    color: #f39c12;
    font-size: 14px;
}

.bookbridge-meta .content-type {
    background: #ecf0f1;
    color: #666;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.bookbridge-item:hover .content-type {
    background: #3498db;
    color: white;
}

/* 저자 피드 탭 */
.author-feed {
    max-width: 600px;
    margin: 0 auto;
}

.subscribe-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid #e5e5e5;
}

.subscribe-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 15px 0;
}

.subscribe-section p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.subscribe-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.subscribe-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.subscribe-form button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.feed-posts {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feed-post {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.feed-post:hover {
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.feed-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.feed-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
}

.feed-post-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.feed-post-info p {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.feed-post-content {
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Q&A 탭 */
.qa-section {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.qa-form {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid #e5e5e5;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.qa-form h3 {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
}

.qa-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 15px;
    box-sizing: border-box;
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

.qa-form button {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.qa-form button:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.qa-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qa-item {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.qa-item:hover {
    border-color: #3498db;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.qa-question {
    margin-bottom: 15px;
}

.qa-question h4 {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.qa-question p {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.qa-answer {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #3498db;
}

.qa-answer p {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .author-profile-content {
        padding: 20px;
        margin: 0;
        max-height: none;
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .author-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .author-profile-image {
        flex: none;
        width: 100px;
        height: 100px;
    }
    
    .author-profile-text {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
    
    .author-profile-name {
        font-size: 26px;
        justify-content: center;
    }
    
    .author-profile-title {
        font-size: 16px;
    }
    
    .author-profile-description {
        font-size: 14px;
        max-width: 100%;
    }
    
    .video-container {
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .video-container iframe {
        height: 250px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .tab-buttons {
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
    }
    
    .tab-button {
        text-align: center;
        border-bottom: none;
        border-right: 3px solid transparent;
        width: 100%;
        box-sizing: border-box;
    }
    
    .tab-button.active {
        border-right-color: #3498db;
        border-bottom-color: transparent;
    }
    
    .tab-content {
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .bookbridge-content {
        grid-template-columns: 1fr;
        width: 100%;
        box-sizing: border-box;
    }
    
    .bookbridge-item {
        flex-direction: row;
        gap: 15px;
        align-items: flex-start;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .bookbridge-image {
        flex: 0 0 80px;
    }
    
    .book-placeholder {
        width: 80px;
        height: 106px;
    }
    
    .bookbridge-info {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .bookbridge-info h4 {
        font-size: 16px;
        word-wrap: break-word;
    }
    
    .bookbridge-info .subtitle {
        font-size: 13px;
        word-wrap: break-word;
    }
    
    .bookbridge-info .description {
        font-size: 12px;
        -webkit-line-clamp: 2;
        word-wrap: break-word;
    }
    
    .bookbridge-meta {
        flex-direction: row;
        gap: 15px;
        align-items: center;
        flex-wrap: wrap;
        width: 100%;
        box-sizing: border-box;
    }
    
    .bookbridge-meta .price {
        font-size: 14px;
        word-wrap: break-word;
    }
    
    .bookbridge-meta .rating {
        font-size: 13px;
    }
    
    .bookbridge-meta .content-type {
        font-size: 10px;
        padding: 2px 6px;
        white-space: nowrap;
    }
    
    .author-feed {
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
    }
    
    .subscribe-section {
        width: 100%;
        box-sizing: border-box;
        padding: 20px;
    }
    
    .subscribe-form {
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
    }
    
    .subscribe-form input,
    .subscribe-form button {
        width: 100%;
        box-sizing: border-box;
    }
    
    .feed-posts {
        width: 100%;
        box-sizing: border-box;
    }
    
    .feed-post {
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .feed-post-content {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .qa-section {
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        overflow: hidden;
    }
    
    .qa-form {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
        margin: 0 0 20px 0;
    }
    
    .qa-form textarea {
        width: 100%;
        box-sizing: border-box;
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    
    .qa-form button {
        width: 100%;
        box-sizing: border-box;
    }
    
    .qa-list {
        width: 100%;
        box-sizing: border-box;
    }
    
    .qa-item {
        width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .qa-question h4,
    .qa-answer p {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
} 