/* User Profile Page Styles */
/* Navbar and footer styles are NOT included here */

body {
    font-family: 'Raleway', sans-serif;
    background-color: #FFFFFF;
}

/* Main Container */
.user-profile-container {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 100vh;
}

/* Profile Header */
.profile-image-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    overflow: hidden;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.welcome-title {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
    line-height: 1.2;
}

.profile-detail {
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    line-height: 1.8;
}

.profile-detail strong {
    font-weight: 600;
}

.copy-code-btn {
    background: transparent;
    border: none;
    padding: 4px;
    margin-left: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    vertical-align: middle;
}

.copy-code-btn:hover {
    opacity: 0.7;
}

/* Info Cards */
.info-card {
    background-color: #FFFFFF;
    border: 1.5px solid #E0E0E0;
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    text-align: center;
    transition: box-shadow 0.3s ease;
}

.info-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-icon {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 12px;
}

.card-text {
    font-size: 13px;
    font-weight: 400;
    color: #666666;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Logout Button */
.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #E8175D;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(232, 23, 93, 0.25);
}

.btn-logout:hover {
    background-color: #C01349;
    box-shadow: 0 6px 12px rgba(232, 23, 93, 0.35);
    transform: translateY(-2px);
}

.btn-logout:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(232, 23, 93, 0.25);
}

.btn-logout svg {
    width: 20px;
    height: 20px;
}

/* Browsing History Section */
.browsing-history-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid #E0E0E0;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0;
}

.view-edit-link {
    font-size: 13px;
    font-weight: 400;
    color: #4A90E2;
    text-decoration: none;
    transition: color 0.3s ease;
}

.view-edit-link:hover {
    color: #2E5C99;
    text-decoration: underline;
}

/* Book Cards */
.book-card {
    text-align: center;
}

.book-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 10px;
}

.book-title {
    font-size: 13px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0;
    line-height: 1.3;
}

/* Responsive Design */
@media (max-width: 992px) {
    .user-profile-container {
        padding-top: 100px;
        padding-bottom: 50px;
    }
    
    .welcome-title {
        font-size: 26px;
    }
    
    .profile-image-wrapper {
        width: 130px;
        height: 130px;
    }
}

@media (max-width: 768px) {
    .user-profile-container {
        padding-top: 90px;
        padding-bottom: 40px;
    }
    
    .welcome-title {
        font-size: 24px;
        text-align: center;
    }
    
    .profile-image-wrapper {
        width: 120px;
        height: 120px;
    }
    
    .profile-detail {
        font-size: 13px;
        text-align: center;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .card-title {
        font-size: 15px;
    }
    
    .card-text {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .browsing-history-section {
        margin-top: 40px;
        padding-top: 28px;
    }
}

@media (max-width: 576px) {
    .user-profile-container {
        padding-top: 80px;
        padding-bottom: 30px;
    }
    
    .welcome-title {
        font-size: 22px;
        margin-bottom: 14px;
    }
    
    .profile-image-wrapper {
        width: 110px;
        height: 110px;
    }
    
    .profile-detail {
        font-size: 12px;
    }
    
    .info-card {
        padding: 18px;
        margin-bottom: 16px;
    }
    
    .card-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .card-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .card-text {
        font-size: 11px;
    }
    
    .btn-logout {
        padding: 10px 28px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
    }
    
    .section-title {
        font-size: 17px;
    }
    
    .view-edit-link {
        font-size: 12px;
        display: block;
        margin-top: 8px;
    }
    
    .browsing-history-section {
        margin-top: 36px;
        padding-top: 24px;
    }
    
    .book-title {
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .user-profile-container {
        padding-top: 70px;
    }
    
    .welcome-title {
        font-size: 20px;
    }
    
    .profile-image-wrapper {
        width: 100px;
        height: 100px;
    }
    
    .copy-code-btn svg {
        width: 14px;
        height: 14px;
    }
}
